Skip to content

feat(ncore_vis): Add option to recenter world coordinates near the origin#93

Merged
janickm merged 1 commit intoNVIDIA:mainfrom
janickm:dev/janickm/push-sytsyzzppqvn
May 6, 2026
Merged

feat(ncore_vis): Add option to recenter world coordinates near the origin#93
janickm merged 1 commit intoNVIDIA:mainfrom
janickm:dev/janickm/push-sytsyzzppqvn

Conversation

@janickm
Copy link
Copy Markdown
Collaborator

@janickm janickm commented May 6, 2026

Some datasets (like waymo) might have large local world offsets that can cause rendering artifacts in WebGL due to floating-point precision issues and requires explicitl initial recentering to the scene in the viewer. This change avoids both issues by allowing to recenter to the first pose (if available) to the viewers origin.

Example of waymo data rendered correctly

image

This pull request adds a new "recenter world" feature to the visualization tool, allowing users to shift the entire scene so that it is centered near the origin. This helps prevent rendering artifacts caused by large world-frame offsets. The feature is exposed as a CLI option and is implemented throughout the data loading and rendering pipeline to adjust all relevant world-coordinate data.

New feature: World recentering

  • Added a --recenter-world/--no-recenter-world CLI option (default: enabled) to control whether the scene is shifted to the origin by subtracting the first rig pose translation. This is reflected in the CLIBaseParams dataclass and passed through the CLI, server, and data loader layers. [1] [2] [3] [4] [5]
  • Implemented world_origin_offset, rebase_world_se3, and rebase_world_points methods in DataLoader to compute and apply the translation offset for recentering world coordinates.

Integration into rendering pipeline

  • Updated camera, cuboid, lidar, radar, and trajectory components to use the new recentering logic by calling rebase_world_se3 or rebase_world_points before rendering world-coordinate data. This ensures all rendered geometry is consistently shifted. [1] [2] [3] [4] [5] [6] [7]

@janickm janickm self-assigned this May 6, 2026
@janickm janickm enabled auto-merge (rebase) May 6, 2026 12:06
@janickm janickm disabled auto-merge May 6, 2026 12:06
…igin

Some datasets (like waymo) might have large local world offsets
that can cause rendering artifacts in WebGL due to floating-point precision issues
and requires explicitl initial recentering to the scene in the viewer.
This change avoids both issues by allowing to recenter to the first pose
(if available) to the viewers origin.
@janickm janickm force-pushed the dev/janickm/push-sytsyzzppqvn branch from f94c25f to d4a1e3e Compare May 6, 2026 12:11
@janickm janickm enabled auto-merge (rebase) May 6, 2026 12:11
@janickm janickm disabled auto-merge May 6, 2026 12:12
@janickm janickm merged commit 9f20e3a into NVIDIA:main May 6, 2026
2 checks passed
@janickm janickm deleted the dev/janickm/push-sytsyzzppqvn branch May 6, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant