I forgot to upload my last particle sim, failed hardrive lead to missing works. So I must completely restart This is a complete work in progress and will be appended to, if not completely modified after the inital simulation is completed
This is an N-body particle sim that will be using cpp and native webgpu bindings.
The last particle sim I implemented was single threaded and of a single type of particle, I am planning on using this as a base for a fluid simulation for a lava lamp sim. I choose webgpu in particular, so that I may reuse that code to export the lava lamp simulation to the interwebs. I can then use that lava lamp as a background/screen saver.
- [x]AABB trees
- [x]Particle single threading
- [x]Particle multithreading
- [x]Webgpu particle display
- [x]Port particle physics to webgpu compute shader
- []Heat??
- []Density??
- []Surface tension??
- []Multiple particles for different fluids
git clone --depth 1 https://github.com/google/dawn.git # if dawn/ dir is missing
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)First build is slow because of Dawn compilation. Subsequent builds are fast.
./ParticleSim