Cloth, Rods and Soft Bodies
Cloth, ropes, rods with twist, tetrahedral soft bodies, shape-matched bodies, balloons, position-based liquids and granular materials live in one particle world, so a hammock can hold water and a rubber duck can bounce on a trampoline.
Methods
- XPBD with small steps: many sub-steps with one constraint sweep each, which converges well for stiff cloth. Stretch, bending, area and tether constraints are solved eight at a time with AVX2, bit for bit as the scalar code.
- Neo-Hookean membrane for cloth with a Young's modulus and Poisson's ratio: a stretched strip narrows as it should (within 0.1 % of NVIDIA Newton's).
- Geometric contact: Offset Geometric Contact (vertex–triangle and edge–edge contacts at a set distance) with Planar Divide and Truncate, which cuts each vertex's displacement so that no surface ever crosses another. Layers press together and never pass through.
- Tearing by vertex splitting, from the crack's tip; aerodynamics with drag and lift from the wind field, so flags flutter.
- Cosserat rods (the scheme of Stable Cosserat Rods, SIGGRAPH 2025): rods that bend and twist, clamps that pass torque to rigid bodies, segment contact between strands, plectonemes.
- Soft bodies: tetrahedral Neo-Hookean solids, shape matching, pressure balloons.
- Two-way coupling with rigid bodies: a tablecloth loads the table, a rope holds a crate.
In Divooka
| Available in Divooka | Planned |
|---|---|
AddCloth (a sheet with cells, density, bending stiffness, friction, pins), AddClothMesh (any surface, with unitScale); AddGarment (a sewn garment of woven pattern pieces), GarmentPieces, GarmentMesh; UnpinCloth; ClothMesh from results and sessions; clothSubsteps on NewScene |
the geometric contact model and membrane as cloth options; tearing; ropes and Cosserat rods with clamps; soft bodies, shape matching and balloons; position-based liquids |
Validation
| Test | Result |
|---|---|
| Hanging cloth, 1 m², 20 sub-steps | maximum stretch 1.15 % over the swing, energy decays |
| Strip bending against the heavy elastica | tip droop within 1–5 % |
| Cloth draped over a sphere and a box | no penetration, settles |
| Pulled membrane strip, ν from 0.1 to 0.8 | narrowing within 1.2–2.6 % of the closed form |
| Twisted cloth with geometric contact | zero intersecting pairs in every checked frame |
| Two sheets on the floor, contact distance 4 mm | gap 3.989 mm |
| Cosserat cantilever, large deflection | tip within 0.4 % of the discrete model |
| Michell's twisted ring | planar below the threshold, buckled above it |
| Torsion pendulum on a rod | period within 0.1 % |
| Cosserat rods against the reference implementation | settled shapes within 0.04 mm |
| Cloth, rods and soft bodies on 1, 2 and 4 threads | bit-identical |
Cost
A 65 × 65 cloth with 10 sub-steps costs about 11 ms per step on one core, a 129 × 129 cloth about 44 ms. A draped tablecloth scene runs at about 12 ms per frame at preview quality. Geometric contact costs more: a wrung towel about 16 ms per frame at preview quality and 49 ms at full quality.
Limits
- With the default particle contact, rigid colliders see cloth vertices as spheres; sharp corners can snag thin cloth.
- Long chains of stiff constraints converge slowly under load; pinned cloth should use tethers.
- A heavy fast body can pass through light cloth: a constraint holds about m/h² per particle. Raise the sub-steps, the cloth's density, or give the projectile a light proxy.
- Geometric contact is not real time once layers lock (about 55 ms per frame at preview quality in a tight twist), and a rope wrung tighter than its layers allow locks.
- Cosserat rods need enough sub-steps for their stiffness; very stiff, long rods want longer segments or vertex damping.
Sample scenes
cloth-drape, flag-wind, rubber-toys, rope-swing, cloth-tearing, cloth-twist, cloth-layers, cable-plectoneme, twisted-rope, xpbd-liquids.