Repository navigation
Make the tiled ground plane the default - #7399
Conversation
6252f3d to
d1b1cdc
Compare
|
Thanks—this asset-level approach looks good, and the authored metric UVs are the important part. Could we make Newton #4007 is now merged. Newton supports the standard OpenUSD path:
That change intentionally does not read OmniPBR mapping inputs ( My suggestion:
This should give Kit, Newton GL, and Newton RTX the same tiling while preventing the two mappings from drifting. Is there a Kit-specific reason this asset still needs object projection instead of consuming the authored |
|
One clarification on the maintenance boundary: the current dual-authoring approach—OmniPBR object projection plus equivalent authored UVs—is not ideal because the same tiling semantics have two sources of truth and can drift. Making The cleanest end state, if Kit provides the required visual fidelity, is therefore a single standard |
The bundled plane carried the same 5 m tiling twice: an OmniPBR object projection for Kit and an equivalent face-varying primvars:st for renderers that consume mesh UVs. Two sources of truth for one mapping can drift, and only the UV set was rescaled when the plane was resized. Disable project_uvw and set an identity texture_scale so the OmniPBR shader reads UV set 0. primvars:st is now the sole mapping authority for Kit, Newton GL, and Newton Viewer RTX, and the rescale in spawn_ground_plane() keeps the tile metric in all three rather than in two. The MDL output is kept: Newton resolves the albedo and the conventional st primvar from it today, and a universal UsdPreviewSurface output would report no base color to Newton, which falls back to 0.5 grey and darkens the plane.
|
Pushed What it does. What it does not do, and why I am walking back the second half of my earlier suggestion: adding a universal So one mapping, still one material description. Worth filing upstream that a |
| """Test loading prim for the ground plane from grid world USD.""" | ||
| # Spawn ground plane | ||
| cfg = sim_utils.GroundPlaneCfg(color=(0.1, 0.1, 0.1), size=(10.0, 10.0)) | ||
| cfg = sim_utils.GroundPlaneCfg(color=(0.1, 0.1, 0.1), size=(10.0, 20.0)) |
There was a problem hiding this comment.
hm why is the ground plane rectangular?
This reverts commit 8a57729.
|
run-ci |
…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.
|
run-ci |
Greptile SummaryThe PR replaces the remote default ground plane with a packaged warm-white, metric-grid USD asset and updates spawning, terrain sizing, packaging, tests, and renderer goldens accordingly.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking remaining inconsistency for direct import_ground_plane users who retain the oversized visual and its UV-precision problem. Automatic plane-terrain construction and official wheel packaging follow the intended bounded, hydrated asset path, but the public import helper's default still generates extreme UV magnitudes. Files Needing Attention: source/isaaclab/isaaclab/terrains/terrain_importer.py, source/isaaclab/isaaclab/sim/spawners/from_files/from_files.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
C[GroundPlaneCfg or TerrainImporterCfg] --> S[spawn_ground_plane]
S --> U[Bundled ground-plane USD]
S --> V[Scale visual mesh]
S --> M[Rewrite metric UVs]
U --> P[Infinite collision plane]
V --> R[Bounded rendered surface]
M --> R
Reviews (1): Last reviewed commit: "Calibrate the PPISP test ground tint" | Re-trigger Greptile |
| half_u = cfg.size[0] / (2.0 * from_files_cfg._DEFAULT_GROUND_PLANE_TILE_SIZE) | ||
| half_v = cfg.size[1] / (2.0 * from_files_cfg._DEFAULT_GROUND_PLANE_TILE_SIZE) |
There was a problem hiding this comment.
Oversized default defeats UV precision
Calling TerrainImporter.import_ground_plane(name) without a size still forwards its 2,000 km default into this UV calculation, producing coordinates of ±200,000. That retains the texture-precision problem the bounded visual mesh is intended to solve, so direct users can see a nearly uniform green sample instead of the metric grid.
Knowledge Base Used: Scene and asset composition
There was a problem hiding this comment.
Fixed in 596ed580b. import_ground_plane() now derives the same bounded 100 m-minimum visual size from the configured environment grid when size is omitted. The regression test verifies both the 130 m scale and ±26 UVs for a direct import, and fails against the prior 2,000 km default.
AntoineRichard
left a comment
There was a problem hiding this comment.
I don't think IsaacLab should ship a texture. Could this be added to Nucleus instead?
There was a problem hiding this comment.
Isaac Lab Review Bot
The bundled ground-plane asset, metric UV rewrite, bounded terrain visualization, packaging, and tests are coherent. Before merge, the generator-terrain None material semantics, the public visual_material default migration, and the incomplete ground-plane color override should be addressed.
- Design and architecture: The spawn-time UV rewrite gated to the bundled USD preserves metric texture mapping while retaining an infinite collision plane. However,
import_meshnow convertsvisual_material=Noneinto a dark material based onterrain_type, removing the prior ability to request no generated-terrain visual material and making identical method arguments behave differently according to importer configuration. - API: Changing
TerrainImporterCfg.visual_materialfrom a concretePreviewSurfaceCfgdefault toNonecan break callers that inspect or mutate the inherited material and requires explicit changelog migration guidance. In addition,GroundPlaneCfg.coloronly changesdiffuse_tint; the authored green emission remains active, so the documented appearance override is incomplete. - Implementation: The ceil-square plane sizing, 100 m visual minimum, four-corner UV rewrite, package-data inclusion, LFS checkout, and focused asset tests are internally consistent. The material fallback and color-override paths need correction so explicit
Noneand explicit tint values retain clear, complete behavior.
Minor fixes needed. Posted 3 actionable findings inline.
Automated review; human maintainers own approval decisions.
| # Preserve the historical dark material for generated terrains while allowing plane terrains | ||
| # to keep the ground plane's authored appearance by default. | ||
| visual_material = self.cfg.visual_material | ||
| if visual_material is None and self.cfg.terrain_type == "generator": |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Explicit visual_material=None ignored for generator terrains
visual_material is typed ... | None, and an explicit None previously meant "bind no visual material". import_mesh now replaces None with a black PreviewSurfaceCfg whenever terrain_type == "generator", so that configuration can no longer be expressed and import_mesh behaves differently for identical arguments depending on terrain type. Apply the dark fallback at the generator call site or in cfg post-init so None keeps its meaning.
There was a problem hiding this comment.
Fixed in 596ed580b. The terrain-type-specific omitted default is resolved in config post-init, while an explicit visual_material=None remains None; import_mesh() no longer substitutes a material. The focused test covers all three cases.
|
|
||
| visual_material: sim_utils.VisualMaterialCfg | None = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.0, 0.0, 0.0)) | ||
| """The visual material of the terrain. Defaults to a dark gray color material. | ||
| visual_material: sim_utils.VisualMaterialCfg | None = None |
There was a problem hiding this comment.
🟡 Warning · Api — Undocumented change of public config default
TerrainImporterCfg().visual_material changes from a concrete PreviewSurfaceCfg instance to None, so existing configs that read or mutate the inherited default (e.g. cfg.visual_material.diffuse_color) now fail. The added changelog fragment covers only the ground plane and gives no migration guidance for this changed default. Either keep a concrete default or document the change and migration path in the fragment.
There was a problem hiding this comment.
Fixed in 596ed580b and fe550a6f1. TerrainImporterCfg() still resolves to the historical dark PreviewSurfaceCfg, plane configs resolve to None, and explicit None remains expressible for generated terrains. The changelog documents the explicit-None behavior and the test exercises the public default directly.
|
|
||
| color: tuple[float, float, float] | None = (0.0, 0.0, 0.0) | ||
| """The color of the ground plane. Defaults to (0.0, 0.0, 0.0). | ||
| color: tuple[float, float, float] | None = None |
There was a problem hiding this comment.
🔵 Suggestion · Api — Color override leaves authored green emission
The bundled asset authors enable_emission with NVIDIA-green emissive_color/mask, while spawn_ground_plane applies cfg.color only to diffuse_tint. A caller passing color=(0.0, 0.0, 0.0) still gets glowing green grid lines, contradicting the changelog claim that color overrides the authored appearance. Either also neutralize emission when a color is supplied, or state the emission limitation in the docstring and fragment.
There was a problem hiding this comment.
Clarified in 596ed580b. This preserves the existing GroundPlaneCfg.color contract: it applies diffuse_tint, while the authored emission remains unchanged (the previous Nucleus ground material also retained its emission). The docstring, changelog, and PR description now state that limitation explicitly.
There was a problem hiding this comment.
If not in nucleus we need a different folder this can't stay here, it's weird.
There was a problem hiding this comment.
Done in f00f8ffbd. I removed the repository copies and their LFS/package plumbing. The USD is now at omniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/default_ground_plane.usda, with its dependencies under Materials/Textures. GroundPlaneCfg resolves the same layout through ISAACLAB_NUCLEUS_DIR, so it remains asset-root portable. The asset-contract and spawn tests pass against the development Nucleus; public Isaac 6.1 asset-pack promotion is still pending.
There was a problem hiding this comment.
Make a real texture on Nucleus
There was a problem hiding this comment.
Done in f00f8ffbd: this is now Environments/Grid/Materials/Textures/default_ground_plane_emissive_color.png on the IsaacLab development Nucleus, and the packaged copy has been removed.
There was a problem hiding this comment.
Make a real texture on Nucleus
There was a problem hiding this comment.
Done in f00f8ffbd: this is now Environments/Grid/Materials/Textures/default_ground_plane_emissive_mask.png on the IsaacLab development Nucleus, and the packaged copy has been removed.
There was a problem hiding this comment.
Make a real texture on Nucleus
There was a problem hiding this comment.
Removed in f00f8ffbd together with the packaged asset directory. The asset contract remains documented by the focused test, changelog fragment, and updated PR description.
| if cfg.usd_path == from_files_cfg._DEFAULT_GROUND_PLANE_USD: | ||
| from pxr import Gf, UsdGeom # noqa: PLC0415 | ||
|
|
||
| half_u = cfg.size[0] / (2.0 * from_files_cfg._DEFAULT_GROUND_PLANE_TILE_SIZE) | ||
| half_v = cfg.size[1] / (2.0 * from_files_cfg._DEFAULT_GROUND_PLANE_TILE_SIZE) | ||
| mesh = UsdGeom.Mesh(stage.GetPrimAtPath(f"{prim_path}/Environment/Geometry")) | ||
| UsdGeom.PrimvarsAPI(mesh).GetPrimvar("st").Set( | ||
| [ | ||
| Gf.Vec2f(-half_u, -half_v), | ||
| Gf.Vec2f(half_u, -half_v), | ||
| Gf.Vec2f(half_u, half_v), | ||
| Gf.Vec2f(-half_u, half_v), | ||
| ] | ||
| ) |
There was a problem hiding this comment.
Why a custom UV? Can't this be baked in the texture?
There was a problem hiding this comment.
The default 100 m UVs are already authored in the USD. The Python code only rewrites the quad’s four standard primvars:st values when GroundPlaneCfg.size changes; scaling only the mesh would stretch the 1 m grid. A full-plane texture bake would work for only one fixed size. I’ll keep the standard st adjustment and move the USD and texture dependencies to the existing Nucleus Grid asset layout as requested.
|
run-ci |
|
run-ci |
|
Backported to |
# 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)
Both this branch (new asset) and develop (isaac-sim#7399, tiled ground plane default) had regenerated these seven images, so neither version matched the merged tree. These are the frames the isaaclab_visualizers job rendered for the merged head (run 33738341690); hand and cube geometry are unchanged from the previous goldens, only the ground rendering differs.
Description
Host a warm-white ground plane with NVIDIA-green metric grid lines on Nucleus and make it the default for
GroundPlaneCfgand plane terrains.This change:
ISAACLAB_NUCLEUS_DIR;primvars:stthe sole texture-mapping authority for Kit, Newton RTX, and Newton GL;st) with projection disabled and identity texture scale;GroundPlaneCfg.sizechanges so its 5 m texture tile and 1 m grid stay metric;visual_material=Noneas “bind no material”; andThe 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
Planecollider 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.usdaomniverse://isaac-dev.ov.nvidia.com/Isaac/IsaacLab/Environments/Grid/Materials/Textures/default_ground_plane_*.pngThe 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
Cartpole policy
Full-resolution Cartpole MP4 · Both environments in one MP4
Type of change
Release backport
developTesting
uv run --frozen --no-sync isaaclab -fISAACSIM_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)Checklist
uv run --frozen --no-sync isaaclab -fsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.md