Let me be more precise. I have an osgAnimation object that has 50 keyframes. I 
want to translate the object by (x,y,z) after the 30th keyframe has been 
rendered, so that, the actual position of the object in the subsequent frames 
changes by (x,y,z). So, I am using a PositionAttitudeTransform as a parent of 
the osgAnimation, and I set the position using a callback.

To set the position after the 30th keyframe, I must know that the 30th keyframe 
has been rendered. So, I use a counter in the callback. When the counter 
reaches 31, I update the position. But the problem is that the counter reaching 
31 is not the same as the 31st frame being drawn. So, how do I find out the 
current frame number (keyframe number) in the animation?

Thank you!

Cheers,
USP

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47480#47480





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to