/galaxy_sim

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.

Primary LanguageJavaScriptMIT LicenseMIT

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.

Aperçu du projet

Demo

Live demo here: https://galaxym.ovh

Usage

  1. Start the development server: npm run dev
  2. 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 : Aperçu du projet

  • It can simulate a unique galaxy : Aperçu du projet

  • It can simulate the collision between two galaxies : Aperçu du projet