Hi, Thilo.

I believe you can achieve this by creating new top-nodes of animated model 
(nodes which contain animation manager callback), sharing model itself, and 
attaching new animation managers to them (sharing existing animations).

Cheers,
Sergey.

16.08.2012, 01:01, "Thilo Weigel" <[email protected]>:
> Hi,
>
> I'd like to place several instances of the same model in a scene and play the 
> model's animation individually on each instance - just like having several 
> nathans standing around and letting each one scratch his head asynchronously 
> to the others.
>
> The model is loaded once and assigned  to a osg::Group. The model's instances 
> are placed by attaching the osg::Group  to different 
> PositionAttitudeTransforms. Similar code as in the osganimationviewer is used 
> to retrieve the model's osgAnimation::BasicAnimationManager which is then 
> added as an UpdateCallback for each PositionAttitudeTransform.
>
> Obviously, the animations can now only be played synchronously on all 
> instances. How could I achieve being able to start the animation of each 
> instance individually - for example to let each nathan start scratching its 
> head for a few seconds after clicking on it?
>
> Thanks a lot for any hints,
>
> Cheers,
> Thilo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49274#49274
>
> _______________________________________________
> 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

Reply via email to