[osg-users] Object with two inependent animations only advance half-way

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Sat May 2 09:48:03 PDT 2020


To illustrate the problem better.  This is the scene structure:
      1. Shape (osg::Group) => Callbacks (update:  [ LeftFrameOpen 
LeftFrameClose RightFrameOpen RightFrameClose ])
       2. Block (osg::MatrixTransform) => Callbacks (update: Block)
        3. Block (osg::Geode)
       2. LeftFrame (osg::MatrixTransform) => Callbacks (update: LeftFrame)
        3. LeftFrame (osg::Geode)
       2. RightFrame (osg::MatrixTransform) => Callbacks (update: 
RightFrame)
        3. RightFrame (osg::Geode)

The group node at level 1 (called Shape) has three child objects and an 
animation manager with 4 animations: LeftFrameOpen LeftFrameClose 
RightFrameOpen RightFrameClose.  Each child object has its own 
MatrixTransformUpdater to perform the animation.

If I do:
playAnimation(animation1)
it plays OK till the end.

If I do:
playAnimation(animation3)
it plays OK till the end.

But if I do:
playAnimation(animation1)
playAnimation(animation3)
both animations play half their duration.

Setting the data variance to dynamic on the root node didn't help.

On Thursday, April 30, 2020 at 5:07:36 PM UTC-7, Mauricio Franco wrote:
>
> Hi,
> I've a FBX object exported from Blender that have two parts.  The object 
> has two animations (one for each part).
> I call playAnimation for both parts at the same time but they only play 
> until half way the animation duration.
> If I play either animation it will play to the end.
>
>
> Any advice and suggestions will be greatly appreciated,
>
> Mauricio.
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/be4200f7-ab9b-4240-8e6b-71fb4f20620a%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200502/ef9b7fcc/attachment.html>


More information about the osg-users mailing list