Repository navigation
Description
Describe the bug
After ManagerBasedEnv.reset() resets a PhysX deformable through mdp.reset_nodal_state_uniform(), the first recorded Isaac RTX camera observation still shows the previous visual-mesh position. The recorded physics state already contains the new nodal positions. The normal reset path calls sim.forward() and rerenders, but even increasing num_rerenders_on_reset from 1 to 4 does not update the deformable image. One physics step repairs it.
A rigid cube in the same image moves immediately to its reset position. This distinguishes stale deformable geometry from an old camera buffer.
Newton VBD renders both cubes at their reset positions immediately using the same Isaac RTX camera, providing a control for the physics-to-render synchronization path.
Expected: the first rendered observation after a reset reflects the new deformable state without advancing physics.
Actual: camera-based policies and recordings receive an image inconsistent with the reset state, until physics advances.
Please fix this on main and backport to release/3.1.0 and release/3.0.0 if possible.
Preconditions and scope
- GPU PhysX with its native Fabric publication and an Isaac RTX camera through Kit, tested headlessly.
- Deformable simulation-node positions are written before a camera observation, without an intervening physics step.
- Reproduced with ordinary
env.reset()and with an additionalenv.sim.reset()before each reset, following the simulation-reset sequence used byrecord_demos. - Cameras are warmed up for 16 physics steps first. The reproduction isolates reset-time geometry publication from initial camera-resource loading.
ManagerBasedEnvhandles rendering and camera observations.num_rerenders_on_reset=1refreshes rendering without advancing physics; the separate four-rerender run shows that extra reset rendering does not fix the geometry.- No Arena, robot, policy, contacts, gravity, or downloaded assets are involved. Newton VBD with the same Isaac RTX camera is tested as a control; other renderer combinations and partial resets across multiple environments are outside this reproduction.
Minimal reproduction
Use repro_physx_deformable_reset_render.py from the reproduction branch.
PhysX baseline script: commit 390873d5ea5f1bb5aedeed1a862f4b68600c7f71, based on upstream main at ed56359bbd95f892c93860559fc74c7dead41e90 (latest upstream main when checked on December 1, 2026). The branch adds only the reproduction script; it does not patch simulation or renderer code.
The published reproduction branch includes the Newton VBD control and comparison images in commit bd46782b4. Both physics backends use the same recording loop and Isaac RTX camera. No engine or renderer fix is applied.
# From an existing Isaac Lab repository:
git fetch https://github.com/qianl-nv/IsaacLab.git qianl/fix/physx-deformable-reset-repro
git switch --detach FETCH_HEAD
uv sync --frozen --extra isaacsim --extra tetrahedralization
export OMNI_KIT_ACCEPT_EULA=YES ACCEPT_EULA=Y
# Ordinary env.reset(), with one reset rerender and no simulation reset:
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--output /tmp/physx-deformable-reset/ordinary
# Also call sim.reset() with its default soft=False before each episode reset:
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--hard-reset --output /tmp/physx-deformable-reset/hard
# Ordinary env.reset(), with four renders before computing the observation:
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--reset-renders 4 --output /tmp/physx-deformable-reset/extra_renders
# Newton VBD controls, using the same Isaac RTX camera:
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--physics newton_vbd --output /tmp/physx-deformable-reset/newton_ordinary
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--physics newton_vbd --hard-reset --output /tmp/physx-deformable-reset/newton_hard
uv run --no-sync python scripts/reproductions/repro_physx_deformable_reset_render.py \
--physics newton_vbd --reset-renders 4 --output /tmp/physx-deformable-reset/newton_extra_rendersThe scene contains a green deformable cube and a red rigid control. Both are reset to x offsets of -0.25, +0.25, and -0.15 m in three successive episodes. Each run saves reset_frames.hdf5 and six PNGs (demo_0_frame_0.png through demo_2_frame_1.png). Existing output files at the requested path are overwritten.
The script uses ManagerBasedEnv, standard reset events, and ActionStateRecorderManagerCfg, with empty actions and the processed-action recorder disabled because there are no actuators. The key loop, inside with launch_simulation(cfg, args): after camera warmup, is:
for x_W in (-0.25, 0.25, -0.15):
env.event_manager.get_term_cfg("soft_reset").params["position_range"] = {"x": (x_W, x_W)}
env.event_manager.get_term_cfg("rigid_reset").params["pose_range"] = {"x": (x_W, x_W)}
if args.hard_reset:
env.sim.reset()
env.recorder_manager.reset()
env.reset()
for _ in range(2):
env.step(actions) # Records the reset observation, then the observation after one step.
env.recorder_manager.export_episodes()The standard recorder captures policy observations before each step. Therefore data/demo_N/obs/rgb[0] is the observation returned by env.reset(), and [1] is the observation after one physics step. Each episode also stores its initial state and both post-step states. The three episodes are numbered demo_0 through demo_2 in HDF5 and the PNG filenames.
PNG extraction is postprocessing: after env.close(), while still inside the launcher context so Kit has not terminated the process, the script reads the recorded camera frames from HDF5:
with h5py.File(args.output / "reset_frames.hdf5", "r") as dataset:
for name, episode in dataset["data"].items():
for frame, rgb in enumerate(episode["obs/rgb"]):
Image.fromarray(rgb).save(args.output / f"{name}_frame_{frame}.png")The script does not compute image-error statistics. The measurements below were calculated separately from the saved HDF5 observations and states, and every exported PNG was verified to match its HDF5 frame exactly.
PhysX results
Reproduced in 9/9 resets: three ordinary resets, three with sim.reset(), and three ordinary resets with four rerenders. All three final runs completed with exit code 0 and no logged errors. All 18 PNGs matched their recorded HDF5 observations exactly.
Image error below is the distance between the colored object's silhouette centroid in the first reset capture and its centroid after one physics step. These are 640 × 480 camera images. A small residual is expected from rendering noise; this metric is not a projected simulation-node centroid.
| Reset mode | Episode | Deformable image error (px) | Rigid control error (px) | Maximum node movement during reference step (m) |
|---|---|---|---|---|
| Ordinary, 1 rerender | 1 | 117.26 | 0.17 | 1.30e-8 |
| Ordinary, 1 rerender | 2 | 234.78 | 0.21 | 1.12e-8 |
| Ordinary, 1 rerender | 3 | 187.91 | 0.17 | 5.95e-10 |
With sim.reset(), 1 rerender |
1 | 116.36 | 0.21 | 4.59e-9 |
With sim.reset(), 1 rerender |
2 | 234.72 | 0.25 | 4.81e-9 |
With sim.reset(), 1 rerender |
3 | 187.23 | 0.31 | 4.88e-9 |
| Ordinary, 4 rerenders | 1 | 117.30 | 0.21 | 8.93e-9 |
| Ordinary, 4 rerenders | 2 | 234.79 | 0.16 | 9.58e-10 |
| Ordinary, 4 rerenders | 3 | 188.02 | 0.12 | 5.67e-10 |
Four reset rerenders still leave the deformable at the wrong image position. The reference physics step changes the image while moving no node by more than 1.31e-8 m, ruling out physical motion as the explanation for the image jump. Nodal movement is measured between initial_state/deformable_object/soft/nodal_position[0] and states/deformable_object/soft/nodal_position[0] within each HDF5 episode.
The comparison shows episode 2, where both objects are reset from left to right. Green is deformable; red is rigid. Rows show ordinary reset, simulation reset, and four reset rerenders. The left column is the reset observation; the right column is the observation after one physics step.
Newton VBD comparison
Correct in 9/9 resets: Newton VBD renders the deformable at the requested position in the first recorded observation for ordinary resets, hard resets, and four-rerender resets. All three runs completed and all 18 extracted PNGs matched their HDF5 observations exactly. No runtime errors were logged.
The comparison keeps the procedural cubes, visual materials, camera pose and projection, IsaacRtxRendererCfg, 120 Hz timestep, zero gravity, and recorder loop unchanged. Newton uses its own deformable schema and a NewtonDeformableBodyMaterialCfg with the PhysX material's density (1000 kg/m³) and equivalent elastic constants (Young's modulus 1 MPa, Poisson's ratio 0.45, converted to Lamé parameters). The default newton_vbd preset uses 10 VBD iterations and one substep. Each backend generates its own tetrahedral mesh; this checks reset-time rendering, not equivalence of their deformable discretizations.
| Reset mode | Episode | Deformable image change (px) | Rigid control change (px) | Maximum node movement during reference step (m) |
|---|---|---|---|---|
| Ordinary, 1 rerender | 1 | 0.65 | 0.15 | 2.99e-8 |
| Ordinary, 1 rerender | 2 | 0.47 | 0.24 | 3.07e-8 |
| Ordinary, 1 rerender | 3 | 0.10 | 0.11 | 1.49e-8 |
With sim.reset(), 1 rerender |
1 | 0.43 | 0.89 | 4.28e-8 |
With sim.reset(), 1 rerender |
2 | 0.48 | 1.07 | 2.98e-8 |
With sim.reset(), 1 rerender |
3 | 0.46 | 0.98 | 1.67e-8 |
| Ordinary, 4 rerenders | 1 | 0.60 | 0.13 | 3.07e-8 |
| Ordinary, 4 rerenders | 2 | 0.51 | 0.24 | 3.41e-8 |
| Ordinary, 4 rerenders | 3 | 0.10 | 0.11 | 1.67e-8 |
Newton's deformable centroid changes by only 0.10–0.65 pixels after one step, versus 116–235 pixels for PhysX. Its first-frame silhouette is already on the requested side of the image in all nine resets, so the small change does not indicate a camera frozen at the previous episode's position. Node movement remains below 4.29e-8 m. The subpixel deformable differences are consistent with rendering noise.
The image below compares ordinary-reset episode 2. Both cubes have been reset from left to right. PhysX leaves the green deformable on the left in the reset observation, while Newton renders it on the right immediately. Both rows use Isaac RTX.
Root-cause analysis
The observed failure is at the PhysX-to-render-geometry publication boundary:
DeformableObject.write_nodal_pos_to_sim_index(), reached through the reset event's nodal-state write, writes the native PhysX simulation nodes and increments the geometry timestamp. Analysis of the recorded initial states confirms the requested offsets; the first post-step states differ negligibly.PhysxSceneDataBackend._update_fabric()calls nativeforce_update(0.0, 0.0)and records the new timestamps as published.FabricBackend.update_geometries()returns immediately for nativeFabricMatrix44publication, assuming that the native refresh also updated geometry. The rendered deformable in this reproduction demonstrates that this assumption does not hold after these nodal writes.
This locates the integration boundary; the exact missing operation inside Isaac Sim's native PhysX/Fabric implementation has not been identified. The successful Newton control with the same Isaac RTX camera further narrows the difference to the backend's geometry publication path. The test does not establish which internal native cache is stale.
Suggested fix
Ensure native reset/teleport publication updates deformable visual geometry from the newly written simulation nodes before rendering. Alternatively, have Lab explicitly publish the deformed visual vertices from its scene-data interpolation path after nodal writes, instead of relying on the native-transform shortcut for geometry.
System info
- Ubuntu 24.04.4 LTS; NVIDIA GeForce RTX 3090, 24 GB; driver 595.84.
- Isaac Sim 6.2.0.0; Isaac Lab package 47.2.0 at the revision above.
- Native uv environment; Python 3.12.14; Newton 1.9.0.dev0; Warp 1.17.0; PyTorch 2.11.0+cu130.
isaacsim_physxandnewton_vbd, GPU simulation,IsaacRtxRendererCfg, one environment, 120 Hz, zero gravity.
Related reports
-
Related Arena report: NVBug 7183639 (NVIDIA internal).
-
#8428: First reset camera observation remains stale and #8433.
-
#8780: Fix sensor freshness, reset cadence, and native coverage.
-
Both fixes are already ancestors of the tested main revision. The remaining reproduction here is specific to deformable visual geometry; its rigid control updates correctly.
Checklist
- Searched Lab issues for deformable reset/render reports; related camera-reset issues are linked above.
- Reproduced using Lab directly, without Arena or remote assets, and compared PhysX with Newton VBD using the same renderer.
- Determined whether the remaining fix belongs in Lab or Isaac Sim's native PhysX/Fabric implementation; the integration boundary is identified, but the native implementation has not been isolated.
Acceptance criteria
- The first camera observation after a PhysX deformable reset matches the reset nodal state without an extra physics step.
- Ordinary resets, simulation resets, and partial resets across multiple environments are covered by a regression test.
- Demo recordings and policy inference receive correctly synchronized first observations; Newton and rigid-body behavior remain correct.


Activity
yashb98 commentedon Dec 3, 2026
Would it help if I looked at extending the camera reset test from #8433 to cover deformable objects? The goal would be to check that the first frame shows the reset position before physics takes a step. Is anyone already working on that case?