Real-time relativistic raytracing

Beyond Horizon

A Schwarzschild black hole, integrated one null geodesic per pixel, running live in this tab.

Mass
1.0 × 108 M☉
Integration
460 steps per ray
Disk model
Novikov–Thorne flux
Runtime
WebGL2, no server
Rendering now. Every frame is solved from scratch.

The only axis that matters

Distance from the singularity, in Schwarzschild radii

One number decides what a photon does here. Everything the image shows is a consequence of where light passed.

  1. 1.0

    Event horizon

    The last surface anything crosses in one direction. No ray that reaches it returns, so it is drawn as the only true black in the frame.

  2. 1.5

    Photon sphere

    Light can orbit at this radius. Rays that graze it wind around the hole and leave again, which is why a thin bright curve traces the shadow.

  3. 2.6

    Shadow, as seen

    The dark disc reads larger than the horizon it comes from. Gravity magnifies it to √27 / 2 radii for a distant observer.

  4. 3.0

    Innermost stable orbit

    Gas cannot hold a circular orbit any closer, so the accretion disk stops here. This is its hottest, fastest, brightest edge.

One frame, start to finish

What happens between your GPU and the image

There is no mesh, no texture of a black hole, and no pre-rendered footage. The pipeline below runs for every pixel, every frame.

  1. Cast

    Each pixel becomes one ray leaving the observer, aimed through the field of view at the geometry ahead.

  2. Integrate

    The ray is stepped through the Schwarzschild metric. Its path curves, so the integrator refines near the photon sphere where the curve is tightest.

  3. Cross

    Where a path cuts the disk plane, emission is added from the local flux, then shifted by relativistic beaming and gravitational redshift. The approaching limb runs blue and bright, the receding one red and dim.

  4. Escape, or do not

    Rays that clear the well sample the star field along their final direction, which is why the sky behind the hole appears bent. The rest end at the horizon.

  5. Grade

    Bloom is fed by the photon ring alone, then the frame goes through ACES tone mapping, a vignette and fine grain.

Once you are inside

Controls

The camera starts on a cinematic path. Any drag, scroll or pinch takes it back, from wherever the shot happened to be.

DragOrbit the hole
ScrollClose in or pull back
1Poster vantage, 24 Rs
2Edge on, 6° above the disk
3Polar, looking down the axis
4Close pass, 9 Rs
CCinematic path on or off
RAuto orbit
QCycle render profile
POpen the physics parameters
HHide the telemetry
MSound
Enter the simulation