r/GraphicsProgramming • • Oct 20 '26

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

Post image
26 Upvotes

5 comments sorted by

2

u/Altruistic-Bar848 Oct 21 '26

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 Oct 21 '26

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 Oct 21 '26

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

5

u/Waffalz Oct 22 '26

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