galaxy_sim
galaxy_sim copied to clipboard
This project is a simulation of thousands of particles that reproduce gravity to simulate galaxies. It uses ThreeJS for 3D rendering and shaders to calculate the movement of particles in real-time.
Galaxy Simulation with ThreeJS and Shaders
This project is a simulation of thousands of particles that reproduce gravity to simulate galaxies. It uses ThreeJS for 3D rendering and shaders to calculate the movement of particles in real-time.
Demo
Live demo here: https://galaxym.ovh
Usage
- Start the development server:
npm run dev
- Open your browser and navigate to
http://127.0.0.1:5174/
Features
-
Simulation of thousands of particles that reproduce gravity to simulate galaxies
-
A menu to change the settings of the simulation (like the graphics settings, the number of particles, the interaction rate...)
-
A camera controled with the mouse and wheel to zoom-in/zoom-out
-
It can simulate an entire expanding universe :
-
It can simulate a unique galaxy :
-
It can simulate the collision between two galaxies :