Page MenuHome

Combine XYZ transform from Degrees to Radians
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: rB0f45cab862b8
Worked: (newest version of Blender that worked as expected)

Short description of error
I try to expose the Rotation option of the mapping node by usign a Combine XYZ node, but I noticed that it converts the value from Degrees to Radians.

Exact steps for others to reproduce the error
Opne the file, I pinned the 2 nodes editors, so it's easier to compare the two behaviors.

In order to get a 90° degrees rotation using the Combine XYZ node I had to use π/2.
While on the right I got it by using the Mapping node slot with a value in degrees at 90.

Since I think the fastes way to expose those 3 values is by using the Combine XYZ, I expect that the result won't change.

thank you.

Event Timeline

What exactly is the bug here? As far as I can see this behavior is exactly expected since 90deg = pi/2 radians = 1.571... and the "combine XYZ" does not have fields of type "angle", just plain values. I guess a "Combine Rotation" or "Radians to Degrees" node would be nice to have, but then it's a feature request.

Internally, all angles are radians, this is just displayed as degrees in the UI.
This is similar to T81389: The 'Vector Rotate' node's 'Angle' input is displayed in degrees but uses radians when something is plugged into it. or T49062: "Rotate" compositor node units inconsistent.

Dont think this is a bug, so unless I am missing something and this is different from T81389: will merge with T81389

Note: you could of course use the Converter > Math node set to To Radians mode, but this requires more clicks...