This repository contains the source code of an n-body type simulation using GPU acceleration. It is able to simulate galaxies, galaxy collisions and expanding universes. It has a menu to change the settings and an interactive camera.
--recurse-submodules
when cloning
Here is a video explaining how the algorithm works : Simuler 1 000 000 de Galaxies 🌌.
-
A menu to change the settings of the simulation
-
A camera that you can control with your mouse and your wheel
-
It can simulate a unique galaxy :
- It can also simulate a collision between two galaxies :
- And it can simulate an entire expanding universe :
This repository is based on my Graphics skeleton project, so go see its install part first.
Then, you will also need the OpenCL library.
If you just want to test the program without editing the source code, go see the Releases.
- Angel Uriot : Creator of the project.