ALI LIN
← IndexAli Lin

MATERIAL MEMORY

a real-time fabric simulator that lets a buyer feel a garment before they buy it

material simulatorThree.js / GLSL2026shippedopen live ↗

E-commerce shows you what fabric looks like. Never what it moves like.

the shipping simulator · the FOLD test, looping · push, drop and drag it yourself: click to run live

WHAT

Luxury returns run high because a product page shows a still image. Drape, weight, sheen, the way cloth catches light when it moves, none of it survives a photograph. About half of apparel returns cite fit and material mismatch (NRF / Statista, 2025–26). Material Memory closes that gap: a WebGL cloth simulation you can push, drop, and drag, so a garment behaves before it's bought.

One engine, two readings. For the shopper it ends the guessing. For the brand it ends the returning. The same simulation that answers “how does this move” is the thing that keeps it from coming back.

BUILD

CLOTH THAT DRAPES, NOT A LOOP OF FRAMES

The fabric runs on Verlet cloth physics. A mass-spring mesh under distance constraints, integrated per frame in Three.js and GLSL, so the cloth holds together while it drapes, swings, and settles. Real-time, driven by the user's push and drag, not a pre-baked animation.

The material feel, drape and weight and sheen and how light rolls across a fold, I tuned by hand, iterating against how real cloth falls. Not measured off a reference; judged by eye, the way you judge whether a fabric hangs right. Latent measures; this one is felt.

loads on click. The real enginehigh-res still pending. The live engine runs on click
the cloth under a user's hand · real-time Verlet simulation · click to run the real thing

PROOF

MORE

Material Memory is the product-facing end of the same practice: Latent and Teardown measure what generative systems do; this one takes a hand-built physics engine and points it at a business number returns can't otherwise reach. Where those instruments prove rigor, this one proves the rigor aims at something someone pays for.

Ali Lin, design engineer