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-...
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
This reminded me of this cool Polygon video examining the incredible cloth design in the game Elden Ring
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!
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?
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.
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!
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?
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!
The author created some Godot addons. Is this made with Godot too? Would be a nice to have for a free game engine
Click on the word in front of "Cloth Type" to change it to a Grid for even a cooler interaction
Can someone update this so that I can blow in to my phone and make the cloth move?
Is this the new Ciechanowski
Does this mean I can finally get a robot to fold my shirts in ten years?
Is there a simple way to do fluid (air) simulations like this?
So beautiful, robotics simulation can benefit from something like this. The state of cloth simulation in robotics is still pretty pathetic
Another one for the browser: https://oimo.io/works/cloth/