feat(viewer): the black hole's light bent as a real one's #53

Merged
dawid merged 1 commit from black-hole into main 2026-11-18 13:40:09 +00:00
Owner

The black hole was a black ball, a ring and a cloud of dots. Now it's drawn as light would
show it: a shader traces each pixel's ray from the camera past the hole, bent by its gravity
(Schwarzschild photon orbits, integrated in steps), until it falls in or crosses the disk.

  • Shadow and ring: a black shadow about 2.6 Schwarzschild radii across, with a thin bright
    ring at its edge (light that went round once more).
  • Lensed disk: the disk's far side shows bent over and under the shadow, as in the familiar
    pictures; the disk is tilted in the shader so the usual view sees it nearly edge-on.
  • Doppler and gravity: the side coming toward the camera is brighter and bluer; the gas is
    hotter inside, redder out, streaked, turning at Kepler's pace.
  • Tap: the star it's fed is pulled into a stream as it spirals in, its light bent as well,
    and the disk flares.

Up to 220 steps per pixel, only where the model covers the screen. Worth a look on a phone for
the frame rate.

Picture and docs/user/models.md updated; viewer tests pass (22 of 22).

The black hole was a black ball, a ring and a cloud of dots. Now it's drawn as light would show it: a shader traces each pixel's ray from the camera past the hole, bent by its gravity (Schwarzschild photon orbits, integrated in steps), until it falls in or crosses the disk. - **Shadow and ring:** a black shadow about 2.6 Schwarzschild radii across, with a thin bright ring at its edge (light that went round once more). - **Lensed disk:** the disk's far side shows bent over and under the shadow, as in the familiar pictures; the disk is tilted in the shader so the usual view sees it nearly edge-on. - **Doppler and gravity:** the side coming toward the camera is brighter and bluer; the gas is hotter inside, redder out, streaked, turning at Kepler's pace. - **Tap:** the star it's fed is pulled into a stream as it spirals in, its light bent as well, and the disk flares. Up to 220 steps per pixel, only where the model covers the screen. Worth a look on a phone for the frame rate. Picture and `docs/user/models.md` updated; viewer tests pass (22 of 22).
feat(viewer): the black hole's light bent as a real one's
All checks were successful
CI / checks (pull_request) Successful in 35s
CI / e2e (pull_request) Successful in 1m58s
CI / relay (pull_request) Successful in 1m28s
CI / image (pull_request) Successful in 56s
CI / android (pull_request) Successful in 2m6s
CI / watch (pull_request) Successful in 2m54s
bc1ef60a25
A shader traces each pixel's ray back past the hole, bent by its gravity, until it falls in or
crosses the thin disk: the disk's far side shows over and under the shadow, a thin ring at its
edge; the side coming toward the camera brighter and bluer, the gas hotter inside, streaked and
turning at Kepler's pace. The star a tap feeds it is pulled into a stream, its light bent too.
dawid merged commit df554aeb08 into main 2026-11-18 13:40:09 +00:00
dawid deleted branch black-hole 2026-11-18 13:40:13 +00:00
Sign in to join this conversation.
No description provided.