Jump to content
  • Advertisement
Sign in to follow this  
Scuko

Skel. animation.. Rotation order... Convert from YXZ to XZY

This topic is 4153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

HELP dudes ! I use skeletal animations in my game.. (i make them in 'Anim8or' program :D) joint rotation order is XZY.. works ok.. example: glRotatef(BP_Head.X, 1, 0, 0); glRotatef(BP_Head.Z, 0, 0, 1); glRotatef(BP_Head.Y, 0, 1, 0); ripped some animations from old game on Sony PlayStation.. :P but they use YXZ rotation order ! worx ok with: glRotatef(BP_Head.Y, 0, 1, 0); glRotatef(BP_Head.X, 1, 0, 0); glRotatef(BP_Head.Z, 0, 0, 1); i need to ADAPT them for my XZY order.. how to convert values ? i need these anims ! =(

Share this post


Link to post
Share on other sites
Advertisement
Multiply them out into a rotation matrix (using their order), then extract the euler angles (in your order) from that matrix.

Share this post


Link to post
Share on other sites
yeh i tried this thing..

http://www.geometrictools.com/Documentation/EulerAngles.pdf

how to extract euler angles from matrix..
but i got sh!t. i got almost all values near zero... 0.0023, 0.000123, -0.3123100... etc.. whats wrong ?
im not so good in math. =(

entered my matrix 4x4 ( float M[16] )values in that r00.. r21... r02, r12

like this - r00 = M[0] r01 = M[1] r10 = M[4] r11 = m[5]..

everything looks right... =((

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!