Live data from Hacker News

Cloth Simulation

cloth.mikail-khan.com

31–40 of 42 posts

Re: Cloth Simulation

#32

I spent entirely too much time finding out exactly how much "cloth" could be supported by two "strings."

I'm going to assume it is "more than you think; not as much as you'd like" because I don't have the time to burn this morning to replicate your research.

Re: Cloth Simulation

#35

I was curious and was able to build something very similar quickly using Gemini 3 via Google AI Studio. Never would have imagined a few years ago how easy some of this has become to prototype.

The 'Build' feature in AI studio has been pretty incredible for a few use cases I've thrown at it.

Re: Cloth Simulation

#37
post #18

First, kudos on this. Really cool to play with. Reminds me of a great video not long ago that went over the main ideas behind weaving and knitting. Feels like you almost certainly have to take some of those ideas in mind when doing a simulation like this. Would be curious to read a breakdown of how this was made and how it incorporates the concepts that go into different fabric.

There's actually really no knowledge of cloth involved, it's just a bunch of spring constraints: https://github.com/mkhan45/clothsim

AFAIK more advanced realism-focused cloth sims are still mostly bundles of spring constraints, and most fabric behaviors are encoded as different spring tolerances, forces, and friction.

Cloth self-collision and friction seem to be a very difficult problem in which progress has been made recently: https://graphics.cs.utah.edu/research/projects/ogc/Offset_Ge...

Re: Cloth Simulation

#40
Nice first approximation. The cloth has no momentum, a piece of cloth that clearly would swing down, past vertical, and then swing up just damps down and stops at vertical.

Also the falling pieces don't accelerate downward, which looks unnatural

Post reply on HN