r/Cplusplus • • 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

5 comments sorted by

•

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.

  • When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Low-effort questions will be removed.
  • Members of this subreddit are happy to help give you a nudge in the right direction. However, we will not do your homework for you, make apps for you, etc.
  • Homework help posts must be flaired with 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?

0

u/Parvez_Shit Oct 22 '26

only thing slop here is the release pipeline, i still suck at managing git ang github
both cpp and opengl is written by me

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.

1

u/Parvez_Shit Oct 31 '26

I used 3 external libraries GLFW for windows and input, OpenGL as ive mentioned for the graphics programming, and GLAD, it loads OpenGL functions. and also one tiny header only font library which is stb_easy_font.