Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

executor_2k2

Quaternions for concatenated rotation then a transform to matrix

This topic is 5895 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

Im using quaternions for rotation. I am getting the quats from key frames in a .3ds file. How do I concatenate these rotations? Simple quaternion multiplication doesnt seem to be doing the trick. Keep in mind that I am then translating the concatenated quaternion into a rotation matrix after the concatenation. Does anyone know how to get a proper concatentated rotation using quaternions? Thanks. Well, that was a waste of 2 minutes of my life. Now I have to code faster to get ''em back...

Share this post


Link to post
Share on other sites
Advertisement
What do you mean ''concatenate'' ? The only meaningful way to concatenate rotation quaternions is to multiply. Don''t forget that the order of multiplication matters, and that a generalised transformation is not just a rotation: it may also involve a translation, e.g. a vector, you have to deal with.

Do you mean something else ? E.g. if you want to blend, i.e. interpolate, between quaternions, use SLERP or some other interpolation method.

Share this post


Link to post
Share on other sites

  • 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!