MP3D Engine Alpha 33

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
True29
User
User
Posts: 64
Joined: Sun Feb 03, 2013 1:50 am

Re: MP3D Engine Alpha 31

Post by True29 »

Windows 8 64 bit no support ? -.-
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Re: MP3D Engine Alpha 31

Post by Sveinung »

Works on my Win8 Ent X64

Regards
Sveinung
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: MP3D Engine Alpha 31

Post 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
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: MP3D Engine Alpha 31

Post 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)
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: MP3D Engine Alpha 31

Post by AndyLy »

Oh, thank you, it works! You're so smart AndyLy.
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: MP3D Engine Alpha 31

Post by djes »

:lol:
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: MP3D Engine Alpha 31

Post 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?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Re: MP3D Engine Alpha 31

Post by Sveinung »

Yes it is :D

Sveinung
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: MP3D Engine Alpha 31

Post 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?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Re: MP3D Engine Alpha 31

Post 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
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: MP3D Engine Alpha 31

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: MP3D Engine Alpha 31

Post 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.
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: MP3D Engine Alpha 31

Post 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.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: MP3D Engine Alpha 31

Post 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)
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: MP3D Engine Alpha 31

Post 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
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply