Interpolation of animation data

imtrobin

17-04-2008 12:16:01

Hi,

I'm comparing an node animation exported with Ofusion vs OgreMax. It's a simple translation loop. The Ogremax exports 3 keyframes like so


<animations>
<animation name="SimpleAnim" enable="true" loop="true" interpolationMode="spline" rotationInterpolationMode="spherical" length="3.33354">
<keyframe time="0">
<translation x="0" y="0" z="0" />
<rotation qx="-0" qy="-0" qz="-0" qw="1" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.833333">
<translation x="16.2552" y="0" z="0" />
<rotation qx="-0" qy="-0" qz="-0" qw="1" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="2">
<translation x="-27.8431" y="0" z="0" />
<rotation qx="-0" qy="-0" qz="-0" qw="1" />
<scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="3.33333">
<translation x="0" y="0" z="0" />
<rotation qx="-0" qy="-0" qz="-0" qw="1" />
<scale x="1" y="1" z="1" />
</keyframe>
</animation>
</animations>
<entity name="Teapot01" id="3" meshFile="Teapot01.mesh" castShadows="true" receiveShadows="true">
<subentities>
<subentity index="0" materialName="02 - Default" />
</subentities>
</entity>


But with OFusion, it is sampling the keyframe every few milisecond. This is not data inefficent if we can interpolate, is there a way to change the sampling time?

Lioric

17-04-2008 17:22:05

Yes, you have complete control over the produced keyframes

In the "Object" properties panel, select the "Animation Optimization" settings that are better for your scene object (pos, rot, scale values), and the sample rate if needed (its suggested to use optimization values over the sample rate for more control and animation quality)

This produced optimized keyframes animation using an advanced animation optimizer

After you modify the Animation optimization values, you can update your object in the preview viewport and review if the animation quality is what you need or increase the optimization values for more keyframe optimization

imtrobin

19-04-2008 11:49:15

Cool, but I'm not seeing any effect. I've tried with various setings. I will send you the scene since I have a Pro version.