A simple Gravity Simulation made using OpenGL and C++.

- Custom Graphics engine using OpenGL.
- Integrated .shader Compiler
- Speed-dependent shading on each particle.
- VAO, VBO, IBO, & Renderer Components
-
To use download the application folder and run "OpenGLTest.exe".
-
Ensure you read the notes on usage before opening.
- Built using openGL. Includes custom shader compiler to convert .shader files into vertex and fragment shaders
- Uses basic linear algebra to move individual bodies across the rendered screen.
- Uses custom vector class to handle forces and speed.
To run the simulation, follow these steps:
-
Clone this repository. git clone https://github.com/Neilk1021/N-Body-Simulation.git
-
Install the prerequisites mentioned above.
-
Compile and run the code using the following commands.
-
Right-click anywhere on the screen to spawn a mass.
-
Left-click anywhere to drag the camera.
- I used a notebook to explain the function and structure of the Graphics Engine if you wish to edit it. https://github.com/Neilk1021/N-Body-Simulation/blob/main/how%20everything%20works.pdf
This project is licensed under the MIT License MIT