Hi Ricardo,
sorry to not go into the details - so just few hints from my friend that
is going his project on ODE+OSG.
He done the integration like this:
- he loads the scene by OSG
- he converts the scene geometry to ODE geometry and sends it to ODE by
ODE functions
- he setups the ODE world
- he starts the ODE simulation
- each frame, he reads all required transformations from ODE and updates
OSG transformations
(ODE simulation is applied to OSG scene)
Concerning your questions:
- sorry, I have no knowledge about osgPhysics
- friction, mass, etc. - it is always a little bit tricky to put
additional information to the file (3ds, collada) if the format is not
designed to carry this information. However, number of formats supports
additional text info connected to a scene graph node. Maybe, this will
be the way. My friend is setting this information inside his code after
loading each particular scene object. It is easy solution for the
starting...
- simulation steps: yes, you need to do the simulation steps and then
render. It sometimes happens that you are doing number of simulation
steps per one rendering step. That is not a problem. But sorry, I did
not know implementation details. You will need to take a look to doc and
tutorials.
Sorry, no more knowledge on my side, but hopefully, it helps a little bit,
John
Ricardo Ruiz wrote:
Hi mates.
I have several questions regarding about physics engines in OSG. BTW, I'm a OSG
beginner.
If I want to use ODE, must I add osgPhysics plugin to my OSG?
How can I load a scene with physics values? Let's say I'm creating a scene in
3Ds MAX, and I export it to COLLADA (or any other format). Does OSG or
osgPhysics read these values (mass, friction...)? And the most important, how
can I tell 3Ds MAX that objets have different physic properties?
And the last one. Usually physics engines requere a fixed (or almost) time
step, ODE is one of them. How should I manage that inside OSG, I mean, after
integrating ODE with ODE?
Thank you very much for your time and help.
Cheers,
Ricardo
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=23771#23771
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org