Spatial3DView
For viewing spatial 3D data.
Properties properties
background
background
Configuration for the background of the view.
kind
: The type of the background.color
: Color used for theSolidColor
background type.
time_ranges
timeranges
Configures which range on each timeline is shown by this view (unless specified differently per entity).
If not specified, the default is to show the latest state of each component. If a timeline is specified more than once, the first entry will be used.
API reference links api-reference-links
Example example
Use a blueprint to customize a Spatial3DView. use-a-blueprint-to-customize-a-spatial3dview
"""Use a blueprint to customize a Spatial3DView."""
import rerun as rr
import rerun.blueprint as rrb
from numpy.random import default_rng
rr.init("rerun_example_spatial_3d", spawn=True)
# Create some random points.
rng = default_rng(12345)
positions = rng.uniform(-5, 5, size=[50, 3])
colors = rng.uniform(0, 255, size=[50, 3])
radii = rng.uniform(0.1, 0.5, size=[50])
rr.log("points", rr.Points3D(positions, colors=colors, radii=radii))
rr.log("box", rr.Boxes3D(half_sizes=[5, 5, 5], colors=0))
# Create a Spatial3D view to display the points.
blueprint = rrb.Blueprint(
rrb.Spatial3DView(
origin="/",
name="3D Scene",
# Set the background color to light blue.
background=[100, 149, 237],
),
collapse_panels=True,
)
rr.send_blueprint(blueprint)
Visualized archetypes visualized-archetypes
AnnotationContext
Arrows3D
Asset3D
Boxes3D
Capsules3D
Clear
DisconnectedSpace
Ellipsoids3D
InstancePoses3D
LineStrips3D
Mesh3D
Points3D
Transform3D
ViewCoordinates
Arrows2D
(if logged under a projection)AssetVideo
(if logged under a projection)Boxes2D
(if logged under a projection)DepthImage
(if logged under a projection)EncodedImage
(if logged under a projection)Image
(if logged under a projection)LineStrips2D
(if logged under a projection)Points2D
(if logged under a projection)SegmentationImage
(if logged under a projection)VideoFrameReference
(if logged under a projection)