Houdini 21.0 Nodes APEX nodes

transform::ClampedLookAtWindow

Limits the rotational range of a LookAt to a window on a sphere’s surface.

On this page
Since 21.0

This subgraph adds additional functionality to transform::LookAt to limit the range of the resultant LookAt to a rectangular window on the surface of a sphere. It also computes local UV coordinates that describe the offset of the resultant LookAt within the rectangular window’s available range.

Inputs

xform: Matrix4

The input matrix.

lookat: Matrix4

The position of this matrix determines the look at direction.

lookup: Matrix4

The position of this matrix determines the look up direction.

lookataxis: Vector3

The local axis of the xform matrix that points toward the lookat transform. Defaults to (1, 0, 0).

lookupaxis: Vector3

The local axis of the xform matrix that aligns with the lookup transform. Defaults to (0, 1, 0).

urange: Vector2

The minimum and maximum angles (in degrees) that limit the range of the lookataxis from left to right. Defaults to (-180, 180), representing the full range.

vrange: Vector2

The minimum and maximum angles (in degrees) that limit the range of the lookataxis from bottom to top. Defaults to (-90, 90), representing the full range.

Outputs

xform: Matrix4

The input matrix with the rotational range limited.

u: Float

A parametric value in the range [0, 1] that represents the location of the output lookataxis within the spherical window in the horizontal u-axis. The output lookataxis is the direction of the lookataxis after any limits have been applied.

v: Float

A parametric value in the range [0, 1] that represents the location of the output lookataxis within the spherical window in the vertical v-axis. The output lookataxis is the direction of the lookataxis after any limits have been applied.

See also

APEX nodes