Skip to main content
Post Undeleted by HISEROD
First answer was not the problem at hand.
Source Link
HISEROD
  • 4k
  • 11
  • 25

In blender there are two sets of axes for transforming objects: global and localThis strange behavior is called gimbal lock. When an objectIt is first created, these two setscaused by the interdependency of the three rotation axes or spaces are identical.

For example, if you create a camera and resetWhen the rotation withmiddle axis AltR, it will be(Y in the default orientation with its local space perfectlycase of XYZ rotation) is set to any value which results in a ±90° rotation, the first axis is aligned with global spacethe last. You can confirmAt this by enabling "Axis"point, a change to the first or last axial rotation can only rotate around the last axis (Z in Object Properties → Viewport Displaythe case of XYZ).
Show Axes

If you now rotate the camera, you will see thatA good example can be seen in this gif by Peyman Massoudi:

Notice how the local spacered X ring is rotated as wellto the blue Z ring.
Rotated Camera

If you pressThe solution is to use axis-angle, quaternion or a different rotation order RZZ(e.g. XZY, the object will rotate around its local Z axisZXY, YZX,.
Local Rotation

If you click the aforementioned radio button for the camera in your file it will clearly display..) to rotate the local axes for youobject.
Show Axes

In blender there are two sets of axes for transforming objects: global and local. When an object is first created, these two sets of axes or spaces are identical.

For example, if you create a camera and reset the rotation with AltR, it will be in the default orientation with its local space perfectly aligned with global space. You can confirm this by enabling "Axis" in Object Properties → Viewport Display.
Show Axes

If you now rotate the camera, you will see that the local space is rotated as well.
Rotated Camera

If you press RZZ, the object will rotate around its local Z axis.
Local Rotation

If you click the aforementioned radio button for the camera in your file it will clearly display the local axes for you.
Show Axes

This strange behavior is called gimbal lock. It is caused by the interdependency of the three rotation axes.

When the middle axis (Y in the case of XYZ rotation) is set to any value which results in a ±90° rotation, the first axis is aligned with the last. At this point, a change to the first or last axial rotation can only rotate around the last axis (Z in the case of XYZ).

A good example can be seen in this gif by Peyman Massoudi:

Notice how the red X ring is rotated to the blue Z ring.

The solution is to use axis-angle, quaternion or a different rotation order (e.g. XZY, ZXY, YZX,...) to rotate the object.

Post Deleted by HISEROD
Source Link
HISEROD
  • 4k
  • 11
  • 25

In blender there are two sets of axes for transforming objects: global and local. When an object is first created, these two sets of axes or spaces are identical.

For example, if you create a camera and reset the rotation with AltR, it will be in the default orientation with its local space perfectly aligned with global space. You can confirm this by enabling "Axis" in Object Properties → Viewport Display.
Show Axes

If you now rotate the camera, you will see that the local space is rotated as well.
Rotated Camera

If you press RZZ, the object will rotate around its local Z axis.
Local Rotation

If you click the aforementioned radio button for the camera in your file it will clearly display the local axes for you.
Show Axes