Forum: Poser Technical


Subject: Can anyone explain "Gimball Lock" to me?

Cage opened this issue on Nov 15, 2002 ยท 9 posts


VK posted Fri, 15 November 2002 at 8:29 PM

Hello Cage, I don't know what was going on with your scene, but I think I know what "Gimbal Lock" means: Your model has 3 rotation channels. If you use only one of the channels, then the rotation axis is aligned with one of the main axes of the Poser scene. But if you set two or three rotation channel at the same time, then the rotation axes are modified, and strange things can happen. Whenever you set the middle (second) rotation channel to 90 or -90, the first and third rotation channels rotate the model around the same axis of the Poser scene. So, your model loses a rotation axis, whenever the second rotation channel is 90 or -90. This is "Gimbal Lock". For example: yRot = 54 xRot = 90 zRot = 0 looks exactly like: yRot = 0 xRot = 90 zRot = -54 The middle rotation (xRot in this example) at 90 locks the gimbal completely, so that the first (yRot) and third (zRot) rotations share the same rotation axis. This happens, because Poser computes the rotation channels one after the other, and the rotation axis of later channels is modified by the rotation of prior channels. So you can't avoid this effect. You can sometimes arrange the rotation channels (the rotation order) properly, to minimize gimbal lock effects: You find out, which of the rotations won't be close to 90 or -90, then you place this rotation between the remaining two rotation channels. The arms and legs of Poser humans have for example the rotation order "Twist", "Side-Side", "Bend", because the middle rotation ("Side-Side") will never be close to 90. When you try to set "Side-Side" to 90, you lose a rotation axis, and "Twist" looks exactly like "Bend".