Presets
Playback
Fabric and air
Run
Camera
Layers
Quality
Model check
The science
What is modelled
A square sheet of fabric 1.125 m on a side is a grid of 26 x 26 point masses joined by springs: structural springs along the threads, shear springs on the diagonals and weak bend springs that skip one particle. Gravity, quadratic air drag and a gusty wind act on each particle; the floor, a table top and a ball are solid obstacles with Coulomb friction. You can pick the cloth up with the mouse or a finger.
Equations
- Spring force on a link between particles a and b:
F = [k (L - L0) + c (vrel · n)] n, where L is the current length, L0 the rest length, n the unit vector along the link and c the internal damping. Shear links have L0 = √2 h; bend links L0 = 2h. - Each particle has mass
m = σ h²(σ = fabric mass per area, h = 4.5 cm) and obeysm a = Fsprings + m g + Fair, integrated with a symplectic (semi-implicit) Euler step of 0.4 ms. The step is small because the stiff links have a vibration period of only a few milliseconds: explicit schemes needdt < 2/ωmax. - Air: each particle feels
F = -½ ρ Cd A |vn| vn nwith the relative velocity between particle and air normal to the local surface (ρ = 1.2 kg/m³, Cd = 1.2, A = h²/2 per face). The wind blows along +x and gusts with a slow sum of sines. - Contacts: a particle inside an obstacle is moved to the surface plus a 6 mm margin; the velocity component into the surface is removed and the tangential velocity is reduced by Coulomb friction,
Δvt = min(|vt|, μ |vn|).
Checks run in the page
- Free fall: with no support and no drag the centre of mass of the pre-stretched sheet must follow y0 + v0t - gt²/2, whatever the spring forces do inside (Newton's third law).
- Hanging thread: a column of N particles with structural springs only, pinned at the top, settles to a stretch of
(m g / k) N(N-1)/2(Hooke's law summed over the links, each carrying the weight below it). - Ball contact: after a 2.6 s drape over the ball and table, no particle is inside the ball beyond the contact margin and the sheet is held above the floor.
Honest simplifications
- This is a mass-spring model, not a continuum shell: the real fabric is stiff against stretching and shear but its bending behaviour comes from yarn geometry, which the weak bend springs only imitate. Folds will look plausible, not match a measured fabric.
- No cloth self-collision: when the sheet folds over itself, layers can pass through each other. Particle-level contacts also allow a very sharp edge to pierce between particles, so the ball and table edges are modelled as smooth.
- Air drag acts only on the normal velocity (no skin friction, no lift or turbulence model), so a flag flutters from drag and gusts, not from a vortex-street simulation.
- Stiffness defaults (100 N/m per link) give about 1 % stretch when hanging; real cotton stretches even less, but a stiffer setting would need an even smaller time step.
- The picture of the plaid weave is a Blender-baked texture; it does not stretch with the simulated strain.
What to try
- Compare "Silk" and "Canvas" dropping onto the ball: silk clings and folds, canvas bridges.
- "Flag on a pole" with wind 0 and then 10 m/s: the free edge streams out and flutters.
- "Hang from two corners" and raise the mass per area: the maximum stretch graph rises in proportion.
Loading model...
Loading Blender model...