Repository navigation
[PERF] Increase VBD iterations and narrow stiffness range in deformables demo - #7652
Conversation
…les demo Deformable objects in the Newton VBD deformables demo passed through the ground plane. Objects are dropped from up to 3.5 m and reach the ground at several m/s, while the solver ran only 5 iterations and Young's modulus was sampled up to 1e8 Pa, far stiffer than the contact penalty can resist. The elastic response then overwhelmed the ground contact and vertices ended up below the plane. Cap the sampled Young's modulus at 1e7 Pa and raise the VBD iteration count to 20.
There was a problem hiding this comment.
Isaac Lab Review Bot
The Newton VBD iteration increase is correctly backend-gated, but the reduced Young’s modulus upper bound is applied to the shared material-sampling path and therefore also changes PhysX behavior, contrary to the PR’s stated scope.
- Design and architecture: Backend-specific solver tuning remains isolated under the
newton_vbdcondition, but the stiffness adjustment breaks that separation by retuning all backends. The narrower bound should be selected conditionally for Newton VBD while preserving the existing PhysX range. - API: No public symbols, CLI arguments, or configuration contracts change. However, the demo’s observable PhysX material distribution changes from the prior 5e5–1e8 Pa range to 5e5–1e7 Pa despite the stated compatibility intent.
- Implementation: Raising solver iterations from 5 to 20 affects only Newton VBD as intended. At line 198, however, the shared branch samples the reduced stiffness range for PhysX as well as Newton VBD non-cloth objects; retain the original upper bound for PhysX and apply 1e7 only to Newton VBD.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| obj_cfg.physics_material.tri_ka = random.uniform(5e3, 5e4) | ||
| else: | ||
| youngs_modulus = random.uniform(5e5, 1e8) | ||
| youngs_modulus = random.uniform(5e5, 1e7) |
There was a problem hiding this comment.
🟡 Warning · Implementation — Stiffness cap also changes PhysX demo behavior
Line 198 sits in the else branch that runs for every backend (the if above matches only Newton VBD cloth), so the sampled Young's modulus is now capped at 1e7 for the PhysX paths too, not just newton_vbd as intended. Gate the narrowed upper bound on args_cli.physics == "newton_vbd" and keep the original 5e5-1e8 range for PhysX.
The PR should not merge until the Young's modulus cap is restricted to Newton VBD as intended. Findings
|
| obj_cfg.physics_material.tri_ka = random.uniform(5e3, 5e4) | ||
| else: | ||
| youngs_modulus = random.uniform(5e5, 1e8) | ||
| youngs_modulus = random.uniform(5e5, 1e7) |
There was a problem hiding this comment.
When the demo runs with --physics isaacsim_physx or --physics ovphysx, this shared branch samples the new range and assigns it to physics_material.youngs_modulus. As a result, the PhysX stiffness ceiling also drops from 1e8 to 1e7, even though this change is intended to affect only Newton VBD. Restrict the new range to newton_vbd so the PhysX paths remain unchanged.
Collision ran once per 10 ms tick with no continuous collision detection, while objects crossed the 18 mm contact detection band in a single tick. The plane was missed during the crossing tick and the penalty force resolved on the next one, ejecting cloth sheets several metres into the air where they stayed for the rest of the reset cycle. Set collision_decimation to 1 so the collision pipeline re-runs on every solver substep.
|
run-ci |
|
Backported to |
…les demo (#7652) # Description Deformable objects in the Newton VBD deformables demo passed through the ground plane, and cloth sheets were occasionally launched several metres into the air. Two causes: - Collision ran once per 10 ms tick with no continuous collision detection, while objects dropped from up to 3.5 m cross the 18 mm contact detection band within a single tick. The plane was missed during the crossing tick and the penalty force resolved on the next one, ejecting the object. - Young's modulus was sampled up to 1e8 Pa, far stiffer than the contact penalty can resist, so the elastic response overwhelmed the ground contact and vertices ended up below the plane. This sets `collision_decimation` to 1 so the collision pipeline re-runs on every solver substep, caps the sampled Young's modulus at 1e7 Pa, and raises the VBD iteration count to 20. Only affects `--physics newton_vbd`; the PhysX paths are unchanged. Measured over 6 s with two seeds, the stiffness and iteration changes alone still left 5 objects stranded in the air (one cloth at 3.27 m, another at 0.53 m, a volume deformable at 1.43 m). With `collision_decimation = 1` every object settles on the plane and worst-case penetration drops from 51 mm to 29 mm. Fixes nvbugs 6201420 ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] My changes generate no new warnings - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit 590ec10)
Description
Deformable objects in the Newton VBD deformables demo passed through the ground plane, and cloth sheets were occasionally launched several metres into the air. Two causes:
This sets
collision_decimationto 1 so the collision pipeline re-runs on every solver substep, caps the sampled Young's modulus at 1e7 Pa, and raises the VBD iteration count to 20. Only affects--physics newton_vbd; the PhysX paths are unchanged.Measured over 6 s with two seeds, the stiffness and iteration changes alone still left 5 objects stranded in the air (one cloth at 3.27 m, another at 0.53 m, a volume deformable at 1.43 m). With
collision_decimation = 1every object settles on the plane and worst-case penetration drops from 51 mm to 29 mm.Fixes nvbugs 6201420
Release backport
developType of change
Checklist
pre-commitchecks with./isaaclab.sh --formatCONTRIBUTORS.mdor my name already exists there