Skip to content

Add temporary UV mapping fallbacks for Newton visualizers - #7352

Closed
nvsekkin wants to merge 3 commits into
isaac-sim:developfrom
nvsekkin:esekkin/newton-uv-patch
Closed

nvsekkin wants to merge 3 commits into
isaac-sim:developfrom
nvsekkin:esekkin/newton-uv-patch

Conversation

@nvsekkin

@nvsekkin nvsekkin commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • authors fallback face-varying UVs for the canonical horizontal default grid using its world transform and texture scale;
  • bakes OmniPBR texture scale, translation, and rotation into existing UVs when project_uvw is disabled;
  • applies the affine compatibility pass across Newton USD import paths;
  • keeps vertices, indices, textures, and simulation mesh hashes shared;
  • includes UVs in Isaac Lab Newton GL/RTX prototype cache keys;
  • fixes the Quickstart capture configuration module name; and
  • regenerates agent-comparison.gif and task-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

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Screenshots

Agent comparison

Task sampler

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Aug 26, 2026
@nvsekkin nvsekkin changed the title Fix projected ground texture tiling in Newton visualizers Fix default-grid texture tiling in Newton ViewerRTX Aug 26, 2026
@nvsekkin nvsekkin closed this Aug 26, 2026
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

newton-physics/newton#4007 addresses the root cause

@nvsekkin nvsekkin reopened this Aug 26, 2026
@nvsekkin nvsekkin changed the title Fix default-grid texture tiling in Newton ViewerRTX Add temporary UV mapping fallbacks for Newton visualizers Aug 27, 2026
@nvsekkin
nvsekkin marked this pull request as ready for review August 27, 2026 15:10
@nvsekkin
nvsekkin requested a review from a team August 27, 2026 15:10
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Aug 27, 2026
@greptile-apps

greptile-apps Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds temporary UV compatibility handling for Newton rendering while leaving custom ground assets and direct projected-material rendering unchanged.

  • Authors face-varying fallback UVs for the canonical default grid using its composed world transform and texture scale.
  • Bakes authored OmniPBR scale, translation, and rotation into copied Newton visual-mesh UVs across USD import paths.
  • Extends Newton viewer prototype keys to distinguish textured meshes with different UV coordinates.
  • Corrects Quickstart capture configuration entry points and refreshes the associated media and changelog fragments.

Confidence Score: 5/5

The 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

Filename Overview
source/isaaclab/isaaclab/sim/spawners/from_files/from_files.py Adds a narrowly scoped fallback that authors world-projected face-varying UVs for the canonical default grid.
source/isaaclab/isaaclab/sim/utils/newton_model_utils.py Resolves OmniPBR affine UV inputs and applies them to copied Newton visual-mesh sources without changing shared geometry or textures.
source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py Applies the UV compatibility pass during each relevant Newton model-building path.
source/isaaclab_newton/isaaclab_newton/physics/visualization_builder.py Applies transformed UVs before visual materials are imported into visualization-only builders.
source/isaaclab_visualizers/isaaclab_visualizers/newton/newton_visualizer.py Extends Newton viewer geometry keys with UV content so distinct textured mesh prototypes are not reused.
tools/docs/media/capture_quickstart.py Corrects capture configuration module entry points from capture to capture_quickstart.

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]
Loading

Reviews (1): Last reviewed commit: "Preserve affine UV transforms in Newton ..." | Re-trigger Greptile

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:st for 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.

@maxkra15 maxkra15 mentioned this pull request Aug 27, 2026
7 of 8 tasks
@nvsekkin nvsekkin closed this Aug 28, 2026
@nvsekkin

Copy link
Copy Markdown
Collaborator Author

Closing in favor of the asset-level solution.

matthewtrepte added a commit to matthewtrepte/IsaacLab that referenced this pull request Sep 1, 2026
…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.
kellyguo11 added a commit that referenced this pull request Sep 3, 2026
# 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

![ANYmal-D renderer
comparison](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/anymal_d_renderer_comparison.gif?raw=1)

[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

![Cartpole renderer
comparison](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/cartpole_renderer_comparison.gif?raw=1)

[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]>
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 3, 2026
# 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

![ANYmal-D renderer
comparison](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/anymal_d_renderer_comparison.gif?raw=1)

[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

![Cartpole renderer
comparison](https://github.com/maxkra15/IsaacLab/blob/media/default-ground-floor/pr-media/default-ground-floor/cartpole_renderer_comparison.gif?raw=1)

[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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants