Skip to content

Neilk1021/N-Body-Simulation

Repository files navigation

N-Body-Simulation

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

Features

  • Custom Graphics engine using OpenGL.
  • Integrated .shader Compiler
  • Speed-dependent shading on each particle.
  • VAO, VBO, IBO, & Renderer Components

Prerequisites

  • To use download the application folder and run "OpenGLTest.exe".

  • Ensure you read the notes on usage before opening.

  • Built with: OpenGL GLFW GLEW GLM

Info

  • 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.

Getting Started

To run the simulation, follow these steps:

  1. Clone this repository. git clone https://github.com/Neilk1021/N-Body-Simulation.git

  2. Install the prerequisites mentioned above.

  3. Compile and run the code using the following commands.

  4. Right-click anywhere on the screen to spawn a mass.

  5. Left-click anywhere to drag the camera.

Program Structure

License

This project is licensed under the MIT License MIT

About

Gravity Simulation using OpenGl and C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages