Of course, i doComtois wrote:@Psychophanta, do you remember this one ?
Dreamotion3d (and PhysX) continuation...
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Well and about parameters by default???tmyke wrote:Maxus:For animations, it will be necessary to await Christmas I think…And how animate B3D Entity???
And I liked this engine.
Sorry my English, I'm Russian
AMT Laboratory
AMT Laboratory
At import of functions from DLL, it is necessary to apply parameters by default.tmyke wrote:I your question does not understand
For example:
At you in a code:
Code: Select all
Import "dreamotion3d.lib"
DM_LoadEntity.l(filename.s, *parent.CEntity, lod.c)
EndImport
Code: Select all
Import "dreamotion3d.lib"
DM_LoadEntity.l(filename.s, *parent.CEntity=#Null, lod.c=#False)
EndImport
Code: Select all
Entity=DM_LoadEntity("MeEntity.b3d")
Code: Select all
Entity=DM_LoadEntity("MeEntity.b3d",#Null,#False)
Sorry my English, I'm Russian
AMT Laboratory
AMT Laboratory
Please give me Examle shader in Dreamotion3D, for BUMPMAPPING!!!
PLZZZ!!!
PLZZZ!!!
Sorry my English, I'm Russian
AMT Laboratory
AMT Laboratory
DM_PickedXYZ(): yes is only for terrain engine.
In the function DM_CameraPick.l(*camera.CEntity, x.l, y.l), 'x' and 'y' is for exemple MouseX and MouseY
coordinates on the screen. In the MD2 sample in the package, you are these lines:
if MouseButton(#PB_MouseButton_Right)
*mesh = DM_CameraPick(*camera, MouseX(), MouseY())
If *mesh<> Null
DM_TranslateEntity(*mesh, 0.0, 10.0, 0.0)
EndIf
EndIf
this function returns the entity found after a ClickMouse in the screen. If not found an Entity, return #Null.
Also:
DM_PickedEntity.l() : return the last Entity 'picked'
DM_PickedTriangle.l(): return the triangle on the mesh of last Entity picked
DM_PickedDistanc.f(): return distance between position of the observer and last Entity 'picked'
Iif you want the co-ordinates on the model 'picked', the function DM_PickedTriangle()
it's a good alternative.
In the function DM_CameraPick.l(*camera.CEntity, x.l, y.l), 'x' and 'y' is for exemple MouseX and MouseY
coordinates on the screen. In the MD2 sample in the package, you are these lines:
if MouseButton(#PB_MouseButton_Right)
*mesh = DM_CameraPick(*camera, MouseX(), MouseY())
If *mesh<> Null
DM_TranslateEntity(*mesh, 0.0, 10.0, 0.0)
EndIf
EndIf
this function returns the entity found after a ClickMouse in the screen. If not found an Entity, return #Null.
Also:
DM_PickedEntity.l() : return the last Entity 'picked'
DM_PickedTriangle.l(): return the triangle on the mesh of last Entity picked
DM_PickedDistanc.f(): return distance between position of the observer and last Entity 'picked'
Iif you want the co-ordinates on the model 'picked', the function DM_PickedTriangle()
it's a good alternative.



