Skip to content

squidward404/Black-Hole_Simulation_Using_Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Black Hole Simulation Using C++

Minimal OpenGL simulation of a black hole.

A black hole is an object with gravity so strong that nothing, not even light, can escape once it crosses the event horizon.

Black hole preview

Requirements

  • CMake 3.10 or newer
  • A C++17 compiler
  • OpenGL
  • GLFW3
  • GLEW
  • GLM

On Ubuntu or Debian-based systems, you can install the common dependencies with:

sudo apt install build-essential cmake libglfw3-dev libglew-dev libglm-dev

Build

cmake -S . -B build
cmake --build build
./build/simulator

About

Black holes curve the fabric of spacetime into an infinitely deep depression.The geometry of the spacetime fabric can be visualized by tracing the paths of light rays.In this simulation,I'll use light rays and physics to try and demonstrate it.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors