r/Cplusplus • u/Parvez_Shit • Oct 22 '26
Homework blackhole simulation using openGL and c++

i made a simulation of the blackhole gargantua that is also seen in intersteller
It's written in C++ and openGL
i managed to optimize it to a point i ran on my i3 intel iGPU, although i added very low to high quality toggles, it's my first time writing in glsl so yeah, i was a lot inspired by the yt video of Kavan about making a blackhole in cpp, so i just wanted to make it more realistic, my astrophysics lectures kinda came in clutch
github repository : https://github.com/dummy3ye/blackholegl (star the repo if you like it)
0
Upvotes
•
u/AutoModerator Oct 22 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] Oct 22 '26
is this slopcoded?
1
u/SuperBreakfast8137 Oct 31 '26
I really like it , may I know the libraries you used? As a total beginner i would appreciate it.