[osg-users] Independent Animation of Shared Objects

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Sun Apr 19 14:15:14 PDT 2020


Hello all,
I'm wondering how to design the scenegraph to make LOD and Animation of 
shared objects to work.

I'm trying to make a simulation of 2,000 human characters.  All characters 
look the same.  We load 3 FBX files for each level of detail (low, med and 
high).  Each FBX file has multiple animations (walking, running, 
standing).  The models are loaded with osgDB cached all option.

The structure of the scenegraph is like this:

(osg::PositionAttitudeTransform) -> (osg::LOD) -> (osg::Node as loaded from 
the FBX File)

The animation manager callback is extracted from the FBX file and assigned 
to the osg::PositionAttitudeTransform.

Caching of objects work, LOD works but when I start the animation of one 
character, it starts the same animation in all the characters at the same 
time.

How can I achieve independent animations?

Thank you very much in advance,

Mauricio.





-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/4f0d0a91-9b05-4403-9fbf-36a6f0c64da5%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200419/846c6438/attachment.html>


More information about the osg-users mailing list