Skip to content

HopeOrb/PlanetaryOrbitSimViaWebGL2

Repository files navigation

Planetary Orbit Simulation via WebGL2

Three.js project that simulates the orbits of planets around a star, adjusting the mass and distance to see how these variables affect orbital paths, exploring Kepler's laws.

About

Our term project for 2024 Fall Hacettepe course BBM412 – Computer Graphics.

Screenshot

Play the game on your browser from here.
Watch the trailer from here.


How to Run Locally

Install (make ready for start):

  • CD to the project directory (where package.json is located in)
  • (project dir)$ npm install
    • A folder named node_modules will appear (if there is not). NPM will scan package.json files, from the project's and recursively all the dependencies', download them and populate that folder with the dependencies. The page and scripts refer to the modules (such as Three.js) that are inside this folder, so gathering the dependencies is essential.
    • Same logic as Apache Maven — It also identifies packages of the project as such files (pom.xml) which declares name/version etc. identification stuff and dependencies.

Start:

  • Do either:
    • (project dir)$ npm run dev
      • This will make the vite, a tiny server program serving the files, launch and start listening at the port 5173 (just like Jupyter notebook).
    • Open the project in NetBeans and hit start.
      • A lightweight file server by NetBeans (which can be configured from Project Settings > Run) will start listening at the port 8383.
  • Then:

About

Three.js project that simulates the orbits of planets around a star, adjusting the mass and distance to see how these variables affect orbital paths, exploring Kepler's laws.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors