Repository navigation
Description
Proposal
When spawning deformable primitives, Isaac Lab authors the USD prim — geometry generation, schema application, and physics-material binding — through omni.physx (Kit) and PhysX-specific schemas, even when the selected physics backend is Newton. This proposal is to make the deformable spawn/schema/material path backend-agnostic and Kit-free, so a Newton deformable can be created without importing omni.physx or applying PhysX-only schemas.
Motivation
The Newton backend is meant to remove the hard dependency on Kit, but the deformables demo (scripts/demos/deformables.py) — and any Newton deformable spawn — still goes through omni.physx during USD creation. The PhysX-specific authoring is hardcoded in the base isaaclab package at backend-agnostic call sites, so backend selection doesn't actually change what gets imported or applied. Concretely:
1. Deformable geometry generation pulls from omni.physx
source/isaaclab/isaaclab/sim/spawners/meshes/meshes.py:291—spawn_mesh_rectangle()(cloth) doesfrom omni.physx.scripts import deformableUtilsand callsdeformableUtils.create_triangle_mesh_square()(:293) purely to build a triangle grid. A geometry helper is sourced from Kit/PhysX.
2. Deformable schema authoring is Kit/PhysX-bound — and unconditional
source/isaaclab/isaaclab/sim/schemas/schemas.py:1147—define_deformable_body_properties()doesfrom omni.physx.scripts import deformableUtilsand callsdeformableUtils.remove_deformable_body()(:1219) on every deformable spawn, surface or volume, regardless of backend.- It applies PhysX/OmniPhysics schema APIs unconditionally:
OmniPhysicsSurfaceDeformableSimAPI(:1241),OmniPhysicsVolumeDeformableSimAPI(:1296),OmniPhysicsDeformablePoseAPI(:1341,:1350),OmniPhysicsDeformableBodyAPI(:1359), plusomniphysics:*rest-shape attributes. Newton then has to consume prims authored with these PhysX-oriented schemas. source/isaaclab/isaaclab/sim/schemas/schemas.py:343—modify_articulation_root_properties()importsomni.physx.scripts.utilsand callsphysx_utils.createJoint().
3. Physics materials are PhysX-specific
source/isaaclab_physx/isaaclab_physx/sim/spawners/materials/physics_materials_cfg.py— deformable material configs apply PhysX schemas:PhysxDeformableMaterialAPI(:76),PhysxSurfaceDeformableMaterialAPI(:103), with PhysX-only fields (elasticity_damping,bend_damping).source/isaaclab_physx/isaaclab_physx/sim/schemas/schemas_cfg.py—PhysXDeformableBodyPropertiesCfg(PhysxBaseDeformableBodyAPI,:53) andPhysxDeformableCollisionPropertiesCfg(PhysxCollisionAPI,:143).- These are applied through the base spawner
spawn_deformable_body_material()(source/isaaclab/isaaclab/sim/spawners/materials/physics_materials.py).
4. Backend-agnostic call site, backend-specific implementation
scripts/demos/deformables.py:47–62selects Newton- vs PhysX-specific config classes, but the underlying spawn path (define_deformable_body_properties()) still importsomni.physxand writes PhysX/OmniPhysics schemas. By contrast,isaaclab_newton's deformable config applies no USD schema (NewtonDeformableBodyPropertiesCfg,schemas_cfg.py:44–58), confirming the authoring is one-sided.
Alternatives
- Replace
omni.physx.scripts.deformableUtilsgeometry helpers (e.g.create_triangle_mesh_square,remove_deformable_body) with Kit-free equivalents (NumPy/warp/trimesh, all already dependencies). - Move PhysX/OmniPhysics schema application out of the base
isaaclabspawn path into theisaaclab_physxbackend, and add a Newton-native authoring path inisaaclab_newton, dispatched by the active backend. - Keep the cross-backend
OmniPhysics*schema as the neutral on-disk representation but author it without going throughomni.physx(apply schemas viapxr/USD directly, or via a backend hook).
Build Info
- Isaac Lab Version: develop (3.x)
- Isaac Sim Version: 5.x / Newton backend
Additional context
All references are on the develop branch. Note there are no literal from omni.physx import PhysxSchema calls in this path — the Kit reliance comes through omni.physx.scripts (geometry + remove_deformable_body) and the PhysX/OmniPhysics ApplyAPI schema authoring in the base package.
Checklist
- I have checked that there is no similar issue in the repo (required)
Acceptance Criteria
- Spawning a Newton deformable (e.g.
scripts/demos/deformables.pywith the Newton backend) imports noomni.physxmodule. - Deformable geometry generation uses a Kit-free helper.
- PhysX-specific schemas/materials are applied only when the PhysX backend is active; Newton uses a native authoring path.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
RandomOakForest commentedon Jun 29, 2026
Thank you for posting this with all the detailed motivation. The team will review it.
Rename MJWarp to VBD and Implement Kitless Path for Newton Deformables (
Rename MJWarp to VBD and Implement Kitless Path for Newton Deformables (
Rename MJWarp to VBD and Implement Kitless Path for Newton Deformables (