Sign in to follow this  
tealrabbit

Right Handed to Left Handed

Recommended Posts

tealrabbit    122
Hi, I am exporting models and animations from maya and importing them to D3D. I am not using .x files but doing everything myself. My problem is that maya uses a right handed system and D3D uses a left handed system. If I invert the z of all vertices the models face the right directions but the joints are wrong. If I invert the joints the animations get messed up. The only way I have gotten the animations to look right is when the joints are untouched and only the vertex z's are inverted. But this means the joints are all in the wrong place. Do I want to invert the joints when exporting them? Do I want to invert the joints when exporting animations? Do I want to invert vertex z? Also when inverting a matrix what do I invert? This is how I do it now: m_pMatrix[0][2] *= -1; m_pMatrix[1][2] *= -1; m_pMatrix[2][0] *= -1; m_pMatrix[2][1] *= -1; m_pMatrix[2][2] *= -1; The problem could also have to do with row major and column major. Any clues would be great. I've been stuck a good while now Thanks

Share this post


Link to post
Share on other sites
dave    2187
Well as far as i am aware when you swap coordinate systems from left to right of vice versa, the X axis is the only thing that changes. I would suspect that the left-right of your mesh coordinates would be swapped but i wouldn't have thought this would be something to worry about.

ace

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this