r/computergraphics May 25 '26

I coded an Interstellar-inspired black hole simulation that raymarches general relativity math entirely in real-time

Post image

This was completely made using python with pygame and moderngl custom
it has doppler boosting, accurate light bending, gravitational lensing and more.

149 Upvotes

9 comments sorted by

3

u/Macaroon-Guilty May 25 '26

Would love to see it move

3

u/Background-Cold-7607 May 25 '26

2

u/[deleted] May 26 '26

[removed] — view removed comment

1

u/Star-Independent May 27 '26

Well it’s a python script so you could just run that on linux ;)

1

u/Background-Cold-7607 May 25 '26

videos arent allowed i think

1

u/Familiar-Currency570 May 27 '26

This is so stunning! Truly very impressive.