I'm working with the code to export the m2 mesh and
bone data to a simple intermediate format.
I have the verts and normals working great along with
the bone assignments and weights.
However, in exporting the skeleton, I can't figure
out how to export the rotation for any given bone.
According to the notes I've found and looking through
the code, it seems like the Pivot is the position of
the bone (i assume in relation to its parent).
However, I can't figure out how to export the
orientation so that the bones make any sort of
recognizable shape.
I have tried to use the translation.kyes[0] and
rotation.keys[0] to supply what i believe is the
missing data, but that doesn't seem to help.
I realize this is way beyond your application, but
it's the only open source code I've found that works
with the m2 warcraft format. The MyWarCraftStudio
project seems to be closed source.
Thanks,
GenericBum