Cloth Simulation

Blitz3D Forums/Blitz3D Programming/Cloth Simulation

anyone know how to code for cloth simulation like u can see in most latest game (especially Prince of Persia)?

There's cloth simulation in Prince of Persia? Damn, I really have to check that game out.

But, er, you refer to "most" new games. What games have cloth simulation? While it has been a little while since I grabbed a new game, I've never seen cloth simulation in a game. Unless someone knows a super optimzation trick, the minor visual improvement of cloth simulation is not worth the CPU hit.

ninja turtles...
onimusha 3...
Shinobi...
more...

I'd use Tokamak to build a sort of 'linked grid' and match them to each vertex on the cloth. You could then set the 'stiffness' of the cloth by limiting the joints etc.

Have a look here: http://freespace.virgin.net/hugo.elias/models/m_cloth.htm

It's pretty simple!

fredborg: thanks so much for that tutorial! :) you got any other physics tutorials? id like to try verlet simulation - seems simple but im just curious what points i should take into mind before i start work on it.

Nice verlet tut -> http://www.ioi.dk/Homepages/thomasj/publications/gdc2001.htm

This is the one that I, miracle, andreas_blixt, and probably others used to make their verlet systems.

Hugo elias also has alot of other interesting tutorials:

http://freespace.virgin.net/hugo.elias/

Check out models. that's what you are probably lokkin for.

Well here an example of a verlet system, i can't remember who did it(it doesn't say anywhere in the source) or where i downloaded it, so here you go: http://www.somethingelsesoft.com/verlet3d-1.15.zip