keyframe animation problem

ilyh76

17-05-2007 23:34:30

Hi, Lioric

I'm experimenting with keyframe animations and had a problem. To recreate this problem, simply create a object and an animation in which the object move from one position to another, then activate the ofusion viewport, update the scene. now the animation is messed up: on the second frame, the object jumps to a position a lot further along the direction it should travel, stays there, and returns to the correct ending position on the last frame.

I tried to apply xform to the object and it doesn't help. If i export the scene at this stage, I get something like this


<oe_scene>
<sceneManager type="1" />
<bkgcolor r="0.490196" g="0.490196" b="0.490196" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="0" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<entities>
<entity name="Box01" hidden="false" filename="Box01.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="0" z="-3.15443e-007" />
<rotation x="0" y="0" z="-0" w="-1" />
<scale x="1" y="1" z="1" />
<animations>
<animation name="New Animation" loop="false" length="0.333333">
<keyframe time="0">
<position x="0" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.0333333">
<position x="250" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.133333">
<position x="250" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.166667">
<position x="50" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.3">
<position x="50" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.333333">
<position x="50" y="0" z="-3.15443e-007" />
<rotation w="-1" x="-0" y="-0" z="0" />
<scale x="1" y="1" z="1" />
</keyframe>
</animation>
</animations>
</entity>
</entities>
</oe_scene>


If i export the scene before activating ofusion viewport, I can get the correct animation in the scene file.

Is there any way to avoid this problem?
Thanks

Lioric

18-05-2007 16:12:35

See this article in the knowledgebase for details about your issue:

Animation Keyframes are modified after the preview viewport is activated