pouët.net

Go to bottom

Physics simulations in Demos

category: code [glöplog]
 
At some point in my studies I did some physics simulation and want to share some of my results and Source code:

Position Based Dynamics: https://bitbucket.org/wleuschner/pbd-simulation/src/master/
Position Based Fluids: https://bitbucket.org/wleuschner/positionbasedfluids/src/master/
Tessendorf Waves (FFT Waves): https://bitbucket.org/wleuschner/oceanwaves/src/master/

The Position Based Dynamics code runs on CPU with a Gauss-Seidel Solver, basically it does Softbodies. For paralellization you would need to graph color the vertex conection to make it usable with Gauss-Seidel, or the easier way use a Jacobi scheme.

The Position Based Fluids code has a CPU and GPU implementation.

The Tessendorf Waves implementation is on CPU with FFTW3, but it should not be too hard to make a FFT on the GPU.

Probably next year there will be also something from me doing smoke simulation on the GPU, but since I have to present it first, the Code will be available after that event.

You can use that code inspiration if you want to do something with physics. I am planing to do something with physics, but at the moment I am not feeling to do some hobbyist coding.

Would be interesting to see your approach of doing physics.
added on the 2020-11-26 01:22:49 by vl4d vl4d

login

Go to top