Hi Robert,

thank you again for your reply. I will try to do it with a custom callback
as you suggest. Let's see if I can manage to get the behaviour I want.

Best regards.

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: jueves, 25 de octubre de 2012 16:42
To: OpenSceneGraph Users
Subject: Re: [osg-users] Rotation animation

Hi Héctor,

On 25 October 2012 13:35, Héctor Martínez <hector.marti...@sensetrix.com>
wrote:
> 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?

You can nest transform nodes and attach a seperate callback to each one, but
this may well not be what you are after.  "concatenate animations" is such
an open ended term that only you really know what you are after.

> I have also two more questions about animation:
>
> - What is the addNestedCallback function used for?

The OSG doesn't use a concept of pre and post traversal callbacks for each
of the different traversal but instead uses a scheme where multiple
callbacks can be nested within each other.  The advantage of this approach
is that it makes it much easier to manage local state in a thread safe way
and to control traversal.

> - Is it possible to have different animations attached to the same 
> node and play only one at a time?

The AnimationPathCallback doesn't support this but there is nothing to stop
you from implementing your own callback to do this, or assign different
paths at different times.

Again I'd encourage you to roll your sleves up and code youself a custon
update callback to do the animation exactly the way you need to.

Robert.
_______________________________________________
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

Reply via email to