Page 18 of 71

Re: MP3D Engine Alpha 31

Posted: Thu Feb 07, 2013 12:26 am
by True29
Windows 8 64 bit no support ? -.-

Re: MP3D Engine Alpha 31

Posted: Thu Feb 07, 2013 5:11 pm
by Sveinung
Works on my Win8 Ent X64

Regards
Sveinung

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 9:41 am
by AndyLy
Hi to all, I don't get to do such a simple thing, how to open a window from another window. Works only one time.

Code: Select all

OpenWindow(1,0,0,640,480,"window",#PB_Window_SystemMenu)
Repeat
Event = WaitWindowEvent()
If Event=#WM_LBUTTONUP: EventID=0: Gosub OpenMp: EndIf
Until Event = #PB_Event_CloseWindow
End

OpenMp :
MP_Graphics3DWindow (0,0,640,480,"MP3D_32",#PB_Window_ScreenCentered | #PB_Window_SystemMenu)
     camera=MP_CreateCamera(): light=MP_CreateLight(1)
     Mesh=MP_CreateCube(): MP_PositionEntity (Mesh,0,0,3)
While Not EventID = #PB_Event_CloseWindow
     EventID = WindowEvent()
          MP_TurnEntity (Mesh,0.1,0.1,0.1)
          MP_RenderWorld(): MP_Flip ()
Wend
MP_Close(): CloseWindow(0)
Return

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 12:05 pm
by AndyLy
Hi AndyLy, you can use this:

Code: Select all

OpenWindow(0,0,0,640,480,"MP3D_32",#PB_Window_ScreenCentered | #PB_Window_SystemMenu): MP_ScreenToHandle(WindowID(0))
instead of

Code: Select all

MP_Graphics3DWindow (0,0,640,480,"MP3D_32",#PB_Window_ScreenCentered | #PB_Window_SystemMenu)

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 12:06 pm
by AndyLy
Oh, thank you, it works! You're so smart AndyLy.

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 12:28 pm
by djes
:lol:

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 5:59 pm
by Psychophanta
Dreamotion 3D is very good to me, but there are no support. So i would like to test this one.
Is this engine still active?

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 6:32 pm
by Sveinung
Yes it is :D

Sveinung

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 6:46 pm
by Psychophanta
1) In a first approach, i notice a big slower respect DM3D, not measured, but i guess at least twice slower.

2) I miss a useful thing: pivots. Is not there in MP3D?

3) I need to know everytime these 3 vectors in order to work feely with a 3D engine:
( *camera\rightAxis\x , *camera\rightAxis\y , *camera\rightAxis\z )
( *camera\upAxis\x , *camera\upAxis\y , *camera\upAxis\z )
( *camera\lookAxis\x , *camera\lookAxis\y , *camera\lookAxis\z )
Every of them has a modulo of 1.0
Where are them in MP3D?

Re: MP3D Engine Alpha 31

Posted: Fri Feb 08, 2013 10:59 pm
by Sveinung
I will try to answer thees questions as best I can. Remeber that I'm not the developer here ;)
MPZ will for sure answer thees to :mrgreen:

1) The engine is pritty fast. I have tested this with a realtime mesh deform. Works fine :)

2) Nope, no pivot. I use invisible cubs as pivots.

3) Camera commands:
- MP_PositionCamera(Cam, x.f, y.f, z.f)
- MP_RotateCamera(Cam, pitch.f, yaw.f, roll.f)
- MP_CameraLookAt(Cam,x.f,y.f,z.f)

Hope this helps you. MP3D works very well with PB 5.10 even.
Good luck and have fun with this.

Regards
Sveinung

Re: MP3D Engine Alpha 31

Posted: Sat Feb 09, 2013 3:16 am
by IdeasVacuum
Fabulous lib! - found it when searching for the latest news of the Irrlicht wrapper.

Enhancement request (for use in engineering apps): Doubles instead of Floats for all Mesh related geometry functions including transforms and scaling. 8)

Re: MP3D Engine Alpha 31

Posted: Sat Feb 09, 2013 6:58 am
by AndyLy
Hi Mpz!
MP_Close() crashes if I use MP_CopyEntity() in code.

Suppose, MP_Close() do something like that:
ForEach EntityList(): MP_FreeEntity(): Next
, and got error with Entity with same Id.

Re: MP3D Engine Alpha 31

Posted: Sat Feb 09, 2013 11:15 am
by Psychophanta
Sveinung wrote:I will try to answer thees questions as best I can. Remeber that I'm not the developer here ;)
MPZ will for sure answer thees to :mrgreen:

1) The engine is pritty fast. I have tested this with a realtime mesh deform. Works fine :)

2) Nope, no pivot. I use invisible cubs as pivots.

3) Camera commands:
- MP_PositionCamera(Cam, x.f, y.f, z.f)
- MP_RotateCamera(Cam, pitch.f, yaw.f, roll.f)
- MP_CameraLookAt(Cam,x.f,y.f,z.f)

Hope this helps you. MP3D works very well with PB 5.10 even.
Good luck and have fun with this.

Regards
Sveinung
1) Have you tested DM3D speed? else, you can not compare.

2) Oh! can not work without pivots! :x It is strange, as Direct3D includes the feature natively, so any wrapper should also include it.

3) Those camera commands are to Set , not to Get info from it.

Re: MP3D Engine Alpha 31

Posted: Sat Feb 09, 2013 11:50 am
by AndyLy
1. No comments.
2. MP3D have 2 physic engines. I haven't used it, but maybe there's something to find.
3. For more information, contact the camera as to the Entity:
MP_EntityGetYaw(camera): MP_EntityGetPitch(camera): MP_EntityGetRoll(camera)
and MP_CameraGetZ(Cam): MP_CameraGetX(Cam): MP_CameraGetY(Cam)

Re: MP3D Engine Alpha 31

Posted: Sat Feb 09, 2013 11:58 am
by Psychophanta
AndyLy wrote:1. No comments.
2. MP3D have 2 physic engines. I haven't used it, but maybe there's something to find.
3. For more information, contact the camera as to the Entity:
MP_EntityGetYaw(camera): MP_EntityGetPitch(camera): MP_EntityGetRoll(camera)
and MP_CameraGetZ(Cam): MP_CameraGetX(Cam): MP_CameraGetY(Cam)
3) Those first 3 commands returns angle values, not vectors of direction. There can be calculated the 3 direction unit vectors from those angles, but why to calculate it and loose CPU time when Direct3D has it every time inside?
Those last 3 commands are for position , not inclination.
And by the way, i find incoherence everywhere in this lib, for example if there are:
MP_EntityGetX/Y/Z(Entity [, Var])
Why to have another for camera?
camera inherits everything fo Entity :x