I'm currently working on a project where I am trying to display an Ogre 3D human model and its skeleton in my personal application. My model comes from MakeHuman (http://www.makehuman.org/) which gives me .mesh.xml and .skeleton.xml files.
I can draw the mesh but I got troubles displaying the skeleton since I did not find any specification for .skeleton.xml file format.
First three bones of my model look like this:
Code: Select all
<bone id="0" name="root">
<position x="0.0" y="8.70061683655" z="-0.647733330727" />
<rotation angle="-1.51673085594">
<axis x="-1.0" y="1.34804047087e-10" z="7.24879839663e-10" />
</rotation>
</bone>
<bone id="1" name="spine05">
<position x="-2.48034689255e-17" y="0.780916077708" z="-6.17040605277e-08" />
<rotation angle="-1.96875790305">
<axis x="1.0" y="0.0" z="0.0" />
</rotation>
</bone>
<bone id="2" name="pelvis.L">
<position x="-2.48034689255e-17" y="0.780916077708" z="-6.17040605277e-08" />
<rotation angle="-1.68171712564">
<axis x="0.0912755176101" y="0.151359656585" z="0.984255573641" />
</rotation>
</bone>
I think I miss something with this skeleton format and I wonder if someone could explain me in what order do I need to do my transformations to display these first three bones correctly.
Thank you.