Repository navigation
Conversation
7 tasks done
rilei-nvidia
added a commit
to isaac-sim/IsaacLab
that referenced
this pull request
Jun 16, 2026
# Description This PR integrates @ooctipus's proposed fix for newton shape color replacement to occur pre-clone. Original PR: rilei-nvidia#1 Replace the post-finalize `replace_newton_shape_colors` pass on the Newton model with `replace_newton_builder_shape_colors`, applied to each ModelBuilder before clone replication. This ensures all cloned environments automatically inherit the correct USD material and displayColor values. This not only improves performance but also addresses the regression that @huidongc discovered last week where only env_0 (the clone source) had the right color for the robot arm, and the other cloned envs got the fallback colors - Add replace_newton_builder_shape_colors to newton_model_utils. - Removed replace_newton_shape_colors and any un-used functionality - Call it in NewtonManager (flat, env, and proto-source builders), newton_clone_utils, and replicate - Update tests to exercise the new replace_newton_builder_shape_colors - Update dexsuite_kuka_hetero golden images for correctness # Validation Validated for correctness in the Newton visualizer with (all robot arms should have the same color): ```bash ./isaaclab.sh train --rl_library rsl_rl \ --task Isaac-Lift-KukaAllegro-Camera \ presets=newton_mjwarp,newton_renderer,rgb64,single_camera \ --seed 42 \ --num_envs 4 \ --max_iterations 2 \ --visualizer newton ``` <img width="1917" height="1159" alt="image" src="https://github.com/user-attachments/assets/fabf9ef4-60f6-4e29-a11a-e266e77d7f61" /> Rendering test golden images for the dexsuite_kuka_hetero kitless suite have also been updated to reflect fix to the regression ```bash ./isaaclab.sh -p -m pytest -v -rA source/isaaclab_tasks/test/core/test_rendering_dexsuite_kuka_hetero_kitless.py::test_rendering_dexsuite_kuka_hetero_kitless[newton-newton_warp-rgb] ``` <img width="742" height="1046" alt="image" src="https://github.com/user-attachments/assets/6e357b06-5cf2-458f-886b-4b283952c94f" /> # Performance Testing on a AMD Ryzen Threadripper PRO 7965WX 24-Cores (48) @ 5.36 GHz For testing the performance impact I used the benchmark script: ```bash ./isaaclab.sh -p scripts/benchmarks/benchmark_non_rl.py \ --task Isaac-Lift-KukaAllegro-Camera \ presets=newton_mjwarp,ovrtx_renderer,rgb64,single_camera \ --seed 42 \ --num_envs "8000" \ --benchmark_backend json \ --output_path "hdc/benchmarks/20260611/heterogeneous_8000" ``` The time of replace_newton_shape_colors has been moved to calls to the new replace_newton_builder_shape_colors pre-clone: | # Env | replace_newton_shape_colors (Before) | replace_newton_builder_shape_colors (After) | | ------ | ----- | ----- | | 4000 | 2 s | 0.0045~ s| | 8000 | 4 s | 0.0045~ s| With @ooctipus's change the time for shape color propagation is not only "free" now, but constant to increasing # of environments. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
matthewtrepte
pushed a commit
to matthewtrepte/IsaacLab
that referenced
this pull request
Aug 4, 2026
# Description This PR integrates @ooctipus's proposed fix for newton shape color replacement to occur pre-clone. Original PR: rilei-nvidia#1 Replace the post-finalize `replace_newton_shape_colors` pass on the Newton model with `replace_newton_builder_shape_colors`, applied to each ModelBuilder before clone replication. This ensures all cloned environments automatically inherit the correct USD material and displayColor values. This not only improves performance but also addresses the regression that @huidongc discovered last week where only env_0 (the clone source) had the right color for the robot arm, and the other cloned envs got the fallback colors - Add replace_newton_builder_shape_colors to newton_model_utils. - Removed replace_newton_shape_colors and any un-used functionality - Call it in NewtonManager (flat, env, and proto-source builders), newton_clone_utils, and replicate - Update tests to exercise the new replace_newton_builder_shape_colors - Update dexsuite_kuka_hetero golden images for correctness # Validation Validated for correctness in the Newton visualizer with (all robot arms should have the same color): ```bash ./isaaclab.sh train --rl_library rsl_rl \ --task Isaac-Lift-KukaAllegro-Camera \ presets=newton_mjwarp,newton_renderer,rgb64,single_camera \ --seed 42 \ --num_envs 4 \ --max_iterations 2 \ --visualizer newton ``` <img width="1917" height="1159" alt="image" src="https://github.com/user-attachments/assets/fabf9ef4-60f6-4e29-a11a-e266e77d7f61" /> Rendering test golden images for the dexsuite_kuka_hetero kitless suite have also been updated to reflect fix to the regression ```bash ./isaaclab.sh -p -m pytest -v -rA source/isaaclab_tasks/test/core/test_rendering_dexsuite_kuka_hetero_kitless.py::test_rendering_dexsuite_kuka_hetero_kitless[newton-newton_warp-rgb] ``` <img width="742" height="1046" alt="image" src="https://github.com/user-attachments/assets/6e357b06-5cf2-458f-886b-4b283952c94f" /> # Performance Testing on a AMD Ryzen Threadripper PRO 7965WX 24-Cores (48) @ 5.36 GHz For testing the performance impact I used the benchmark script: ```bash ./isaaclab.sh -p scripts/benchmarks/benchmark_non_rl.py \ --task Isaac-Lift-KukaAllegro-Camera \ presets=newton_mjwarp,ovrtx_renderer,rgb64,single_camera \ --seed 42 \ --num_envs "8000" \ --benchmark_backend json \ --output_path "hdc/benchmarks/20260611/heterogeneous_8000" ``` The time of replace_newton_shape_colors has been moved to calls to the new replace_newton_builder_shape_colors pre-clone: | # Env | replace_newton_shape_colors (Before) | replace_newton_builder_shape_colors (After) | | ------ | ----- | ----- | | 4000 | 2 s | 0.0045~ s| | 8000 | 4 s | 0.0045~ s| With @ooctipus's change the time for shape color propagation is not only "free" now, but constant to increasing # of environments. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
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.
Summary
Validation