Skip to content

[Newton] Fix camera HDR backgrounds and distortion warnings - #8463

Merged
StafaH merged 4 commits into
isaac-sim:developfrom
StafaH:fix/split-8379-rendering
Oct 12, 2026
Merged

StafaH merged 4 commits into
isaac-sim:developfrom
StafaH:fix/split-8379-rendering

Conversation

@StafaH

@StafaH StafaH commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Explicit camera backgrounds were ignored in Newton HDR output, and USD-only lens distortion was silently ignored. Fill background misses in linear space before ISP processing while preserving black geometry, and warn when distortion must be configured explicitly.

Split from #8379. This PR targets develop independently. The scene-partition idempotence fix and test from the original PR are already in develop and are omitted.

Validation

  • uv run --no-sync python -m pytest source/isaaclab/test/renderers/test_camera_output_contract.py: 18 passed. The existing incomplete test fixture was corrected to use CameraCfg/PinholeCameraCfg; typed camera fields retain their documented defaults.
  • uv run --no-sync isaaclab -f: passed, including changelog checks.

Type of change

  • Bug fix

Release backport

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

Checklist

  • Read the contribution guidelines.
  • Ran formatting and lint checks.
  • Kept regression tests with the corresponding fixes.
  • Included package changelog fragments.
  • Author already appears in CONTRIBUTORS.md.

Renderer cost

Baseline renderer: 4eccae0f2; candidate: ac68f9e8f. NVIDIA RTX PRO 6000 Blackwell Workstation Edition, one cube and one HDR camera per environment, explicit sRGB background, ambient/default lighting disabled. A temporary driver derived from the HDR regression called renderer.render(render_data) directly (CUDA graph replay), synchronized after 20 warmup calls and after 200 timed calls. Command: uv run --no-sync python /tmp/8463-benchmark.py. Only the renderer module was replaced with its baseline revision for the comparison; dependencies and scene setup stayed fixed.

Environments Resolution Baseline Candidate
16 128 × 128 0.0083 ms 0.0103 ms
256 64 × 64 0.0205 ms 0.0267 ms

These measure render dispatch plus GPU completion for a small static scene, not total simulation frame time or a broad performance claim.

CI follow-up

The failed visualizer job on the previous head hit the known PhysX ANYmal-D Kit tiled golden mismatch (13.41% versus the 12% limit). Rebased onto a48bd07c1, which includes #8470's targeted golden refresh after the warmup change; comparison thresholds remain unchanged. Requested a fresh Docker CI run on 710ed98b0.

Ordinary imports are at module scope; inline imports are retained where required by optional dependencies or deferred runtime loading.

@StafaH
StafaH requested a review from a team October 12, 2026 01:56
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Oct 12, 2026
@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 3/5

[Medium impact] Fixes camera HDR background rendering and adds distortion warnings.

Fix both test failures before merging.

Findings

  1. P1 Existing HDR test fails ▶
  2. P1 PhysX-only test runs fail ▶

Summary

The PR fills explicit HDR backgrounds in linear space and warns when Newton ignores USD-only lens distortion.

  • Newton HDR images use the camera background for pixels that miss the scene.
  • Newton warns when lens distortion appears only in USD.
  • Newton reads camera dimensions and clipping planes directly from the camera config.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Camera background color] --> B[Convert sRGB to linear]
    C[Newton render] --> D[HDR image and shape indices]
    B --> E[Fill missed rays only]
    D --> E
    E --> F[HDR output]
    E --> G[Optional ISP]
    G --> H[RGB or RGBA output]
Loading

Reviews (1) · Last reviewed commit: "Fix Newton camera HDR backgrounds and di..." · Reviewed by 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

Needs attention: Style consistency (2), Test quality (1). Other reviewed categories look good.

  • PR description: The body omits removed fallback behavior; restore or document it, and benchmark the full-frame HDR pass using baseline/candidate revisions, command, GPU, resolution, environment count, warmup, and frame time.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: The distortion diagnostic uses logging for an ignored caller setting; emit UserWarning with an appropriate stacklevel.
  • Test quality: The HDR regression is distinct and covers replay, but direct Newton imports make optional-package runs fail; guard them with pytest.importorskip.

Minor fixes needed. Posted 3 inline findings.

Automated review; human maintainers own approval decisions.

@ooctipus

Copy link
Copy Markdown
Collaborator

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 Oct 12, 2026
@StafaH
StafaH force-pushed the fix/split-8379-rendering branch from ac68f9e to 710ed98 Compare October 12, 2026 18:31
@StafaH

StafaH commented Oct 12, 2026

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 Oct 12, 2026
@StafaH

StafaH commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator Author

Please backport this PR to the active release branch after it merges into develop.

@StafaH

StafaH commented Oct 12, 2026

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 Oct 12, 2026
@StafaH
StafaH merged commit d6f9f8c into isaac-sim:develop Oct 12, 2026
59 checks passed
isaaclab-bot Bot pushed a commit that referenced this pull request Oct 12, 2026
Explicit camera backgrounds were ignored in Newton HDR output, and
USD-only lens distortion was silently ignored. Fill background misses in
linear space before ISP processing while preserving black geometry, and
warn when distortion must be configured explicitly.

Split from #8379. This PR targets `develop` independently. The
scene-partition idempotence fix and test from the original PR are
already in `develop` and are omitted.

## Validation

- `uv run --no-sync python -m pytest
source/isaaclab/test/renderers/test_camera_output_contract.py`: 18
passed. The existing incomplete test fixture was corrected to use
`CameraCfg`/`PinholeCameraCfg`; typed camera fields retain their
documented defaults.
- `uv run --no-sync isaaclab -f`: passed, including changelog checks.

## Type of change

- Bug fix

## Release backport

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

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Kept regression tests with the corresponding fixes.
- [x] Included package changelog fragments.
- [x] Author already appears in `CONTRIBUTORS.md`.

## Renderer cost

Baseline renderer: `4eccae0f2`; candidate: `ac68f9e8f`. NVIDIA RTX PRO
6000 Blackwell Workstation Edition, one cube and one HDR camera per
environment, explicit sRGB background, ambient/default lighting
disabled. A temporary driver derived from the HDR regression called
`renderer.render(render_data)` directly (CUDA graph replay),
synchronized after 20 warmup calls and after 200 timed calls. Command:
`uv run --no-sync python /tmp/8463-benchmark.py`. Only the renderer
module was replaced with its baseline revision for the comparison;
dependencies and scene setup stayed fixed.

| Environments | Resolution | Baseline | Candidate |
| --- | --- | --- | --- |
| 16 | 128 × 128 | 0.0083 ms | 0.0103 ms |
| 256 | 64 × 64 | 0.0205 ms | 0.0267 ms |

These measure render dispatch plus GPU completion for a small static
scene, not total simulation frame time or a broad performance claim.

## CI follow-up

The failed visualizer job on the previous head hit the known PhysX
ANYmal-D Kit tiled golden mismatch (13.41% versus the 12% limit).
Rebased onto `a48bd07c1`, which includes #8470's targeted golden refresh
after the warmup change; comparison thresholds remain unchanged.
Requested a fresh Docker CI run on `710ed98b0`.

Ordinary imports are at module scope; inline imports are retained where
required by optional dependencies or deferred runtime loading.

(cherry picked from commit d6f9f8c)
@isaaclab-bot

isaaclab-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 78a2978.

StafaH added a commit that referenced this pull request Oct 12, 2026
#8495)

## Description

Backport the remaining simulation and training fixes from #8464 and
#8465 to `release/3.0.0`, completing the release coverage for the three
PRs split from #8379. This replaces the conflict-resolution drafts #8490
and #8491.

#8463 is already present in the release branch as
`78a297879f7a1edbfd32959ea4fcab8e967c8152`; replaying its merged commit
is empty. Its Newton HDR background and lens-distortion changes are
inherited from the base and are not duplicated here.

- Preserve compliant-contact stiffness during PhysX/OVPhysX material
randomization and use full-stage USD import for positive-stiffness
acceleration-spring materials, with a warning about the startup cost.
- Add training-only `--resume_optimizer_state` /
`--no-resume_optimizer_state`, preserving checkpoint models, iteration,
and RND state while allowing a fresh policy optimizer.
- Expose task discovery for direct workers and preserve literal
overrides following named preset selections.

## Conflict resolution

Kept the release branch's logging and test organization. Adapted
compliant-contact coverage into its existing
`test_heterogeneous_clone_contacts` and retained its scene helper and
ordinary settling duration. Used the source PR's focused CPU/GPU
scenario selection. Did not import the unrelated develop-only
indexed-state test consolidation or logging changes.

Source commits: `171b0ebe03b728997a09c016b37eb49ab074e81a` (#8464) and
`43100989af845462ac7036a256c01bcc8b84fe4a` (#8465). Release base:
`6ea915c13`.

## Validation

- Existing RSL-RL runner, dispatch, parser, and import checks: 14
passed.
- Hydra suite: 67 passed.
- Installed CLI workflow suite: 34 passed.
- OVPhysX material randomization: CPU and GPU passed in separate
processes (2 cases).
- Heterogeneous clone contacts: CPU and GPU passed in separate processes
(6 cases). Removing the cloning fallback makes the compliant GPU case
fail its clone-height comparison; the backport passes.
- Formatting/lint and changelog checks passed against the release base.
The release checker requires an `origin/` ref, so validation used a
temporary base alias that was removed afterward.
- Camera-output contract suite (including the existing #8463 backport):
18 passed.
- `uv run --isolated --extra dev -- make -C docs current-docs`: passed
with warnings treated as errors.
- Native PhysX integration tests will be covered by requested CI; they
were not run locally for this backport.

## Checklist

- [x] Followed contribution guidelines and kept existing tests with
their fixes.
- [x] Included the original package changelog fragments.
- [x] Preserved ordinary imports at module scope and justified
optional/runtime imports.
- [x] Author already appears in `CONTRIBUTORS.md`.
@StafaH
StafaH deleted the fix/split-8379-rendering branch October 26, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants