Skip to content

Fix Render prefix and frame output - #7954

Merged
pbarejko merged 1 commit into
isaac-sim:developfrom
pbarejko:fix/ovrtx-camera-frame-keys
Sep 22, 2026
Merged

pbarejko merged 1 commit into
isaac-sim:developfrom
pbarejko:fix/ovrtx-camera-frame-keys

Conversation

@pbarejko

Copy link
Copy Markdown
Collaborator

Description

  • Update left overs related to /Render scope prefix that hasn't been addressed in the previous PR Fix per-sensor render products in OVRTX #7860
  • Address breaking change in the integration between 0.4 and 0.5. Previously we looked up outputs using Labels, now we need to use full path to get access to RenderVarOutput.
  • Refactor core functions and tests related to the logic above.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Release backport

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

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • 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

@pbarejko
pbarejko requested a review from nvsekkin September 22, 2026 19:38
@pbarejko pbarejko self-assigned this Sep 22, 2026
@pbarejko
pbarejko requested a review from a team September 22, 2026 19:38
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team infrastructure labels Sep 22, 2026
@greptile-apps

greptile-apps Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the scoped RenderVar authoring and frame lookup changes are internally consistent and covered across the supported runtime paths.

Summary

This PR gives every OVRTX camera its own render scope, authors RenderVars beneath that scope, and resolves frame outputs using version-appropriate keys.

  • Centralizes camera render-product identity in OVRTXCameraRenderData.
  • Updates OVRTX 0.5 frame reads to use each camera’s authored RenderVar paths while retaining OVRTX 0.4 source-name lookup.
  • Refactors render-product USD generation into a complete, referenceable layer and preserves scene metadata in debug exports.
  • Expands tests across legacy and OVStage paths, multiple cameras, OVRTX 0.4/0.5 key conventions, segmentation variables, ISP inputs, and render modes.

Diagram

sequenceDiagram
    participant Camera as CameraRenderSpec
    participant Renderer as OVRTXRenderer
    participant USD as Render-product USD
    participant OVRTX as OVRTX Runtime
    Camera->>Renderer: create_render_data(spec)
    Renderer->>Renderer: assign RenderCamera_N scope
    Renderer->>USD: author product and scoped RenderVars
    Renderer->>OVRTX: reference complete USD layer
    OVRTX-->>Renderer: FrameOutput.render_vars
    alt OVRTX 0.4
        Renderer->>Renderer: look up source name
    else OVRTX 0.5+
        Renderer->>Renderer: look up /RenderCamera_N/Vars/prim
    end
    Renderer-->>Camera: populate requested output buffers
Loading

Reviews (1) · Last reviewed commit: "Fix Render prefix and frame output"

@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

The per-camera RenderCamera_N scope is consistently used as the source of render-product identity and OVRTX 0.5 frame keys, while OVRTX 0.4 retains source-name lookups. The changed producer and consumer paths are aligned and covered by multi-camera/version tests.

  • Design and architecture: OVRTXCameraRenderData now owns scope and product identity, and the USD builders derive product configuration from spec plus that render data. The renderer’s use of the internal minimal-mode mapping keeps authoring and output selection synchronized within the package; exposing another accessor is not necessary for this internal coupling.
  • API: The USD builder signatures and return type, render-var helpers, constructor, documentation capture hook, and removed compatibility symbols were checked. In-repository consumers are migrated, and the breaking changelog documents the new calling conventions and frame-key behavior. Out-of-tree users of these renderer helpers still face the explicitly documented compatibility transition.
  • Implementation: Frame lookup now derives OVRTX 0.5 keys from each camera’s authored scope and prim-name mapping while preserving OVRTX 0.4 source keys. Rendering, segmentation metadata, legacy and ovstage registration, and combined debug-stage generation follow the new identity path. Tests cover authored paths across two cameras and both supported key formats, plus USD layer metadata preservation.

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.

@pbarejko

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 Sep 22, 2026
@r-schmitt
r-schmitt self-requested a review September 22, 2026 20:28

@r-schmitt r-schmitt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM thank you @pbarejko

@pbarejko
pbarejko merged commit 446f841 into isaac-sim:develop Sep 22, 2026
54 checks passed
StafaH pushed a commit to StafaH/IsaacLab that referenced this pull request Sep 23, 2026
# Description

* Update left overs related to `/Render` scope prefix that hasn't been
addressed in the previous PR
isaac-sim#7860
* Address breaking change in the integration between 0.4 and 0.5.
Previously we looked up outputs using Labels, now we need to use full
path to get access to RenderVarOutput.
* Refactor core functions and tests related to the logic above.

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (existing functionality will not work without user
modification)
- Documentation update

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Screenshots

Please attach before and after screenshots of the change if applicable.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

(cherry picked from commit 446f841)
StafaH added a commit that referenced this pull request Sep 23, 2026
…ing (#7954, #7950) (#7964)

# Description

Backport both #7954 and #7950 to `release/3.0.0` in this PR.

- #7954 (`446f8411cb15092bd4f166e16bcd6860b34826cd`) fixed OVRTX 0.5
camera RenderVar paths and frame output lookups. The release branch was
missing this prerequisite, and its own CI was already failing the legacy
kitless rendering checks with missing RenderVar paths and empty camera
outputs.
- #7950 (`12a9fe20938a4536b9042cffd2e09e3ea9634c8b`) fixed homogeneous
OVRTX clone plans by removing non-source environment roots from the
exported stage when the clone targets those roots. Plans targeting prims
beneath environment roots still keep the roots and their transforms.

Both original changelog fragments and regression tests are included. No
dependencies were added.

## Type of change

- Bug fix

## Validation

- `uv run --frozen --extra test --extra ovrtx python -m pytest
source/isaaclab_ov/test/test_ovrtx_clone_plan.py
source/isaaclab_ov/test/test_ovrtx_usd.py
source/isaaclab_ov/test/test_ovrtx_compat.py
source/isaaclab_ov/test/test_ovrtx_renderer_contract.py -q` — 111
passed.
- `uv run --frozen --extra test --extra ov python -m pytest
source/isaaclab_ov/test/test_ovrtx_renderer_rigid_object_rendering.py
-q` — 2 passed.
- `ISAACLAB_CHANGELOG_BASE_REF=release/3.0.0 uv run --frozen isaaclab
-f` — passed, with the local release tracking ref aligned to the current
upstream release head.

## Checklist

- [x] I have read and understood the contribution guidelines.
- [x] I have run the pre-commit checks.
- [x] I have added tests for the fixes.
- [x] I have added changelog fragments under
`source/isaaclab_ov/changelog.d/`.
- [x] Both original authors are listed in `CONTRIBUTORS.md`.

---------

Co-authored-by: Richard Schmitt <[email protected]>
Co-authored-by: Piotr Barejko <[email protected]>
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
ooctipus added a commit that referenced this pull request Oct 5, 2026
…fix (#8220)

Fixes two problems with the Newton RTX visualizer (`--visualizer
newton_rtx`). This includes Diego Ferigo's commit from #7529, merged
with current develop, so it supersedes that PR.

**Markers.** The RTX viewer skipped visualization markers because their
registry ids (`prim_path::id`) aren't valid USD prim paths. On the RTX
path they are now rendered under a sanitized id, both live and in
headless capture. The GL viewer is unchanged.

**Black viewer.** With `ovrtx` 0.5, render outputs are keyed
`/Render/Vars/LdrColor`, but Newton's `ViewerRTX` looks up `LdrColor`.
The lookup failed silently, so the window was never drawn to and
headless capture raised. `NewtonViewerRTX` now aliases the color output
as `LdrColor` when `ovrtx` is 0.5 or newer, the same version split the
OVRTX camera renderer has used since #7954. Both this and the id
sanitizing are workarounds and carry a TODO.

Nothing tested Newton RTX frames before, so I added
`test_visualizer_integration_newton_rtx.py`. On the cartpole it checks
that frames aren't flat, move while playing, freeze while the simulation
is paused, and change when a marker is made visible. It's a separate
kit-less module because OVRTX can't share a process with Kit.

## Testing

- The adapter, viewer-release and new integration tests pass. Without
the `LdrColor` fix the integration test and a unit test fail; without id
sanitizing the marker check fails.
- Ruff and the changelog check are clean.
- On a live `newton_rtx` window with no patches, Kuka Allegro (4 envs,
`newton_mjwarp`) renders the scene and the table markers.

## Notes

- The `LdrColor` fix relies on Newton's private `_render_products` and
on the key Newton authors (`/Render/Vars/LdrColor`), so it should go
once Newton accepts both keys. There's no upstream issue yet.
- `render_rgb_array()` on the async RTX viewer returns the previous
submission, one frame behind. The test flushes once to compensate.
- RTX has no Pause Rendering control, so that phase of the shared motion
test runs for the GL viewer only.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

---------

Co-authored-by: Diego Ferigo <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
isaaclab-bot Bot pushed a commit that referenced this pull request Oct 5, 2026
…fix (#8220)

Fixes two problems with the Newton RTX visualizer (`--visualizer
newton_rtx`). This includes Diego Ferigo's commit from #7529, merged
with current develop, so it supersedes that PR.

**Markers.** The RTX viewer skipped visualization markers because their
registry ids (`prim_path::id`) aren't valid USD prim paths. On the RTX
path they are now rendered under a sanitized id, both live and in
headless capture. The GL viewer is unchanged.

**Black viewer.** With `ovrtx` 0.5, render outputs are keyed
`/Render/Vars/LdrColor`, but Newton's `ViewerRTX` looks up `LdrColor`.
The lookup failed silently, so the window was never drawn to and
headless capture raised. `NewtonViewerRTX` now aliases the color output
as `LdrColor` when `ovrtx` is 0.5 or newer, the same version split the
OVRTX camera renderer has used since #7954. Both this and the id
sanitizing are workarounds and carry a TODO.

Nothing tested Newton RTX frames before, so I added
`test_visualizer_integration_newton_rtx.py`. On the cartpole it checks
that frames aren't flat, move while playing, freeze while the simulation
is paused, and change when a marker is made visible. It's a separate
kit-less module because OVRTX can't share a process with Kit.

## Testing

- The adapter, viewer-release and new integration tests pass. Without
the `LdrColor` fix the integration test and a unit test fail; without id
sanitizing the marker check fails.
- Ruff and the changelog check are clean.
- On a live `newton_rtx` window with no patches, Kuka Allegro (4 envs,
`newton_mjwarp`) renders the scene and the table markers.

## Notes

- The `LdrColor` fix relies on Newton's private `_render_products` and
on the key Newton authors (`/Render/Vars/LdrColor`), so it should go
once Newton accepts both keys. There's no upstream issue yet.
- `render_rgb_array()` on the async RTX viewer returns the previous
submission, one frame behind. The test flushes once to compensate.
- RTX has no Pause Rendering control, so that phase of the shared motion
test runs for the GL viewer only.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

---------

Co-authored-by: Diego Ferigo <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>

(cherry picked from commit 29e500d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants