Skip to content

Add an RTX renderer toggle to the Newton visualizer and remove Newton RTX visualizer - #9051

Merged
kellyguo11 merged 88 commits into
isaac-sim:mainfrom
matthewtrepte:mtrepte/newton-viz-2-rtx-toggle
Nov 21, 2026
Merged

kellyguo11 merged 88 commits into
isaac-sim:mainfrom
matthewtrepte:mtrepte/newton-viz-2-rtx-toggle

Conversation

@matthewtrepte

@matthewtrepte matthewtrepte commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds a Renderer toggle (OpenGL | RTX) to the Newton visualizer's Rendering Options. RTX shows the scene through an OVRTX viewer camera, with its own Lighting & Appearance options for the scene, dome and distant lights, and the same free camera. Velocity markers, the drag arrow, and rigid-body picking work in both renderers.

  • Spawned USD visual materials are now applied without Kit, so RTX markers get their colors.
  • Lighting & Appearance sits right under the renderer toggle.
  • The RTX view shares its OVRTX renderer with sensor cameras that use the default renderer config, so Visible Envs and the lighting options also change what those sensors see while the view is in RTX.
  • Sensor views keep their own environment selection; only the default single-environment view is tiled.
  • Removes the separate Newton RTX visualizer, since the Renderer toggle covers it. The visualizer is named newton, and newton_gl stays as an alias.

This PR is based on main and is first in the stack. #9052 (HUD reorganization), #9050 (tracking cameras), #9053 (recording) and #9096 (Rollout Ghosts) build on it, in that order.

Type of change

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

The newton_rtx visualizer is removed (NewtonRTXVisualizer, NewtonRTXBackendCfg, NewtonRTXVisualizerCfg, and the newton_rtx selector); its changelog fragment has the migration. Use --viz newton --initial_renderer rtx for what it did.

The classes are removed without a deprecation period on purpose. newton_rtx shipped last release as an experimental, limited visualizer, and the Newton window now supports the same RTX use case fully, so keeping a weaker duplicate alive would not help. The newton_rtx selector stays as a deprecated alias instead of failing: --viz newton_rtx, viz:newton_rtx and visualizer=newton_rtx launch the newton visualizer with a FutureWarning that says the option is deprecated, is removed in the next release, and how to switch the Renderer to RTX.

Validation

  • Unit tests for the changed packages pass locally except two Newton adapter tests that need a newer Newton than the one installed here (test_newton_visualizer_notifies_native_viewer_once_per_geometry_change, test_newton_scene_camera_controls_apply_uniformly_to_active_copies).
  • Changelog check passes. CI on the current head is pending.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

matthewtrepte and others added 29 commits October 15, 2026 20:46
A perspective view can now frame an environment or follow an asset: env_index
places it relative to an environment origin, and track_path follows an asset's
position and, with follow_heading, its smoothed yaw. CameraFollower turns such
a view into world poses and reseeds the heading when an environment resets.
Visualizers that declare only task views get a free view beside them, and the
scene cameras they would find are kept. Add the viz:<type>:tracking video
source, which records the first task view whichever view the window shows.

Builds on the tracking views of isaac-sim#7760 by Antoine Richard.
Each perspective view renders itself, so a task view appears in Camera View
and the interactive view stays free. A recorder captures a task view by
borrowing the viewer camera for one frame and handing it back, so it does not
need the window to show that view. Nothing is created in the scene.
Fixed environment views and robot-following views for the locomotion tasks,
with the framings of isaac-sim#7760. Each task keeps its own viewport pose.
Create each task view's follower when the viewer initializes, so a bad env_index
or track_path fails there, and warn when the framed environment is not visible.
Keep the one-owner check on a perspective view's renderer, give each follower its
own clock, leave the streaming choice alone when a configuration only declares
task views, and drop a branch no caller reaches.
A velocity-task environment can reset near its old position with a new heading,
which the distance check misses. Also treat a yaw change no robot turns at
(over 10 rad/s) as a reset.
Say what a task view follows or frames instead of numbering it as another
perspective view.
Report the tracking form in the invalid video source error, correct the docs on
which visualizers show task views, type and place the free-view helper, give a
task view no pose instead of an error when no follower exists, and read the
task-view flag directly. Merge the Kit tracking case into the parametrized
invalid-source test and cover each recording case separately.
Kit follows a task view with its viewport, replacing the origin_type,
origin_env_index and origin_track_path fields of KitVisualizerCfg: the viewport
starts on the first declared view, and follow(), unfollow(), set_follow_env()
and set_view_offsets() switch it, from the environment window or code. The
deprecated viewer bridge and ViewportCameraController map onto them.

Viser gets a Follow task view checkbox, off by default, and an Environment
field. Newton GL gets an Environment field beside Camera View. A follower can
change its environment at runtime.
…m#8786

Resolve the merge with the visualizer config split: task views are
declared in VisualizerCfg.cameras and the Kit origin_* options stay
removed from KitBackendCfg. Task declarations use
SimulationCfg.visualizer_cfgs, the deprecated viewer bridge builds task
views on the new config, and Newton RTX leaves task views out.

Bring the follower and Newton GL behavior from isaac-sim#8786: set_track_path,
asset_names and body_names on CameraFollower, editable Tracking Camera
fields with a reset to the task default, and the Tracking Camera and
Perspective view names.
Start Kit on the first declared task view instead of the first listed one,
re-apply only an asset follow every step so an environment view stays
movable, warn when the deprecated viewer cannot add a task view, keep a view
tied to its environment when its asset is cleared, detect environment resets
by heading change instead of yaw rate, and drop the always-true reset result.
Insert the free view right before the first task view so scene cameras
declared ahead of it still open first, and set the viewport camera's focal
length when Kit starts following a task view.
Move the task view section after the Newton RTX description, remove the
untested-RTX note, the Kit control details and the duplicated migration
paragraph, and shorten the visualization concept text.
Viser keeps its main behavior and ignores task views. Mark the two Newton RTX
filters as removable together with the RTX visualizer.
Add TrackingCameraCfg, a PerspectiveCameraCfg subclass that frames an
environment or follows an asset, and give PerspectiveCameraCfg back its
world-coordinate meaning. Rename task views to tracking cameras in the
code, tests, docs and changelog fragments.
env_index is now optional. None picks the middle of the visible environments,
so the view has neighbors on every side, and the tasks no longer repeat env 0.
Apply a free view's pose when capturing it, reject tracking cameras without a scene or as an RTX image source, clear the heading filter on reset, and correct the docs, comments, and test markers.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@matthewtrepte matthewtrepte added the documentation Improvements or additions to documentation label Nov 16, 2026
@matthewtrepte

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

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

run-ci

@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@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 Nov 21, 2026
Comment on lines +1323 to +1325
self._rtx_perspective = view
self._restore_perspective_pose(view)
self.current_image_view.invalidate()

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.

P2 Perspective selection keeps old angle

Choosing an unused Perspective source while RTX is active leaves the previous camera angle on screen. _choose_camera_source() ignores the False return from _restore_perspective_pose() when that source has no saved pose. Unlike _select_camera(), it never applies the source's configured pose and focal length. Add that fallback before returning so the selected camera actually appears.

if not self._sdp.get_transforms(output, allow_passthrough=not asynchronous, scales=self._object_scales):
return
matrices = output.matrices
matrices = self._hide_environment_bodies(output.matrices, stream)

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.

P2 Hidden environments retain deformable meshes

Visible Envs does not hide deformable geometry in RTX. The new hiding step moves only the published body transforms. _setup_geometry_bindings() gives world-space geometry a separate identity transform, and update_geometries() writes its points unchanged. Cloth and other deformable meshes therefore remain visible after their environments are hidden. Apply the environment selection to those geometry paths too.

Knowledge Base Used: Omniverse backend

Comment on lines +985 to +988
current = next(
(i for i in indices if self._image_views[i].camera is None),
indices[0], # No free perspective view: show the first source
)

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.

While RTX follows Perspective 2, the combo still shows Perspective 1, so picking Perspective 1 does nothing (ImGui reports no change for the shown item). One potential fix is to show the followed view:

Suggested change
current = next(
(i for i in indices if self._image_views[i].camera is None),
indices[0], # No free perspective view: show the first source
)
followed = self._free_view_in_use()
current = self._image_views.index(followed) if followed is not None else indices[0]

_rtx_visibility_limited = False
_rtx_switch: str | None = None
"""``"requested"`` once the HUD asked for RTX and showed the wait message, ``"loading"`` until its first frame."""
_rtx_perspective = None

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.

Since RTX takes the current_image_view slot, the active Perspective lives only in this side copy, which the combo and the unsaved-pose path in _choose_camera_source both miss; we could consider keeping source and renderer as separate state.

def _is_viewer_camera(self, prim_path: str) -> bool:
"""Whether *prim_path* is the viewer camera launch declared for this window, or any viewer camera if none."""
declared = self._rtx_camera_path
return prim_path == declared if declared else prim_path.startswith("/World/viewer_camera_")

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.

Without a declared camera this still matches any /World/viewer_camera_*, so with two Newton windows where only the second opts in, the first window's RTX toggle drives the second's camera. Could it match nothing when no camera is declared?

@hujc7
hujc7 dismissed their stale review November 21, 2026 00:55

Superseded by the latest review.

@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

run-ci

@matthewtrepte

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@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 Nov 21, 2026
@kellyguo11
kellyguo11 merged commit 5e25205 into isaac-sim:main Nov 21, 2026
73 of 97 checks passed
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-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants