Repository navigation
[Newton] Fix camera HDR backgrounds and distortion warnings - #8463
Merged
Merged
Conversation
StafaH
requested review from
AntoineRichard,
fatimaanes,
hujc7,
kellyguo11,
ooctipus and
pbarejko
as code owners
October 12, 2026 01:56
1 task done
Contributor
|
Contributor
There was a problem hiding this comment.
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.
Collaborator
|
run-ci |
ooctipus
approved these changes
Oct 12, 2026
StafaH
force-pushed
the
fix/split-8379-rendering
branch
from
October 12, 2026 18:31
ac68f9e to
710ed98
Compare
Collaborator
Author
|
run-ci |
Collaborator
Author
|
Please backport this PR to the active release branch after it merges into develop. |
Collaborator
Author
|
run-ci |
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)
Contributor
|
Backported to |
This was referenced Oct 12, 2026
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
developindependently. The scene-partition idempotence fix and test from the original PR are already indevelopand 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 useCameraCfg/PinholeCameraCfg; typed camera fields retain their documented defaults.uv run --no-sync isaaclab -f: passed, including changelog checks.Type of change
Release backport
develop.Checklist
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 calledrenderer.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.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 on710ed98b0.Ordinary imports are at module scope; inline imports are retained where required by optional dependencies or deferred runtime loading.