Jump to content
  • Advertisement


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


OpenGL openGL rotation store

This topic is 5673 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!