From 4c79c7ebea1c99c51d4ff8b895519c505c7049bb Mon Sep 17 00:00:00 2001 From: kavan Date: Wed, 6 Aug 2025 18:41:48 -0400 Subject: [PATCH] Completed Black Hole README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index be6ec2c..aae4faf 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,21 @@ I'm writing this as I'm beginning this project (hopefully I complete it ;D) here 4. [optional] try to make it run realtime ;D I hope it works :/ + + + +Edit: After completion of project - + +Thank you everyone for checking out the video, if you haven't it explains code in detail: https://www.youtube.com/watch?v=8-B6ryuBkCM + +Quickly to run the file you should install opengl (GLFW) and OpenGL wrangler GLEW: https://glew.sourceforge.net/ +I'm on windows and used msys2 for installation though. + +How the code works: + +for 2D: simple, just run 2D_lensing.cpp with the nessesary dependencies installed. + +for 3D: black_hole.cpp and geodesic.comp work together to run the simuation faster using GPU, essentially it sends over a UBO and geodesic.comp runs heavy calculations using that data. +should work with nessesary dependencies installed, however I have only run it on windows with my GPU so am not sure! + +LMK if you would like an in-depth explanation of how the code works aswell :)