Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algorithms for parallelization of cloth simulation system?

enter image description here

A simple cloth simulation can be done using the following algorithm:

def tick(dt):
    for p1 in particles:
        for bound in p.bounds:
            p2 = bound.particle
            p2.vel += p1.pos + bound.stable_pos - p2.pos
        p1.pos += p1.vel * dt

As a test, I've tried implementing it in JavaScript. Unfortunately, this scales poorly. The performance drops very fast with the number of particles and the limit is very low. Is there a way to parallelize this algorithm? Could you describe it as a simple pseudocode?

like image 693
MaiaVictor Avatar asked Mar 28 '13 12:03

MaiaVictor


1 Answers

Here is a detailed description of a parallel cloth simulation design: http://atarazanas.sci.uma.es/docs/tesisuma/16614860.pdf

like image 98
joel truher Avatar answered Sep 28 '22 00:09

joel truher