Cloth

cloudofoz.com

519 points by memalign 13 days ago


mmwelt - 13 days ago

Another one for the browser: https://oimo.io/works/cloth/

atan2 - 13 days ago

I was able to understand verlet integration and write my own cloth simulation after reading the blog post from Marian Pekár:

https://pikuma.com/blog/verlet-integration-2d-cloth-physics-...

mattfrommars - 13 days ago

How do people go from web dev/gradle/java knowledge to build something like this.

For me, sometimes I wonder since I never did CS undergrad, I will never understand any of this no matter how many programming langauge I learn. I did dabble a bit with OPENLY, LIBGDX, GODOT, unity but to come to with cloth simulation from scratch, damn

falcor84 - 13 days ago

This reminded me of this cool Polygon video examining the incredible cloth design in the game Elden Ring

https://youtu.be/wSSqx-Dh6ko

rikroots - 13 days ago

I've always loved this sort of cloth animation. I think the first one I saw was dissimulate's tearable cloth demo on Codepen - I can't believe they wrote that code 9 years ago!

[1] - https://codepen.io/dissimulate/pen/eZxEBO

[2] - https://github.com/Dissimulate/Tearable-Cloth

sph - 13 days ago

These cloth simulators always feel somewhat unstable - try generating a Grid cloth, and see it start bouncing and moving randomly. Is this due to accumulating IEEE 754 floating point errors?

account-5 - 12 days ago

Can I just say well-done to the author of this site. No external JavaScript, it all runs as is, even on mobile. Most modern text based websites can't claim this.

Borzadaran - 13 days ago

This is seriously impressive work — simple yet mesmerizing. Really highlights how powerful Verlet integration is for creating natural, believable cloth simulations. For anyone interested, I'd also recommend checking out Jakobsen's paper from the Hitman game engine — it's a classic. Thanks for sharing this inspiring project!

gitroom - 13 days ago

Love seeing people actually ask the hard questions about how stuff like this works. Never fails to make me feel like everythings built up from a million tiny steps over years. You ever hit a point where the math just feels like a wall, or you keep banging away until it clicks?

Borzadaran - 13 days ago

What fascinates me the most is how setting a few parameters and constraints can lead to such realistic motion. It feels like a reminder that the world around us might just be a set of hidden models and forces — and our task is to discover and simulate them. Beautiful work!

stefanka - 13 days ago

The author created some Godot addons. Is this made with Godot too? Would be a nice to have for a free game engine

ninju - 13 days ago

Click on the word in front of "Cloth Type" to change it to a Grid for even a cooler interaction

1001directories - 13 days ago

Can someone update this so that I can blow in to my phone and make the cloth move?

brcmthrowaway - 13 days ago

Is this the new Ciechanowski

polotics - 13 days ago

Does this mean I can finally get a robot to fold my shirts in ten years?

faeyanpiraat - 13 days ago

Is there a simple way to do fluid (air) simulations like this?

sashank_1509 - 13 days ago

So beautiful, robotics simulation can benefit from something like this. The state of cloth simulation in robotics is still pretty pathetic