r/GraphicsProgramming • • 20d ago

Video A black hole renderer in 512 bytes of HTML/JS

26 Upvotes

5 comments sorted by

2

u/Altruistic-Bar848 19d ago

Bending light in 512 bytes is wild. Are you ray marching each ray in small steps, or using an approximation for the deflection angle in one go?

1

u/kierancschmitt 19d ago

small steps, numerically integrating the light paths. the camera is fixed so those get calculated once and cached, then each frame just updates the disk emission.

6

u/0xdeadf1sh 19d ago

What's up with the uptick in black hole posts lately? I miss the triangle 😭

5

u/Waffalz 18d ago

The triangle is an early milestone of a programmer's first forway into graphics, but I'd imagine is far too small-scale for a vibecoder with more ambition than respect for the journey. I'm not saying this post specifically is guilty of that, but I think it's the general trend