A downloadable tool for Windows

Simulate beautiful particle collisions on your NVIDIA GPU!

This software uses OpenGL and CUDA to generate an interactive particle simulation. Simulate water, slime, lava, and more!

The collision handling algorithm is a simple algorithm which checks all particle pairs to see if they are colliding, giving it a runtime of O(N^2). But by the power of modern GPUs such as the NVIDIA RTX 3080, you should be able to run the simulation at 144fps with 10,000 particles (~100,000,000 collision checks every 7 milliseconds!)

This is a build of cuda-particles (https://github.com/Fuerdinger/cuda-particles), an open-source piece of software by Daniel Fuerlinger. See the README.md file to learn more about the software's licensing.

Visit my website to see more projects: https://www.danielfoobar.com

If you run the program and see a black screen, this is because you haven't spawned any particles yet. Use the middle mouse button to spawn particles.

Controls:

   Left Mouse Button   : explode

   Right Mouse Button  : suction

   Middle Mouse Button : spawn


Download

Download
cuda-particles.zip 1 MB

Install instructions

1. Download cuda-particles.zip

2. Right click the file and extract the contents somewhere.

3. Open the unzipped folder and double click "cuda-particles.exe"

4. If the program doesn't start running within 5 seconds, then try double clicking it again. If this doesn't work after a couple tries, then your computer likely doesn't support OpenGL 4.3 and you will not be able to run the program.

5. The screen should be initially black, because it starts with 0 particles. Spawn some particles using the middle mouse button.

6. To try different simulations, use your mouse to drag any of the .json files onto the cuda-particles.exe file in File Explorer. For example, if you drag "lava.json" on top of cuda-particles.exe, you will run a lava simulation.

7. You can open any of the config files to customize their behavior to your liking.

Leave a comment

Log in with itch.io to leave a comment.