docs/content/reference/migration/migration-0-21.md
We've changed how tensors are encoded in .rrd files, so tensors will no longer load from older .rrd files (#8376).
Spatial2D views now defaults to 0.1 in 3D scene units.Previously, the clip plane was set an arbitrary value that worked reasonably for cameras with large focal lengths, but become problematic for cameras with smaller focal length values. This value is now normalized based on the focal length of the camera.
If the default value of 0.1 is still too large for your use-case it can be configured
using the new near_clip_plane of the VisualBounds2D blueprint property, either
through the UI, or through the SDK in Python:
rr.send_blueprint(
rrb.Spatial2DView(
origin="world/cam",
contents="/**",
visual_bounds=rrb.VisualBounds2D(
near_clip_plane=0.01,
),
)
)
.*space_view.*/.*SpaceView.* to .*view.*/.*View.*Various types and fields got changed to refer to "views" rather than "space views". This exclusively affects the Python blueprint sdk.
ViewportBlueprint(...auto_space_views=...) -> ViewportBlueprint(...auto_views=...)Blueprint(...auto_space_views=...) -> Blueprint(...auto_views=...)SpaceView -> ViewSpaceViewBlueprint -> ViewBlueprintSpaceViewContents -> ViewContentsAutoSpaceViews -> AutoViewsSpaceViewClass -> ViewClassSpaceViewOrigin -> ViewOriginSpaceViewMaximized -> ViewMaximizedPreviously, the viewer would show 3 arrows for every logged transform if any of the following was true:
VisualizerOverrides or uiAxisLength component is present as wellFor many usecases this led to too many arrows being shown by default.
We therefore removed the last condition - arrows will no longer show by default if they're the only visualizer.
The easiest way to opt-in to transform arrows is to set AxisLength (axis_length field on the Transform3D archetype) on your transforms.
DisconnectedSpace archetype/component deprecatedThe DisconnectedSpace archetype and DisconnectedSpace component have been deprecated.
To achieve the same effect, you can log any of the following "invalid" transforms:
Previously, the DisconnectedSpace archetype played a double role by governing view spawn heuristics & being used as a transform placeholder.
This led to a lot of complexity and often broke or caused confusion (see https://github.com/rerun-io/rerun/issues/6817, https://github.com/rerun-io/rerun/issues/4465, https://github.com/rerun-io/rerun/issues/4221).
By now, explicit blueprints offer a better way to express which views should be spawned and what content they should query.
(you can learn more about blueprints here).
DisconnectedSpace will be removed in a future release.
RotationAxisAngle with zero rotation axis is no longer treated as identityPreviously, RotationAxisAngle with a zero rotation axis was treated as identity.
This is no longer the case, instead it makes the transform invalid in the same way a zeroed transformation matrix does.