Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm working on a model/animation Maya exporter for a game I'm working on. I used a very simple animated box mesh with four joints at first to make sure everything works, and got it running relatively easily. However, now that I'm loading a more complex model, I've come across an issue where joints are flipped (somewhat) along the x-axis.

Below is the model in Maya, the arm on the left is swinging forward.

enter image description here

Here is a view of the joints in-game. The red spheres indicate the LEFT shoulder and thigh. The green indicate RIGHT shoulder and thigh, while the blue is the root hip joint.

enter image description here

Please note that in Maya, these joints are reversed. Green should be on the left, and red on the right.

Any idea what's causing this? I've checked my skeletal hierarchy in-game and everything is connected as it should be, and the matrices seem to be correct. It's causing some issues with my smooth skinning, as you can somewhat see in the background of the second picture. It's almost as if the vertices are referencing the correct joints if they weren't flipped, even though the hierarchy is correct.

share|improve this question
you should specify what file format are you using, i'm not an animator but this things matters most of the times. – user827992 Aug 21 '12 at 22:31
it's a custom format, I'm writing both the exporter/importer. – user1609470 Aug 21 '12 at 22:34

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.