<div dir="ltr">It happened to be an issue in the FBX file. <br>The example: osganimationtimeline helped a lot.<br>Thanks.<br><br>On Saturday, May 2, 2020 at 9:48:03 AM UTC-7, Mauricio Franco wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>To illustrate the problem better. This is the scene structure:</div><div> 1. Shape (osg::Group) => Callbacks (update: [ LeftFrameOpen LeftFrameClose RightFrameOpen RightFrameClose ])<br> 2. Block (osg::MatrixTransform) => Callbacks (update: Block)<br> 3. Block (osg::Geode)<br> 2. LeftFrame (osg::MatrixTransform) => Callbacks (update: LeftFrame)<br> 3. LeftFrame (osg::Geode)<br> 2. RightFrame (osg::MatrixTransform) => Callbacks (update: RightFrame)<br> 3. RightFrame (osg::Geode)<br><br></div><div>The group node at level 1 (called Shape) has three child objects and an animation manager with 4 animations: <span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">LeftFrameOpen LeftFrameClose RightFrameOpen RightFrameClose. Each child object has its own MatrixTransformUpdater to perform the animation.</span></div><div><span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>If I do:<br>playAnimation(animation1)<br>it plays OK till the end.<br><div><br></div><div><span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">If I do:</span><br><span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">playAnimation(animation3)</span><br><span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">it plays OK till the end.</span><br><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br></div><div>But if I do:<br></div>playAnimation(animation1)<br>playAnimation(animation3)<br>both animations play half their duration.<br><br>Setting the data variance to dynamic <span style="display:inline!important;float:none;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:"Arial","Helvetica",sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">on the root node</span> didn't help.<br></span></div><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br>On Thursday, April 30, 2020 at 5:07:36 PM UTC-7, Mauricio Franco wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br>I've a FBX object exported from Blender that have two parts. The object has two animations (one for each part).<br>I call playAnimation for both parts at the same time but they only play until half way the animation duration.<br>If I play either animation it will play to the end.<br><br><br><div>Any advice and suggestions will be greatly appreciated,</div><div><br></div><div>Mauricio.</div></div></blockquote></div></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/548b7cd6-11b5-4a28-83c1-828bf9afc570%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/548b7cd6-11b5-4a28-83c1-828bf9afc570%40googlegroups.com</a>.<br />