Skip to content

[6Biv] Separate shared visualizer settings from backend options - #8704

Merged
ooctipus merged 14 commits into
isaac-sim:mainfrom
ooctipus:refactor/pr6biv-visualizer-config
Oct 20, 2026
Merged

ooctipus merged 14 commits into
isaac-sim:mainfrom
ooctipus:refactor/pr6biv-visualizer-config

Conversation

@ooctipus

@ooctipus ooctipus commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Camera, window, and environment-visibility settings previously lived in each backend config and were merged again from default_visualizer_cfg. This moves those settings into VisualizerCfg; KitBackendCfg, NewtonGLBackendCfg, NewtonRTXBackendCfg, RerunBackendCfg, and ViserBackendCfg contain backend options only.

sim_cfg = SimulationCfg(
    visualizer_cfgs=VisualizerCfg(
        max_visible_envs=16,
        window=WindowCfg(size=(1280, 720)),
    ),
)

For registered tasks, --viz newton_gl,newton_rtx selects both backends with these settings. Two view declarations produce four windows, retaining each view's camera and resolution. Customize selectable options with task-owned MultiBackendVisualizerCfg(newton_gl=NewtonGLBackendCfg(...)). Presets resolve during initial task/script configuration, before core launch. Concrete backend accepts one config or a list; [] selects none.

Old *VisualizerCfg(...) constructors, including NewtonVisualizerCfg, and default_visualizer_cfg remain accepted; their warnings explicitly mark them deprecated in Isaac Lab 3.2. A configuration-only translation preserves their options and feeds the same runtime implementation. Old Kit declarations retain 1280×720; new shared declarations default to 1920×1080. The migration guide includes both forms.

  • Preserved selected viewers when reorientation play mode changes the camera pose and when CLI selection switches backends for multiple views.
  • Supported backend lists when constructing SimulationContext directly, and kept direct construction from deprecated configs working.
  • Made Newton GL particles visible by default; show_particles=False hides them without updating their display buffers.
  • Updated examples and media capture to use the shared configuration and declared scene cameras. Teapot and its Rizon wrapper are GL-only; RTX surface rendering remains in the surface-reconstruction tutorial.
  • Removed 15 setup/forwarding helpers, combined Rerun’s duplicated image/plot layout, and consolidated media configuration and test scaffolding. The full PR is now +1,946/−2,072 lines (net −126), including migration support and documentation.

Validation: 153 launcher, preset, migration, recording, and visualizer tests passed after rebasing onto current main, along with formatting/lint. Fourteen media configurations matched their prior settings. Negative controls covered headless rendering, live plots, and server ownership; migration and selection regressions failed without their fixes.

GPU validation: GPU0 smoke runs opened two GL and two RTX windows, ran 1,605 steps, and closed cleanly. Granular MPM, two-way MPM, and the RTX surface-reconstruction tutorial each completed 10 steps. The optional standalone launch matrix and documentation build remain with CI.

  • Updated API documentation and migration guidance
  • Ran formatting/lint and focused tests
  • Added changelog fragments for every touched package

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-mimic Related to Isaac Mimic team infrastructure labels Oct 17, 2026
@ooctipus

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 17, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from fe01385 to 667dc84 Compare October 17, 2026 06:28
@ooctipus

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 17, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from 667dc84 to ad5656c Compare October 17, 2026 07:26
@ooctipus

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 17, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from ad5656c to 5d70b92 Compare October 18, 2026 08:29
@ooctipus

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 18, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from 5d70b92 to 41108b4 Compare October 18, 2026 08:55
@ooctipus

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 18, 2026
ooctipus added a commit that referenced this pull request Oct 18, 2026
Launch decisions were split between a `Scan` result, global settings,
and simulation construction. This makes the configuration passed to
`launch_simulation` the source of truth: task selection resolves first,
`validate_launch` prepares consumers and rejects incompatible runtimes,
and each required runtime starts once. Recording selects or reuses its
producer without opening a window.

Before and after:

- `uv run isaaclab train --task Isaac-Cartpole-Direct --rl_library
rsl_rl visualizer=newton_gl` now selects the viewer during task
composition; `--viz newton_gl` is the equivalent spelling. Physics and
renderer flags follow the same preset boundary.
- A Python `SimulationCfg(visualizer_cfgs=[NewtonGLVisualizerCfg(...)])`
previously needed `--viz newton_gl` to run that declared viewer. It now
runs as configured. `--viz none` disables windows; an empty config
remains windowless by default.
- `--video viz:newton_gl:streaming_view` retains headless, on-demand
capture and enables the requested sensor view. Multiple recorders
sharing a view reuse one producer.

Removed `Scan`, `scan`, duplicate selection helpers, and the
settings-based viewer handoff. One traversal now collects and replaces
runtime configs while preserving shared references; configuration tests
call validation directly without mocking runtime startup. Standalone
scripts pass the same simulation config to launch and construction. RTX
perspective cameras remain ordinary scene cameras declared before
construction.

**Scope: 6Biii, 84 files, +1,125 / −1,369.** The shared
`VisualizerCfg`/backend API and its task/example migration are now in
#8704 (6Biv). This PR retains the existing backend config API.

Validation: 308 focused tests passed across launch/runtime selection,
device propagation, recording, simulation lifecycle, Kit arguments, task
presets, and standalone configuration. An RTX particle-motion test
passed on GPU0. `uv run isaaclab -f` passed.

- [x] Updated behavior documentation and migration guidance
- [x] Ran formatting/lint and focused tests
- [x] Added changelog fragments for every touched package
@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from 41108b4 to 093650a Compare October 18, 2026 23:39
@ooctipus

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 18, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Oct 19, 2026
@ooctipus

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 20, 2026
@matthewtrepte

Copy link
Copy Markdown
Collaborator

Old *VisualizerCfg(...) constructors and default_visualizer_cfg remain accepted with deprecation warnings.

does this include old visualizer specific constructors, like NewtonVisualizerCfg?

@ooctipus
ooctipus force-pushed the refactor/pr6biv-visualizer-config branch from f20ce98 to 5599987 Compare October 20, 2026 18:47
@ooctipus

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 20, 2026
@ooctipus

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 20, 2026
@ooctipus
ooctipus merged commit cb1bd7f into isaac-sim:main Oct 20, 2026
59 checks passed
@ooctipus
ooctipus deleted the refactor/pr6biv-visualizer-config branch November 14, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants