Jump to content
  • Advertisement


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


OpenGL openGL rotation store

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

I have what appears to be a very simple problem, I want to be able to rotate an object about the X and Z axis 90 degrees. I then want to be able to remember this rotation and rotate about the X and Z axis again, however, the only axis that remains in the same place is the X axis, the Z axis now points along the Y axis and the Y axis now the axis I would have to rotate about to get the effect of rotating on the Z. Does anybody know how I overcome this problem? I am already familliar with matrices but I cant seem to overcome the local coordinate system.

Share this post

Link to post
Share on other sites
Sounds to me like a bad case of ''Gimbal Lock''. Google for it or search the article section over here. There should be a good article called ''Euler angles are evil''. After that, eigher learn martices or quaternions. I recommend quaternions are they are numerically more stable than matrices.

Lone Wolves Game Development
Sander Maréchal
[Lone Wolves][Game Developers Emporium][E-mail]
[Hosting $7,95/mo][Forum FAQ][Google]

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!