Hi,
thank you, robert, for the advice.
i actually subclass AnimationPathCallback and rewrite operator as folows :
void CB_AnimationPonctuelle::operator() (osg::Node *node, osg::NodeVisitor *nv){
osg::AnimationPathCallback::operator()(node,nv); // méthode
originale (de la classe de base)
if (getAnimationTime()>_duree_animation) {
setPause(true);
}
}
to make the animation just one time, i test animation time againt callback
time (maybe not the best solution but it work...)
My problem is to stop (or pause the callback) when this test is true....
i tried to use setPause() method but it do not pause anything :-( and callback
keep on running ....
how should i use this method setPaused() ?
is ther another issue to pause a callback ?
thanks a lot for your help
nb : i found mask approach in the folowing topic but i hope there exist a
simplest way ...
t=3844
Thank you!
Cheers,
vincent
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36475#36475
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org