In fact related to the code it makes sense. Because strip duration is
initialized from the Animation duration.
Could you try to manipulate the duration of the strip instead ?

Cedric
On Wed, 2011-06-08 at 12:52 +0200, Aitor Ardanza wrote:
> Hi,
> 
> I have a problem with the call  setDuration of  osgAnimation::Animation. If I 
> define the animations at the beginning of the application do it correctly. 
> But if I change the duration, defined above, in execution, for example by 
> putting half the time, makes the animation faster but twice ... may be a bug?
> 
> 
> Code:
> 
> osgAnimation::ActionStripAnimation* newAnimAction = new 
> osgAnimation::ActionStripAnimation(anim,0.3,0.3);
> anim->setDuration(anim->getDuration()*0.5);
> newAnimAction->setLoop(1); // one time
> tml->addActionAt(tml->getCurrentFrame() + 1,newAnimAction, 2);
> 
> 
> 
> 
> Thank you!
> 
> Cheers,
> Aitor
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=40205#40205
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 

-- 
Cedric Pinson
Provide OpenGL, WebGL and OpenSceneGraph services
+33 659 598 614 - [email protected]
http://plopbyte.com - http://osgjs.org - http://showwebgl.com

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to