MP3D Engine Alpha 33

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hi Psychohanta,

i dont understand the problem with these code?

if the mouse is on the object it picked it correct...

Image

Greetings Michael
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
Psychophanta
Addict
Addict
Posts: 4968
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 33

Post by Psychophanta »

Hi Michael
:shock: :!: :?:

I expected the same behaviour there. But behaviour is not the same here, and also for other stuff, specially physics, and other.
Here it is how it works in the PB573 64bit. Previous versions of PB works well.
lbry.tv/20220919:b
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hi Psychophanta,

the film look terrible. If i start the demo file the green screen is on the right side (see picture), at your pc too?..

Can you test the actualised version 6.00 with MP3D_PB5.73 please? Use the Compilers, PureLibraries and SubSystems folder of the zip file to overwrite the files in the folders of the pb version.

i dont now what happend and why the screen is sitting.

I have test the MP3D_PB5.73 version on 3 different windows versions from Windows 7 to Windows 11 and there it works fine

Greetings
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
Psychophanta
Addict
Addict
Posts: 4968
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 33

Post by Psychophanta »

Done in PB6.00 and exactly the same.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hi Psychopanta,

it looks like a timing problem or vsync problem. Can you test this program please and send me the debug times ?

on my pc the debug code time (Debug MP_VSyncTime()) has the following numbers:

0.01598750054836
0.01736499927938
0.01613510027528
0.01706610061228
0.016108000651
0.0169738996774
0.01697869971395
0.0160980001092
0.01695430092514
0.01695439964533

1/0.01695439964533 --> 60 Hz for one loop

Code: Select all

WindowWidth.u=640:WindowHeigh.u=480
MP_Graphics3D(WindowWidth,WindowHeigh,0,2)
light.i=MP_CreateLight(1)

ViewPortX2.f=400:ViewPortY2.f=80:ViewPortWidth2.f=200:ViewPortHeigh2.f=300
cam2.i=MP_CreateCamera()
ViewPort2.i=MP_CameraViewPort(cam2,ViewPortX2,ViewPortY2,ViewPortWidth2,ViewPortHeigh2,$00346B0A)
MP_CameraSetPerspective(cam2,45,ViewPortWidth2/ViewPortHeigh2)
m2.i=MP_CreateCube()
MP_EntitySetZ(m2,-1000)
MP_PositionEntity(cam2,0,0,-995)
MP_PointEntity(cam2,m2)

While WindowEvent()<>#PB_Event_CloseWindow
  mdx.f=MP_MouseDeltaX()/200:mdy.f=MP_MouseDeltaY()/200:mdw.f=MP_MouseDeltaWheel()/400
  picked.i=MP_PickCamera(cam2,WindowMouseX(0),WindowMouseY(0))
  MP_DrawText(400,80,Hex(picked)+" found. Distance: "+StrF(MP_PickedGetDistance(),4))
  MP_TurnEntity(m2,0.3,-0.23,-0.1)
  MP_RenderWorld()
  MP_Flip()
  
  Debug MP_VSyncTime() 
Wend
Greetings Michael
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
Psychophanta
Addict
Addict
Posts: 4968
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 33

Post by Psychophanta »

Hi.
Here is the same, more or less:
0.19587050378323
0.03500290215015
0.01799930073321
0.01500369980931
0.01699990034103
0.01601699925959
0.0159818995744
0.01702049933374
0.01698219962418
0.01600160077214
0.01700320094824
0.01799790002406
0.01601600088179
0.0160044003278
0.01698550023139
0.01699990034103
0.01599970087409
...
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: MP3D Engine Alpha 33

Post by skinkairewalker »

With mp3d there is some way to make a custom GUI with scrollbar as shown in the image below?
( make a scrollable dialog with any custom component: buttons, images, etc. )

https://forums.rpgmakerweb.com/proxy.p ... a4e8bfeaab
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hello to you,

Please have a look on the following example: MP_Shadereditor.pb

Image

the key command is the "MP_Viewport"
MP_Viewport(x1,y1,x2,y2)
it limits the 3d window so that other functions can be displayed in the window.

the library MP3D_OpenGL_Library.pb also gets this command. I will finish a sample with the latest version in the next days and upload it.

Greetings
Michael
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: MP3D Engine Alpha 33

Post by skinkairewalker »

sorry, the image above ended up not appearing .
but the example I wanted to display in the image above is this >
Image
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hi,
what i see is a "transparent" sprite menu system. You could programme that yourself.

I have a memory of such a menu and will see if I can find it again.

Greetings
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: MP3D Engine Alpha 33

Post by skinkairewalker »

do you have plans to embed graphical GUI elements in mp3d like: textbox, textarea, button and others?

do you already have something ready to use?
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: MP3D Engine Alpha 33

Post by mpz »

Hi,

i dont have any code ready for now. Do anybody a opengl example for these?

It is possible to include these, but it is easier if anybody has a example code...

Greetings Michael
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: MP3D Engine Alpha 33

Post by Caronte3D »

I don't know why I missed that promising project, but what I´m reading looks awesome :shock:
The links on the first post are expired, can you update them?
Thanks! :wink:
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: MP3D Engine Alpha 33

Post by skinkairewalker »

mpz wrote: Sat Jan 14, 2023 4:23 pm Hi,

i dont have any code ready for now. Do anybody a opengl example for these?

It is possible to include these, but it is easier if anybody has a example code...

Greetings Michael
it would be interesting to add a tool like Imgui or noesisengine gui as system GUI.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: MP3D Engine Alpha 33

Post by skinkairewalker »

any news ?
Post Reply