Hi Robert,

thank you again.

Then it seems that the only way to concatenate animations is by creating a
custom UpdateCallback, right? Do you know any example about this that could
help me to develop my own callback?

I have also two more questions about animation:

- What is the addNestedCallback function used for?
- Is it possible to have different animations attached to the same node and
play only one at a time?

Best regards

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Robert
Osfield
Sent: jueves, 25 de octubre de 2012 15:16
To: OpenSceneGraph Users
Subject: Re: [osg-users] Rotation animation

Hi Héctor,

On 25 October 2012 12:34, Héctor Martínez <[email protected]>
wrote:
> thank you for your answer. I was using osg::AnimationPath for 
> individual animations, but when trying to combine both animations the 
> behaviour is not the desired. The problem is that I want to change 
> dynamically the pivot point of the translation animation. In other 
> words, the rotation has to be always the same (centered in the model), 
> and it has also to translate around a dynamic pivot point. If I do 
> this separately, it works. But if I add both animations using
addUpdateCallback, only the translation is working.
>
> I am a bit lost in the animationpath concept. Is it possible to add 2 
> animationpaths to the same PositionAttitudeTransform?
>

The AnimationPathCallback doesn't support attached two AnimationPath.
One could write your callback that does this but you'd need to make sure
that local and transform origins are all consistent.

As I said in my previous email I'd recommend using your own custom
UpdateCallback.  This way you can compute the path exactly for each frame as
per your requirements.

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

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

Reply via email to