PDA

View Full Version : Collada Transform Order


tryz
05-31-2008, 02:39 AM
I've been working on an XNA importer for Collada models. One model is the "Dude" model from an XNA sample that I converted to Collada format through XSI. It has a skin, bones, and animation. The other model is one I created in XSI and exported to the Collada format (again, a skin, bones, and animation).

I can animate both of them now in XNA, but I have to apply the animation transforms in different orders or I get odd results.

For the Dude model, I have to:
RotateX
RotateY
RotateZ
Translate

For my custom model, I have to:
Translate
RotateX
RotateY
RotateZ

In the Collada file, there is nothing that tells me the order. All Animation notes go in this order:
TransformX
TransformY
TransformZ
RotateX
RotateY
RotateZ

How am I to know what order to apply the transforms? Should they all be consistant when exporting from XSI?

Thanks for the help!