.skeleton <keyframe> animation question

Problems building or running the engine, queries about how to use features etc.
Post Reply
Bill
Gremlin
Posts: 167
Joined: Sun Sep 26, 2004 11:50 pm
Location: Arkansas

.skeleton <keyframe> animation question

Post by Bill »

Do <keyframe>s have to be in temporal order? Can there be multiple <keyframe>s with the same time?

Like so:

Code: Select all


<keyframe time="0">
  <translate x="2.4" y="-3.5" z="7.4" />
  <rotate angle="0">
    <axis x="1" y="0" z="0" />
  </rotate>
  <scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.0833333">
  <translate x="-10.3369" y="0" z="0" />
  <rotate angle="0">
    <axis x="1" y="0" z="0" />
  </rotate>
  <scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0">
  <translate x="0" y="0" z="0" />
  <rotate angle=".45">
    <axis x=".1" y=".2" z=".7" />
  </rotate>
  <scale x="1" y="1" z="1" />
</keyframe>
<keyframe time="0.0833333">
  <translate x="0" y="0" z="0" />
  <rotate angle="1.3">
    <axis x=".5" y=".5" z="0" />
  </rotate>
  <scale x="1" y="1" z="1" />
</keyframe>
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Yes and no, respectively. 2 keyframes with the same time for the same track makes no sense.
Post Reply