feat(ncore_vis): Add option to recenter world coordinates near the origin#93
Merged
janickm merged 1 commit intoNVIDIA:mainfrom May 6, 2026
Merged
Conversation
…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.
f94c25f to
d4a1e3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
--recenter-world/--no-recenter-worldCLI option (default: enabled) to control whether the scene is shifted to the origin by subtracting the first rig pose translation. This is reflected in theCLIBaseParamsdataclass and passed through the CLI, server, and data loader layers. [1] [2] [3] [4] [5]world_origin_offset,rebase_world_se3, andrebase_world_pointsmethods inDataLoaderto compute and apply the translation offset for recentering world coordinates.Integration into rendering pipeline
rebase_world_se3orrebase_world_pointsbefore rendering world-coordinate data. This ensures all rendered geometry is consistently shifted. [1] [2] [3] [4] [5] [6] [7]