← sketches
Cloth from Sticks and PointsA flag is simulated as a grid of points joined by tiny stiff springs. There is no fabric here — just points that remember where they were a moment ago and springs that refuse to stretch. Wind pushes, gravity pulls, and realistic folds and ripples fall out for free. Drag to orbit, scroll to zoom. The journey: each point moves by Verlet integration — new position = current + (current − previous) + forces — then the GPU relaxes every spring back toward its rest length a few times per frame, and the pinned edge stays put.