.skeleton file structure

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Zen Ken
Gnoblar
Posts: 17
Joined: Mon Feb 21, 2005 7:54 pm

.skeleton file structure

Post by Zen Ken » Fri Mar 25, 2005 9:01 pm

Hey all. More animation questions!

I've already discussed altering animations through weighted blending, but I'm not sure if that's enough, really.

My next question is whether or not the exported animation files are editable such that I can alter or tweak joint rotation parameters on the fly. Is this possible? I didn't see anything in Ogre3D API that even came close to really altering any current animation tracks produced by 3ds Biped.

Perhaps someone could post an example .skeleton file I could peruse to see if it has decipherable data for animation. Thanks!
0 x

Bill
Gremlin
Posts: 167
Joined: Sun Sep 26, 2004 11:50 pm
Location: Arkansas

Post by Bill » Sat Mar 26, 2005 2:15 am

Well there are lots of examples of .skeleton files in the OGRE distribution. But you wouldn't be able to easily read a .skeleton file since it's binary. You might rather look at a .skeleton.xml file. Here is a basic one:

Code: Select all

<skeleton>
  <bones>
    <bone id="0" name="root" >
      <position x="-8.59818" y="-0.523501" z="0.0523501" />
      <rotation angle="0.0996687" >
        <axis x="-1" y="0" z="0" />
      </rotation>
    </bone>
    <bone id="1" name="bone" >
      <position x="0" y="0" z="0" />
      <rotation angle="1.53269" >
        <axis x="-0.000838562" y="-0.098622" z="0.995125" />
      </rotation>
    </bone>
  </bones>
  <bonehierarchy>
    <boneparent bone="bone" parent="root" />
  </bonehierarchy>
  <animations>
    <animation name="Default_Animation" length="3.33667">
      <tracks>
        <track bone="bone">
          <keyframes>
            <keyframe time="0.0333667">
              <translate x="0" y="0" z="0" />
              <rotate angle="1.51577">
                <axis x="0.001692" y="0.0994893" z="-0.995037" />
              </rotate>
              <scale x="1" y="1" z="1" />
            </keyframe>
            <keyframe time="3.33667">
              <translate x="0" y="0" z="0" />
              <rotate angle="0">
                <axis x="1" y="0" z="0" />
              </rotate>
              <scale x="1" y="1" z="1" />
            </keyframe>
          </keyframes>
        </track>
      </tracks>
    </animation>
  </animations>
</skeleton>
0 x

Zen Ken
Gnoblar
Posts: 17
Joined: Mon Feb 21, 2005 7:54 pm

Post by Zen Ken » Tue Mar 29, 2005 7:45 pm

Thanks!
0 x

Post Reply