[osg-users] Animation control with AnimationPathCallback

2013-03-25 Thread Joseph Sahexmeier
Hi,

I have loaded a model with animation frames on it. I have traversed the model’s 
graph and gotten the AnimationPathCallbacks.

So far, I have been able to pause and speed up/down the animation of the object.

But, the models first frame is a special position that should only be shown 
under special circumstances. 

How could I “force” to reestart the animation loop always on the second “frame”?
Is it possible to set a specific “time” in the animation frame sequence at any 
moment? 

I have been playing around with  setTimeOffset without success so far. 
I am kind of stuck here right now… anyone has worked with animation control at 
this level?

Thank you!

Cheers,
Joseph

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Animation control with AnimationPathCallback

2013-03-25 Thread Sergey Polischuk
Hi

i think for fine-grained control it's better to write your own callback for 
controlling animation, and query interpolated matrices from animation path at 
desired position

Cheers.

25.03.2013, 15:44, Joseph Sahexmeier sar...@gmail.com:
 Hi,

 I have loaded a model with animation frames on it. I have traversed the 
 model’s graph and gotten the AnimationPathCallbacks.

 So far, I have been able to pause and speed up/down the animation of the 
 object.

 But, the models first frame is a special position that should only be shown 
 under special circumstances.

 How could I “force” to reestart the animation loop always on the second 
 “frame”?
 Is it possible to set a specific “time” in the animation frame sequence at 
 any moment?

 I have been playing around with  setTimeOffset without success so far.
 I am kind of stuck here right now… anyone has worked with animation control 
 at this level?

 Thank you!

 Cheers,
 Joseph

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

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org