To Polar

Converts Cartesian X/Y/Z coordinates to spherical form: a radius (distance from origin), a phase (azimuthal angle as a 0–1 turn), and an elevation (polar angle as a 0–1 turn). Useful for analyzing or transforming positions in radial terms.

Inputs

PortTypeDefaultRangeDescription
XScalar0.0−1–1Cartesian X coordinate
YScalar0.0−1–1Cartesian Y coordinate
ZScalar0.0−1–1Cartesian Z coordinate

Outputs

PortTypeDescription
RScalarDistance from origin
Phase (θ)ScalarAzimuthal angle as a 0–1 turn
Elevation (φ)ScalarPolar angle as a 0–1 turn. 0 = north pole (+Z), 0.25 = equator (XY plane), 0.5 = south pole (−Z)

Ideas

  • Convert position to polar, modify the radius, angle, or elevation with math nodes, then convert back with From Polar for radial distortion effects.
  • Extract the angle of a moving point to drive color or other parameters based on rotational position.
  • Feed 3D content through To Polar, manipulate in spherical space, then back through From Polar for spherical warping effects.
  • From Polar: the inverse conversion (angle/radius/elevation to X/Y/Z)
  • Arithmetic: modify radius, angle, or elevation values before converting back