Repository navigation
Document the Newton OptiX renderer and expose it in task presets - #9099
Conversation
Add newton_optix to the renderer docs, preset tables, API reference, and the environment browser command builder, which now adds the optix extra and shows an RTX requirement hint. Add the preset to the render benchmark and microduck demo, and reject it on the deformable Franka lift camera tasks.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Design and architecture (1), Compatibility and deprecation (1), Style consistency (2). Other reviewed categories look good.
- PR description: The title matches the renderer update, but regenerated rows and Cloth validation are not demonstrated by the supplied diff; clarify those claims and condense the body while preserving validation and template sections.
- Design and architecture: Move OptiX validation into FrankaSoftCameraEnvCfg so non-camera configurations do not own camera-specific probing and scene scanning.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: MicroDuck's existing OptiX exposure preset changes from 3200 to None, stopping exposure authoring without a functional compatibility bridge, targeted warning, migration guidance, removal schedule, or transition coverage.
- Implementation: Implementation looks good.
- Style consistency: Add --inexact to the OptiX sync instruction to preserve installed extras, matching the adjacent OVRTX installation guidance.
- Test quality: Test quality looks good.
Significant concerns. Posted 4 inline findings.
Automated review; human maintainers own approval decisions.
| .. dropdown:: Newton OptiX renderer | ||
|
|
||
| - **Runtime and physics:** The Newton renderer ray traced in hardware with OptiX on RTX GPUs. | ||
| Install it with ``uv sync --extra optix`` (Linux x86-64 and Windows x64) and select it with |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Preserve installed extras in OptiX instructions
Unlike the adjacent OVRTX instructions, this sync command omits --inexact and can remove other installed extras. Use uv sync --inexact --extra optix.
| - **Output coverage:** Same outputs and settings as Newton Warp. It does not render particles, | ||
| deformable surfaces, or Gaussian splats, and it ignores ``use_cuda_graph``. | ||
| - **Configuration:** :class:`~isaaclab_newton.renderers.NewtonOptixRendererCfg` | ||
| - **Best for:** Newton Warp workloads on RTX GPUs. |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Remove the repeated use-case bullet
“Newton Warp workloads on RTX GPUs” repeats the runtime and output bullets without explaining when to choose OptiX. Remove it or state a distinct, verified use case.
There was a problem hiding this comment.
Fixed in 526e6b4: the bullet now names a distinct use case. It reads: rigid-body camera tasks on RTX GPUs, where OptiX replaces Warp's software BVH traversal with hardware ray tracing.
| visualizer_cfgs=VisualizerCfg(cameras=[SceneCameraCfg(prim_path="{ENV_REGEX_NS}/Camera")]), | ||
| ) | ||
| camera_exposure_iso = preset(default=3200.0, isaacsim_rtx=None, newton_warp=None) | ||
| camera_exposure_iso = preset(default=3200.0, isaacsim_rtx=None, newton_warp=None, newton_optix=None) |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Preserve the existing OptiX preset default
OptiX was already selectable here; this changes its exposure preset from 3200 to None and stops authoring exposure attributes. Keep the old default functional through a warned, documented migration before removing it.
There was a problem hiding this comment.
Leaving this as is. camera_exposure_iso only authors OmniRtxCameraExposureAPI_1 attributes, which are OVRTX-specific (see the comment at microduck_warehouse.py:155). The Newton renderers don't read them. That is why newton_warp was already None, and newton_optix now matches it. Before this change, renderer=newton_optix authored attributes that the renderer ignored, so the rendered output is the same. There is no behavior to migrate.
| # visualizer settings | ||
| self.sim.visualizer_cfgs = VisualizerCfg(eye=(0.75, 0.25, 0.65), lookat=(0.0, 0.75, 0.4)) | ||
|
|
||
| def validate_config(self): |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Move validation to the camera config
FrankaSoftEnvCfg also serves non-camera scenes, forcing this hook to probe for an optional camera and scan scene fields. Move it to FrankaSoftCameraEnvCfg and inspect its declared camera and deformable asset directly.
There was a problem hiding this comment.
Done in 526e6b4. The check now lives on FrankaSoftCameraEnvCfg and FrankaClothCameraEnvCfg, and it reads self.scene.base_camera directly, without probing or scanning the scene. It is not on a shared base because FrankaCableCameraEnvCfg also derives from FrankaSoftEnvCfg, and the cable task renders correctly with OptiX. is_task_run_launchable still rejects OptiX for Soft and Cloth and accepts it for Cable.
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryDocuments Newton OptiX and makes it available in renderer presets and the environment browser.
No actionable issues found. Reviews (1) · Last reviewed commit: "Allow OptiX on the cable lift task and d..." · Reviewed by Greptile |
|
run-ci |
Description
Follow-up to #9058. It documents
newton_optixand makes the renderer selectable wherever tasks expose renderer presets.Tasks that use
MultiBackendRendererCfgalready pick upnewton_optix, because #9058 added it there. This PR covers the remaining gaps.Docs
use_cuda_graphis ignored.newton_optixto:backends_and_presets.rstandhydra.rst;configure_rendering.rstand the how-to index;NewtonOptixRendererCfg).optixextra to the installation extras table.Environment browser
tools/update_environments_rst.py. Camera tasks now listnewton_optix.main: new tasks, thenewton_renderer→newton_warprename, andIsaac-Velocity-Rough-G1now listing onlyrsl_rl, which matches its registration.newton_optixadds--extra optixand shows a short hint that it needs an RTX GPU and a recent driver.newton_warp. Before this it still pointed at the removednewton_renderername.newton_rendererare normalized tonewton_warp, so Newton benchmark bars still render.Tasks
newton_optix=NewtonOptixRendererCfg(enable_shadows=True), matching its Warp override. The microduck warehouse demo gets the same treatment.renderer=newton_optixat config validation.The OptiX camera backend does not support particles or deformable surfaces.The hint does not pin a minimum driver version. If OptiX 9.1 needs a specific minimum driver, it can be added there.
Type of change
Test plan
uv run python tools/update_environments_rst.py --checkpytestfortest_render_benchmark_cfg.py,test_preset_cli.py,test_hydra.py,test_cartpole_camera_presets.pyandtest_shadow_hand_camera_presets.py: 137 passed.is_task_run_launchable: OptiX is rejected for Soft and Cloth. It is accepted for Cable, Cartpole-Camera and KukaAllegro-Camera.sphinx -W --keep-going -Esucceeded.newton_optix, and--extra optixis added to the command;🤖 Generated with Claude Code