Completed Black Hole README.md

This commit is contained in:
kavan 2025-08-06 18:41:48 -04:00 committed by GitHub
parent 0eb8f5f307
commit 4c79c7ebea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 :)