Jump to content
  • Advertisement

Archived

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

joma

what is gimbal lock?

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

Could someone give me some example, or point me to some article or something? I know that gimbal lock is one of the main reasons that someone should use quaternions and I have read many quaternions tuts, but I cannot understand why the extra effort. I want some examples...... wherever we ride it''''s metal we bring

Share this post


Link to post
Share on other sites
Advertisement
I found this page which seems to explain it. Thing is though, I tend to use Euler method and I''ve never experienced it. I think it has something to do with the order each axis-rotation is done.

I''m going to get to a quaternion library eventually though, as really you only need to make the effort once to have code that can be reused again and again.

http://www.edharriss.com/tutorials/tutorial_xsi_gimbal/xsi_gimbal.html

Share this post


Link to post
Share on other sites
You might also want to look at the math & physics forum FAQ, it will tell you all you need to know about euler angles and gimbal lock...

Gimbal lock will only occur when using all three axes of rotation. When using yaw, pitch, and roll...

Share this post


Link to post
Share on other sites
http://www.j3d.org/matrix_faq/matrfaq_latest.html#Q34

As long as you restrict the movement of the "camera" on a specific axis, you won''t experience gimbal lock. Restricting rotation on an axis works perfect for FPS''s with euler angles, as these do not permit complete rotation around when looking "up" for instance.

I believe this is how it works - in my mind anyway As my mind is a lonley place, please feel free to correct me

Share this post


Link to post
Share on other sites
quote:
original post by: mr_dejao
http://www.j3d.org/matrix_faq/matrfaq_latest.html#Q34

As long as you restrict the movement of the "camera" on a specific axis, you won''t experience gimbal lock. Restricting rotation on an axis works perfect for FPS''s with euler angles, as these do not permit complete rotation around when looking "up" for instance.

I believe this is how it works - in my mind anyway As my mind is a lonley place, please feel free to correct me



that''s as correct as it gets , in case you had any doubts...

Share this post


Link to post
Share on other sites
thank you guys, that was very helpful. Generally I had no difficulty with quaternions. As I have said, Ive read some tuts, and I have implemented my own quaternion class so I can make any transform I want. The gimbal lock thing was my only question and now I am sutisfied. Thanks again!

wherever we ride it''''s metal we bring

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!