Hi all,
Apologies if the answer to this question should be self-evident, but
I'm having some trouble implementing a solution for pausing,
restarting, resetting and detecting the end of animations contained in
a subgraph read in via osgDB.
Basically, I have some models with animations embedded (exported from
3DS Max via osgExp plugin for Max) and I load these in via osgDB. What
I want to do is provide a set of controls to start the animations,
pause them while in progress, resume them from pause, and then get a
callback (or detect via some other means) when they've finished running.
My idea in general was to use a keyboard handler which then creates a
node visitor, asks the models to accept the visitor, and then in the
visitor I change some state. Any hints on whether this is the
recommended approach, and how to actually implement it gladly welcomed.
Regards,
Phil.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org