FrontPage User Control Panel Browse Our Members View Calendar Register Today!
Get New Posts! View Faq?

Not A Member Yet? Register today and become part of the community.

Go Back   GDI Forums > Game Development > Physics & Math

Reply
 
Thread Tools Display Modes
Old 04-07-2007, 08:02 AM   #1
guptan
Junior Member
 
guptan's Avatar
 
Join Date: Apr 2007
Posts: 13
Default gimbal lock

hi all,
can anyone explain what is gimbal lock. i tried many tutorials. but all of 'em were confusing.
tia
>guptan
Status: Offline
 
Reply With Quote
Old 04-07-2007, 03:01 PM   #2
Specchum
Super Moderator
 
Specchum's Avatar
 
Join Date: Apr 2007
Location: Mumbai
Posts: 91
Default

Gimbal lock occurs when using Euler angles for your rotations. The problem is that the evaluation of the axis of rotations is done in a set order and independent of each other.The order of rotation is usually, Y, X & Z but isn't necessarily so.

This is one of the decent explanations on the subject that I know of:
http://www.sjbaker.org/steve/omniv/eulers_are_evil.html

While quaternions are often cited as the best solution to the above problem, you can actually stick to Euler angles if you aren't doing anything fancy. For eg, a workaround which is often used when implementing an FPS camera is to restrict pitch and roll to +/- 89 degrees, while there is no restriction on the yaw.
Status: Offline
 
Reply With Quote
Old 04-07-2007, 04:35 PM   #3
KC_SkeletalMesh
Almost lives his life at this place..
 
KC_SkeletalMesh's Avatar
 
Join Date: Apr 2007
Location: Hyderabad
Posts: 90
Send a message via MSN to KC_SkeletalMesh Send a message via Yahoo to KC_SkeletalMesh Send a message via Skype™ to KC_SkeletalMesh
Default

True,

There is a little bit of additional computation involved when you use Quaternions. As in, calls to convert a Matrix to Quaternion and then back.

Quaternions are more often used for Skeletal Animation, Spherical Interpolation, etc.

Camera math, Game Object/ Scene Node orientations, can be done wtih Euler angles, safely.
Status: Offline
 
Reply With Quote
Old 04-18-2007, 04:12 PM   #4
guptan
Junior Member
 
guptan's Avatar
 
Join Date: Apr 2007
Posts: 13
Default

when spherical interpolation is used in games?
Status: Offline
 
Reply With Quote
Old 04-19-2007, 05:31 AM   #5
Specchum
Super Moderator
 
Specchum's Avatar
 
Join Date: Apr 2007
Location: Mumbai
Posts: 91
Default

Whenever you need to smoothly interpolate along an arc that connects 2 quaternion.
Status: Offline
 
Reply With Quote
Old 04-21-2007, 04:49 PM   #6
guptan
Junior Member
 
guptan's Avatar
 
Join Date: Apr 2007
Posts: 13
Cool i got a link

The article Quaternion Powers by Sobeit Void hosted in gamedev.net, is an excellent one for understandig quaternions and gimbal lock. Here is the link
http://www.gamedev.net/reference/art...rticle1095.asp
I posted this for our readers.
Status: Offline
 
Reply With Quote
Old 05-15-2007, 05:02 AM   #7
chand81
Forums Noobie.
 
Join Date: May 2007
Posts: 10
Default

Here is an interesting link to understand gimbal & gimbal lock better.
http://www.hq.nasa.gov/alsj/gimbals.html
Status: Offline
 
Reply With Quote
Old 05-26-2008, 05:58 PM   #8
KevinFlys
Phull-Time Activity Member..
 
Join Date: May 2008
Posts: 69
Thumbs down Benefits of Becoming a Member

Can you simply tell if Runescape is a great game maplestory powerleveling or not without you becoming a member? The answer to that would be, NO! Well you can make a few predictions about Runescape and see the moral of the game when being a regular user and not a member but becoming a member brings a whole lot of additions to Runescape that you would never see if you were not a member. Being a member of Runescape has so many benefits and I will try to list them all here for you. Runescape tells you them, but I'm going to detail it a few features for you here. runescape money
Status: Offline
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.