Shogo Oshima

Web Developer

Sketches
GitHub X

#161Black Hole Gravitational Lensing

A Gargantua-style black hole rendered by integrating null geodesics one ray at a time. Every view ray is stepped through the Schwarzschild field with the acceleration −1.5·h²·x⁄r⁵ (h the ray’s angular momentum), so light bends by ~1/impact-parameter: rays that graze the r=1.5 photon sphere whip around into an infinitely-thin photon ring, rays that fall inside the horizon are captured into a black shadow, and everything else is deflected before sampling a procedural star sphere — so the background stars smear into an Einstein ring hugging the shadow. An accretion disk lies in the equatorial plane; because the camera views it near edge-on, its far side is lensed up and over the top of the hole, and Doppler beaming makes the approaching edge brighter and blue-white while the receding edge dims to deep red. The camera auto-orbits on its own; hover to steer the orbit, scroll to pile on mass (widening shadow and ring), and press to intensify the disk. Distinct from #451: no flat UV distortion — this marches real bent geodesics through a 3D scene.