Repository navigation
Add an RTX renderer toggle to the Newton visualizer and remove Newton RTX visualizer - #9051
Conversation
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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…check Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Replace the --rtx_viewer flag with the existing newton_rtx visualizer name, so it is no longer deprecated and opens the Newton window in RTX with the Renderer toggle available.
…ewton at the selector
…tive across renderer switches
…under its section
…RTX, and list visualizer=newton in the preset names
|
run-ci |
|
@greptileai review |
|
run-ci |
|
@greptileai review |
| self._rtx_perspective = view | ||
| self._restore_perspective_pose(view) | ||
| self.current_image_view.invalidate() |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
| 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 | ||
| ) |
There was a problem hiding this comment.
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:
| 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 |
There was a problem hiding this comment.
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_") |
There was a problem hiding this comment.
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?
…the Newton visualizer
|
run-ci |
|
@greptileai review |
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.
newton, andnewton_glstays as an alias.This PR is based on
mainand 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
The
newton_rtxvisualizer is removed (NewtonRTXVisualizer,NewtonRTXBackendCfg,NewtonRTXVisualizerCfg, and thenewton_rtxselector); its changelog fragment has the migration. Use--viz newton --initial_renderer rtxfor what it did.The classes are removed without a deprecation period on purpose.
newton_rtxshipped 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. Thenewton_rtxselector stays as a deprecated alias instead of failing:--viz newton_rtx,viz:newton_rtxandvisualizer=newton_rtxlaunch thenewtonvisualizer with aFutureWarningthat says the option is deprecated, is removed in the next release, and how to switch the Renderer to RTX.Validation
test_newton_visualizer_notifies_native_viewer_once_per_geometry_change,test_newton_scene_camera_controls_apply_uniformly_to_active_copies).Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists there