Z rotation sometimes mimics x rotation.

contedesfeescontedesfees Posts: 274

I noticed this problem a couple of times. Z rotation sometimes rotates an object on the x axis, just like X rotation!. I'm using DAZ Studio 4.23.0.1, the latest and greatest if I'm not mistaken. Can anyone suggest a solution? Thanks to one and all, and Season's Greetings. I know it's Christmas; I'm the patient sort.

Post edited by contedesfees on

Comments

  • crosswindcrosswind Posts: 7,287
    edited December 23

    You rotated Z axis with the Gizmo in Viewport or drag to dial Z Rotate slider in Parameters pane ?

    Post edited by crosswind on
  • algovincianalgovincian Posts: 2,622

    contedesfees said:

    I noticed this problem a couple of times. Z rotation sometimes rotates an object on the x axis, just like X rotation!. I'm using DAZ Studio 4.23.0.1, the latest and greatest if I'm not mistaken. Can anyone suggest a solution? Thanks to one and all, and Season's Greetings. I know it's Christmas; I'm the patient sort.

    Gimbal lock?

    - Greg 

  • crosswindcrosswind Posts: 7,287
    edited December 23

    In current DS version, it's not like Blender where there's a Gimbal orientation view, so actually you're not able to reproduce a true Gimbal Lock in DS Viewport, e.g. X Axis and Z Axis are overlapped together, with same rotation result.

    But if one firstly rotates an object's Y Axis to +90 degree, then rotate Z Axis by using Gizmo in Viewport (with Blue circle), it'll behave like an effect of Gimbal, i.e. the object is rotated on X Axis (with default Local Coordinates).

    In such a case, if one rotates Z Axis by dialing Z Rotate in Parameters pane, or change to World Coordinates then rotate Z Axis with Gizmo in Viewport, there'll be no issue at all.

    Or, create a Group node or null node on the object and manipulate the parent node ~~

    Post edited by crosswind on
  • CES3DCES3D Posts: 80

    Even if the Y Rotate value is 0, do X Rotate and Z Rotate exhibit similar behavior?

    Depending on the Rotation Order and the Y Rotate value, X Rotate and Z Rotate may appear to rotate on the same axis.

    For example, consider an object with a Rotation Order of XYZ and a Y Rotate value of -90.
    If this object's X Rotate is set to 45, the object first rotates 45 degrees around the X-axis and then -90 degrees around the Y-axis.
    Next, if X Rotate is returned to 0 and Z Rotate is set to 45, the object first rotates -90 degrees around the Y-axis and then 45 degrees around the Z-axis.

    If you keep Y Rotate fixed at -90 and change the values of X Rotate and Z Rotate, they appear to rotate on the same axis.

  • crosswindcrosswind Posts: 7,287
    edited December 23

    CES3D said:

    Even if the Y Rotate value is 0, do X Rotate and Z Rotate exhibit similar behavior?

    Depending on the Rotation Order and the Y Rotate value, X Rotate and Z Rotate may appear to rotate on the same axis.

    For example, consider an object with a Rotation Order of XYZ and a Y Rotate value of -90.
    If this object's X Rotate is set to 45, the object first rotates 45 degrees around the X-axis and then -90 degrees around the Y-axis.
    Next, if X Rotate is returned to 0 and Z Rotate is set to 45, the object first rotates -90 degrees around the Y-axis and then 45 degrees around the Z-axis.

    If you keep Y Rotate fixed at -90 and change the values of X Rotate and Z Rotate, they appear to rotate on the same axis.

    Yea, that's right ! and these behaviors only happen with XYZ and ZYX. Since default rotation order in DS is YXZ, there should be no such an issue with this setting. 

    So better check the rotation order as well in Joint Editor.

    Post edited by crosswind on
  • Gimbal Lock is an issue, rgardless of rotation order - indeed, the reason for adjusting the rotation order is in part to minimise the issue (the advice is to have the rotation that is least likely to hit ninety degrees before the rotation that is more likely to hit ninety degrees). This may not be visible in the Viewport, depending on the coordinate option in Tool settings, but the rotation properties in parameter panes are literal and will readily show the issue.

  • crosswindcrosswind Posts: 7,287

    Richard Haseltine said:

    Gimbal Lock is an issue, rgardless of rotation order - indeed, the reason for adjusting the rotation order is in part to minimise the issue (the advice is to have the rotation that is least likely to hit ninety degrees before the rotation that is more likely to hit ninety degrees). This may not be visible in the Viewport, depending on the coordinate option in Tool settings, but the rotation properties in parameter panes are literal and will readily show the issue.

    Thanks ! It's much more clearer to me now !

Sign In or Register to comment.