esc
Start typing to search the docs
Navigate Open

View­Coordinates

⚠️ This type is unstable and may change significantly in a way that the data won't be backwards compatible. Sets the default orientation for 3D views at or below this entity.

The orientation determines the 3D view's eye orientation, navigation, and default grid plane. It does not change logged transforms.

The three directions are always ordered as [x, y, z] and specify where each positive axis points. For example, [Right, Down, Forward] means that +X points right, +Y points down, and +Z points forward.

A 3D view uses the value logged at its origin entity or the closest ancestor. SpatialInformation can override it for an individual view.

Rerun does not yet support left-handed coordinate systems.

Fields

Required

Can be shown in

Example

Set the default 3D view orientation

"""Set the default orientation for a 3D view."""

import rerun as rr

rr.init("rerun_example_view_coordinates", spawn=True)

rr.log(
    "world", rr.ViewCoordinates.RIGHT_HAND_Z_UP, static=True
)  # Set the 3D view's up direction
rr.log(
    "world/xyz",
    rr.Arrows3D(
        vectors=[[1, 0, 0], [0, 1, 0], [0, 0, 1]],
        colors=[[255, 0, 0], [0, 255, 0], [0, 0, 255]],
    ),
)