Page 70 of 71
Re: MP3D Engine Alpha 33
Posted: Sun Sep 18, 2022 8:32 pm
by mpz
Hi Psychohanta,
i dont understand the problem with these code?
if the mouse is on the object it picked it correct...
Greetings Michael
Re: MP3D Engine Alpha 33
Posted: Mon Sep 19, 2022 6:26 pm
by Psychophanta
Hi Michael
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
Re: MP3D Engine Alpha 33
Posted: Mon Sep 19, 2022 8:59 pm
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
Re: MP3D Engine Alpha 33
Posted: Tue Sep 20, 2022 11:43 am
by Psychophanta
Done in PB6.00 and exactly the same.
Re: MP3D Engine Alpha 33
Posted: Tue Sep 27, 2022 8:54 pm
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
Re: MP3D Engine Alpha 33
Posted: Wed Sep 28, 2022 7:52 pm
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
...
Re: MP3D Engine Alpha 33
Posted: Wed Dec 28, 2022 5:52 am
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
Re: MP3D Engine Alpha 33
Posted: Wed Dec 28, 2022 12:24 pm
by mpz
Hello to you,
Please have a look on the following example: MP_Shadereditor.pb
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
Re: MP3D Engine Alpha 33
Posted: Wed Dec 28, 2022 5:31 pm
by skinkairewalker
sorry, the image above ended up not appearing .
but the example I wanted to display in the image above is this >

Re: MP3D Engine Alpha 33
Posted: Wed Dec 28, 2022 6:11 pm
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
Re: MP3D Engine Alpha 33
Posted: Tue Jan 10, 2023 3:41 am
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?
Re: MP3D Engine Alpha 33
Posted: Sat Jan 14, 2023 4:23 pm
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
Re: MP3D Engine Alpha 33
Posted: Sat Jan 14, 2023 5:16 pm
by Caronte3D
I don't know why I missed that promising project, but what I´m reading looks awesome

The links on the first post are expired, can you update them?
Thanks!

Re: MP3D Engine Alpha 33
Posted: Sat Jan 14, 2023 11:56 pm
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.
Re: MP3D Engine Alpha 33
Posted: Mon Apr 10, 2023 10:53 pm
by skinkairewalker
any news ?