Turing Registry

What a Black Hole Looks Like, Ray Traced in Your Browser

The picture below is computed live in your browser, one light ray per pixel. A thin disk of gas circles a black hole that is not spinning, seen from 26 Schwarzschild radii away and six degrees above the disk's plane. The disk is flat. The hump of light arching over the black circle is the far side of that same flat disk, and the thinner arc underneath is its underside. Gravity bends the light from both toward the camera. Drag to look from another angle, and switch off the light bending to see what the scene would look like if light travelled in straight lines.

Drag to orbit; click, then scroll or pinch to move closer. The switches turn off light bending and Doppler beaming, hide the disk, and mark the photon sphere and the disk's inner edge.

Everything in the image follows from one equation and a few numbers. The unit of length here is the Schwarzschild radius, r_s = 2GM/c², the radius of the event horizon. For a black hole of the Sun's mass it is about 3 kilometres; for the one at the centre of the galaxy M87, the Event Horizon Telescope collaboration puts the mass at 6.5 billion Suns.

How light moves near a black hole

Far from the hole, light goes almost straight. Closer in, the bending grows quickly. At 1.5 r_s, the photon sphere, light can orbit the hole in a circle, though the orbit is unstable and any nudge sends the light inward or out to infinity. A ray aimed past the hole is captured if its impact parameter, the distance by which it would miss the centre if it travelled straight, is less than 3√3/2 r_s, about 2.598 r_s. Perlick and Tsupko's 2022 review of shadow calculations gives the same values in mass units: a photon sphere at 3m and a critical impact parameter of 3√3 m, where m = GM/c².

The second figure shows a parallel beam arriving from the left. Rays below the critical value end on the horizon, drawn in red. Rays just above it swing around the photon sphere and leave in strange directions, and rays further out are deflected less and less. The slider picks one ray and prints its exact deflection.

Each ray stays in the plane containing it and the beam axis; the bundle is one set of paths rotated around that axis. Set b to 2.62 to watch a ray loop the hole and come back.

The deflection gets large well before a ray is in danger. At b = 10 r_s, light is bent by 13.5 degrees. At b = 3 r_s it is bent by 98.5 degrees, almost a right angle. At b = 2.7 r_s, about 4% above the critical value, the bend is 167 degrees and the ray comes back roughly the way it came. Inside 2.598 r_s, no amount of bending gets it out.

That limit sets the size of the black patch in the first figure. Every ray traced backward from the camera that comes within the critical impact parameter ends on the horizon, so the dark region has an apparent radius of about 2.6 r_s, larger than the horizon by a factor of 2.6. The EHT papers call this the photon capture radius, √27 GM/c², and the bright ring they measured around M87's dark centre is 42 microarcseconds across.

Why the disk wraps over the top

Gas cannot orbit stably closer than 3 r_s (6GM/c²) from a non-spinning hole, so the disk in the figure starts there. Its far half sits behind the black hole. Light leaving the top face of that far half heads upward and away from the camera, passes over the hole, bends down toward the camera, and arrives looking as if it came from above the shadow. Light from the underside of the far half takes the same route under the hole. James, von Tunzelmann, Franklin and Thorne describe this in their 2015 paper on the black hole in Interstellar: "Light rays from the top face of the disk, which is actually behind the hole, pass up over the top of the hole and down to the camera due to gravitational light deflection."

Look closely at the edge of the shadow and there is a thin bright line. That is light that circled the hole once, or more than once, before escaping: further images of the whole disk, packed into a narrowing ring. Johnson and colleagues showed in 2020 that for a Schwarzschild hole each additional half-orbit demagnifies the image by a factor of e^π, about 23, so each sub-ring is a much narrower and fainter copy of the one outside it. At this resolution the simulation shows the first of them.

The first image of this kind was made in 1979 by Jean-Pierre Luminet, then at Paris-Meudon Observatory. He computed the light paths on an IBM 7040 fed with punch cards and, having no plotting software, drew the result by hand. In his own account he placed dots "with pen and Indian ink" on negative paper, more densely where the computation said the disk was brighter, then made a positive of the negative.

Why one side is brighter

In Luminet's drawing, as in the first figure here, one side of the disk is much brighter than the other. The gas near the inner edge orbits at about half the speed of light. On the side moving toward the camera its light is blueshifted and concentrated forward; on the receding side it is redshifted and spread out. Gravity adds a further redshift to everything, strongest near the inner edge. The observed brightness scales with the fourth power of the combined shift factor. In the simulation, at the inner edge seen almost edge-on, the factors come to about 1.4 on the approaching side and 0.5 on the receding side, which makes the bright side roughly 80 times brighter.

The film left this out on purpose. James and his co-authors write that they "discuss why Christopher Nolan and Paul Franklin chose to omit the Doppler shifts in the movie," and that a fully realistic disk, "exceedingly lopsided, with the hole's shadow barely discernible, was obviously unacceptable." Switching off Doppler beaming in the first figure gives roughly the film's symmetric look. The EHT image of M87 is lopsided in the same way; the collaboration's first paper says the ring's asymmetry "can be explained in terms of relativistic beaming of the emission from a plasma rotating close to the speed of light."

What the simulation leaves out

The black hole in the figures does not spin, and real ones almost certainly do. The EHT's 2022 analysis of Sagittarius A*, the black hole at the centre of our galaxy, disfavours non-spinning models. Spin flattens one side of the shadow, moves the inner edge of a disk orbiting with the spin closer to the hole, and changes the shape of the photon ring. The disk is infinitely thin, which real disks are not, and its temperature follows the simple thin-disk formula, flux proportional to r⁻³(1 − √(3/r)), without the full relativistic corrections. Its colours are blackbody approximations at a few thousand kelvin, chosen to look like hot gas rather than computed from a model of any real system; the EHT's images are made from radio waves 1.3 millimetres long, not visible light. The swirling texture is decoration, and the stars are procedural.

The light paths themselves are exact for orbit shape. Each pixel integrates d²x/dλ² = −(3/2)h²x/r⁵, where h is the ray's angular momentum per unit energy in these units. That equation reproduces the Schwarzschild photon orbits, which is why the critical value 2.598 and the photon sphere at 1.5 come out without being put in. The integration takes up to 520 steps per pixel, every frame, on the graphics card. The figure lowers its resolution on slow hardware to keep moving.

The deflection numbers printed by the second figure come from the exact integral for light bending in the Schwarzschild geometry, not from the drawn paths, checked against a separate computation of the same integral. The drawn paths match them to within a few degrees, except very close to the critical value, where small step errors grow. The figures make good instruments for intuition and poor ones for astronomy: any claim about a real black hole still has to come from telescope data, such as the EHT's 1.3 mm observations of M87 and Sagittarius A*.

Sources