Black hole
You fall into a black hole. This page shows what you would see on the way down, drawn in dots.
I am not a physicist by training, but a computer scientist. That being said, growing up I always found extreme objects interesting, as I am sure many others do. With the assistance of agentic coding and with the help of Wikipedia, I was able to build this page which simulates falling into a black hole. The mathematics is from people much smarter than me, obviously.
Part of the goal here was to see how much I could simulate with as little computation resources as possible. There are many videos simulating (falling into a) black holes out there. I wanted to see if I could make a simulation that was accessible and where you can explore the region around a black hole in real time.
On a larger screen you can fly around with the keys. The black hole is much better there too.
Black hole
The number is the spin as a part of the most that a hole of this mass can have. At 0 the hole does not turn. Above 1 it would turn so fast that it had no horizon left, so no hole gets there: gas that falls in spins a hole up to about 0.998, where the slider ends.
A hole that spins drags space round with it.
Spin needs WebGPU, which this browser does not offer, or which is not chosen under Advanced. A spinning hole follows about a hundred thousand rays a frame; WebGL and the processor did it so slowly that the page hardly answered. This graphics card cannot draw a spinning hole.Horizon radius: . One M of time: .
The mass does not change the picture: at its own scale, every black hole looks the same. It changes the sizes, the times and the tides. A heavier hole is larger, so its ring takes longer to turn, and the fall takes longer.
Advanced
Physics
Switch an effect off to see what it does.
Picture
The red grid shows where the horizon lies, not how it looks. Hot colours draws the hottest gas and stars closer to white, and less bright. The gas orbits a little above and below the plane of the disk, by about this many degrees.
Distances
One Schwarzschild radius, rₛ, is the radius of the horizon: 2 M.
Quality
How it is drawn
Both draw the same picture. WebGPU is the default. Switch between them to see how the two differ.
Round a spinning hole the graphics card follows rays of light back from you, along each side of a grid round you, to find where each dot is seen. Fewer rays, or rays followed less often, are faster and less exact. The page lowers both by itself when frames are slow.
The graphics card draws with WebGPU where the browser has it, and with WebGL where it does not. Only WebGPU draws a spinning hole: with WebGL the page hardly answered. "How do WebGL and WebGPU differ?" in How this works says more.
Makes the bending of the light for the whole fall in advance: about MB, held in memory until you leave the page. It takes away the pauses of a fast fall; a frame costs what it did. Preparing: of tables, MB so far. Prepared: MB are held in memory, and gone when you leave the page.
The slider sets the dots of the ring round a hole of 10 suns. A heavier hole has more: as many again for each factor of ten in its mass.
Small dots stay square: the eye cannot tell them from round ones, and squares are cheaper to draw.
When the frames come too slowly at the start, the dots turn square first, then the stars and the dots of the ring go down by themselves.
- To the horizon
- Inside the horizon by
- Speed
- Space falls inward at
- Time to the singularity
Flight
Direction
Attitude
Engine
Acceleration
Power W
× Saturn V× world power× the Sun One turn Speed
On a larger screen the panel has the full controls of the rocket: the autopilot, where the nose points, and the thrust.
Simulation
Controls
- W S
- thrust forward, back
- A D
- left, right
- R F
- up, down
- Shift
- push harder
- Arrows or drag
- turn
- Q E
- roll
- C H O
- engine on or off, hover, orbit
- L
- nose at the hole
- M
- rocket or camera
- V
- hide all that is shown, or show it again
- Space
- pause
- Backspace
- start again
On a touch screen, drag to turn. On a tablet, hold the arrows to thrust.