Repository navigation
Conversation
|
newton-physics/newton#4007 addresses the root cause |
|
run-ci |
Greptile SummaryThe PR adds temporary UV compatibility handling for Newton rendering while leaving custom ground assets and direct projected-material rendering unchanged.
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code defect identified. The fallback is limited to the canonical ground asset, transformed mesh data is copied rather than mutating shared sources, all relevant Newton import paths invoke the compatibility pass, and tests cover projection exclusion, transform behavior, payload sharing, and UV-sensitive viewer keys. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[USD scene] --> B[Spawn canonical ground]
B --> C[Author world-projected fallback UVs]
A --> D[Newton USD import]
D --> E[Resolve OmniPBR affine transform]
E --> F[Copy visual mesh and transform UVs]
C --> G[Newton model builder]
F --> G
G --> H[Newton GL or RTX viewer]
H --> I[Prototype key includes UV hash]
I --> J[Correctly tiled textured geometry]
Reviews (1): Last reviewed commit: "Preserve affine UV transforms in Newton ..." | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the temporary UV compatibility design for the canonical default grid and Newton visual import paths. The proposed unauthored texture_scale finding does not apply to the exact canonical asset path guarded here, whose authored texture scale is part of the workaround’s stated contract and test coverage.
- Design and architecture: The ground-plane fallback is narrowly restricted to the canonical grid asset, while the Newton affine UV pass is placed in the existing temporary compatibility module and invoked after USD imports. Mesh wrappers and UV arrays are copied rather than mutating shared sources, and viewer prototype keys now distinguish textured meshes with different UVs. The shared spawner does author fallback
primvars:stfor all backends, but direct MDL rendering continues to use the canonical asset’s world projection. - API: The additive UV-transform helper is exported consistently with the existing Newton compatibility helper. The viewer override retains the base geometry-hash signature, the Quickstart configuration references now match the module filename, and changelog fragments cover the three affected source packages.
- Implementation: The spawn-time projection uses the composed mesh world transform and authored texture scale, while the Newton pass excludes projected mappings and applies affine transforms only to textured sources with suitable OmniPBR materials. Tests cover transformed UV values, preservation of shared geometry and texture payloads, projected-mapping exclusion, source-stage immutability, and UV-sensitive viewer prototype hashing. Handling an unauthored scale would be optional defensive behavior outside the guarded canonical asset contract.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
|
Closing in favor of the asset-level solution. |
…osted media Restructures docs/source/overview/core-concepts/visualization.rst, docs/source/how-to/record_video.rst, docs/source/how-to/visualizer_tiled_camera.rst, docs/source/how-to/draw_markers.rst, and docs/source/overview/core-concepts/ scene_data_providers.rst into docs/source/concepts/visualization.rst, docs/source/features/record_video.rst, docs/source/features/visualizer_tiled_camera.rst, docs/source/features/draw_markers.rst, and docs/source/concepts/scene_data_providers.rst. visualization.rst covers all 5 visualizers (Kit, Newton GL, Newton RTX, Rerun, Viser) with a hero grid, per-visualizer sections, and a shared-features overview; the Features pages are each visualizer capability's dedicated guide. Media - All demo clips are mp4 (h.264) instead of GIFs, hosted on https://download.isaacsim.omniverse.nvidia.com/isaaclab/images/ rather than bundled in the repo; only the marker screenshots (markers_anymal_d.jpg, markers_franka.jpg) stay local. - Consolidated doc-media generation from 11 ad hoc scripts down to 4 (tools/docs/media/visualizers/capture_common.py, capture_hero.py, capture_showcase.py, capture_streaming.py), each independently re-runnable to regenerate its clips. Bug fixes - Fixed NewtonGLVisualizer.render_rgb_array omitting visualization markers from recorded video. - Fixed NewtonRTXVisualizer unconditionally reporting the streaming/tiled camera view as unsupported; streaming_view=True now creates the owned streaming camera sensor for headless capture. - Implemented RerunVisualizer.set_camera_view / ViserVisualizer.set_camera_view (previously no-op stubs). - Fixed run_video_recording.py's Example 3 Kit streaming view crashing on a stale camera prim path, and two literalinclude line ranges in draw_markers.rst that had drifted from the current markers.py. Docs cleanup - Removed the Optimize Stage Creation (fabric cloning / stage-in-memory) page, out of scope for this PR. - Every technical claim in scene_data_providers.rst was re-verified against scene_data_provider.py, scene_data_backend.py, newton_manager.py, and physx_manager.py. - Removed all em dashes from the touched prose. Reverted from this branch - The cherry-picked ground-plane texture asset (PR isaac-sim#7399) and Newton UV-collision prototype-cache fix (PR isaac-sim#7352), both out of scope for this PR. - Viser ambient-light (light_intensity) and Rerun/Viser HUD-toggle (show_hud) options, added alongside the legitimate visualizer fixes above but out of scope for this PR.
# Description Host a warm-white ground plane with NVIDIA-green metric grid lines on Nucleus and make it the default for `GroundPlaneCfg` and plane terrains. This change: - replaces the legacy default with an IsaacLab-hosted USD and textures resolved through `ISAACLAB_NUCLEUS_DIR`; - preserves the authored floor appearance unless callers explicitly provide a diffuse color tint (authored emission remains unchanged); - makes authored face-varying `primvars:st` the sole texture-mapping authority for Kit, Newton RTX, and Newton GL; - configures OmniPBR to consume UV set 0 (`st`) with projection disabled and identity texture scale; - recomputes the hosted asset's UVs when `GroundPlaneCfg.size` changes so its 5 m texture tile and 1 m grid stay metric; - sizes both automatically created and directly imported plane-terrain visuals to cover the environment grid, with a 100 m minimum, while retaining an infinite collision plane; - keeps the historical dark material default for generated terrains while preserving explicit `visual_material=None` as “bind no material”; and - documents and tests the asset contract. The bounded visual mesh matters for standalone visualizers: the previous 2,000 km mesh exhausted useful UV precision near the origin and could sample one green texel across the entire view. Collision behavior is unchanged because the USD `Plane` collider is infinite. This is the asset-level solution that superseded #7352. It does not require a Newton-specific OmniPBR compatibility patch. Renderer tone mapping and light models can still produce different final brightness. ## Nucleus asset The asset is staged at: - `omniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/default_ground_plane.usda` - `omniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/Materials/Textures/default_ground_plane_*.png` The code uses `ISAACLAB_NUCLEUS_DIR`, so the same relative layout works with configured development, staging, production, and regional asset roots. Public Isaac 6.1 asset-pack promotion is handled separately from this code change. ## Renderer comparison All clips use the hosted default floor, one environment, 300 frames at 60 FPS (5 seconds), and a fixed camera per task. Each renderer panel is captured at 1280 × 720. Kit uses PhysX; Newton RTX and Newton GL use MJWarp. To keep the warm-white floor below clipping and make the grid legible, these presentation captures use fixed neutral calibration: Kit uses each environment's neutral scene light at 40% of its normal intensity, Newton RTX uses a neutral dome at intensity 400, and Newton GL uses the established neutral ambient profile at exposure 0.40. This calibration affects the media only and is not part of the runtime ground-plane change. ### ANYmal-D walking policy  [Full-resolution ANYmal-D MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/anymal_d_renderer_comparison.mp4?raw=1) ### Cartpole policy  [Full-resolution Cartpole MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/cartpole_renderer_comparison.mp4?raw=1) · [Both environments in one MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/default_ground_plane_renderer_comparison.mp4?raw=1) ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Testing - `uv run --frozen --no-sync isaaclab -f` - `ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/sim/test_default_ground_plane.py -q` (3 passed) - `OMNI_KIT_ACCEPT_EULA=yes ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/sim/test_spawn_from_files.py::test_spawn_ground_plane -q` (1 passed) - `OMNI_KIT_ACCEPT_EULA=yes ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/terrains/test_terrain_importer.py::test_visual_material_defaults source/isaaclab/test/terrains/test_terrain_importer.py::test_plane -q` (5 passed) - The new material-default and direct-import assertions fail on the prior implementation and pass with this change. - Manual Cartpole and ANYmal-D policy playback with Kit/PhysX, Newton RTX/MJWarp, and Newton GL/MJWarp ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the repository formatting and pre-commit checks with `uv run --frozen --no-sync isaaclab -f` - [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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Octi Zhang <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description Host a warm-white ground plane with NVIDIA-green metric grid lines on Nucleus and make it the default for `GroundPlaneCfg` and plane terrains. This change: - replaces the legacy default with an IsaacLab-hosted USD and textures resolved through `ISAACLAB_NUCLEUS_DIR`; - preserves the authored floor appearance unless callers explicitly provide a diffuse color tint (authored emission remains unchanged); - makes authored face-varying `primvars:st` the sole texture-mapping authority for Kit, Newton RTX, and Newton GL; - configures OmniPBR to consume UV set 0 (`st`) with projection disabled and identity texture scale; - recomputes the hosted asset's UVs when `GroundPlaneCfg.size` changes so its 5 m texture tile and 1 m grid stay metric; - sizes both automatically created and directly imported plane-terrain visuals to cover the environment grid, with a 100 m minimum, while retaining an infinite collision plane; - keeps the historical dark material default for generated terrains while preserving explicit `visual_material=None` as “bind no material”; and - documents and tests the asset contract. The bounded visual mesh matters for standalone visualizers: the previous 2,000 km mesh exhausted useful UV precision near the origin and could sample one green texel across the entire view. Collision behavior is unchanged because the USD `Plane` collider is infinite. This is the asset-level solution that superseded #7352. It does not require a Newton-specific OmniPBR compatibility patch. Renderer tone mapping and light models can still produce different final brightness. ## Nucleus asset The asset is staged at: - `omniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/default_ground_plane.usda` - `omniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/Materials/Textures/default_ground_plane_*.png` The code uses `ISAACLAB_NUCLEUS_DIR`, so the same relative layout works with configured development, staging, production, and regional asset roots. Public Isaac 6.1 asset-pack promotion is handled separately from this code change. ## Renderer comparison All clips use the hosted default floor, one environment, 300 frames at 60 FPS (5 seconds), and a fixed camera per task. Each renderer panel is captured at 1280 × 720. Kit uses PhysX; Newton RTX and Newton GL use MJWarp. To keep the warm-white floor below clipping and make the grid legible, these presentation captures use fixed neutral calibration: Kit uses each environment's neutral scene light at 40% of its normal intensity, Newton RTX uses a neutral dome at intensity 400, and Newton GL uses the established neutral ambient profile at exposure 0.40. This calibration affects the media only and is not part of the runtime ground-plane change. ### ANYmal-D walking policy  [Full-resolution ANYmal-D MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/anymal_d_renderer_comparison.mp4?raw=1) ### Cartpole policy  [Full-resolution Cartpole MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/cartpole_renderer_comparison.mp4?raw=1) · [Both environments in one MP4](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/default_ground_plane_renderer_comparison.mp4?raw=1) ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Testing - `uv run --frozen --no-sync isaaclab -f` - `ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/sim/test_default_ground_plane.py -q` (3 passed) - `OMNI_KIT_ACCEPT_EULA=yes ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/sim/test_spawn_from_files.py::test_spawn_ground_plane -q` (1 passed) - `OMNI_KIT_ACCEPT_EULA=yes ISAACSIM_ASSET_ROOT=omniverse://isaac-dev.ov.nvidia.com uv run --frozen --no-sync python -m pytest source/isaaclab/test/terrains/test_terrain_importer.py::test_visual_material_defaults source/isaaclab/test/terrains/test_terrain_importer.py::test_plane -q` (5 passed) - The new material-default and direct-import assertions fail on the prior implementation and pass with this change. - Manual Cartpole and ANYmal-D policy playback with Kit/PhysX, Newton RTX/MJWarp, and Newton GL/MJWarp ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the repository formatting and pre-commit checks with `uv run --frozen --no-sync isaaclab -f` - [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 added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Octi Zhang <[email protected]> Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit 3eda4a9)
Description
Add temporary Isaac Lab UV-mapping fallbacks for Newton visualizers while the Newton changes tracked by OMPE-107347 are evaluated.
Newton currently imports textures and authored
primvars:st, but its ViewerRTX path does not preserve OmniPBR texture-coordinate mapping. This stretches the canonical default grid and drops affine transforms from otherwise valid authored UVs.This change:
project_uvwis disabled;agent-comparison.gifandtask-sampler.gif.The workaround is import-time only. Runtime material-transform updates and general object/world projected mappings remain unsupported. Direct MDL rendering is unchanged.
newton-physics/newton#4007 preserves this metadata.
Addresses NVBug 6667468.
Type of change
Release backport
developScreenshots
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there