Show HN: Physically accurate black hole you can put in your room (opens in a new tab)blackhole.plav.in
477 pointsI'm Sasha (Alexander) Plavin, an astrophysicist at Harvard's Black Hole Initiative studying quasars and black hole environments. I work with raytracing/radiative transfer simulations professionally, and wanted to make one anyone can play with — so I built this app.
Put the black hole onto your screen (any browser), or directly into your room with AR or VR (requires WebXR, for example Chrome on Android, or any VR headset). When looking around, pay attention to unintuitive relativistic effects: rays bending around the black hole, and special relativistic "Doppler boosting" changing brightness depending on the viewing angle — zoom out to see the fast jet where the latter effect is especially pronounced.
Faint markers show where other viewers are standing right now.
Alternatively, put the black hole in front of your camera and watch it lens
your actual surroundings. Light winds around the hole, so you see both what's in front of you and what's behind you at once (when the device and browser allow both camera feeds). The closer to the black hole, the stronger the bending — and the longer the light-travel delay: wave at it and watch the changes propagate inward.
(unfortunately, WebXR restrictions make AR passthrough and the camera feed mutually exclusive)
No signup, basic features work on every device, no data uploaded — the camera feed never leaves your device. Source code: https://github.com/aplavin/blackhole.plav.in.
Enjoy having a black hole in your room, or use it for education/outreach — any questions, feedback, or suggestions are welcome!
Comments (193) 36 threads
Show all comments
Showing thread 5 of 36
Or could the brightness shown be a result of it being Kerr vs Schwarzschild?
Kerr vs Schwarzschild (static vs rotating black holes) is a much smaller effect visually – that's why it is so hard for us to measure black hole spins (= how fast they are rotating) observationally, even with the Event Horizon Telescope.
Very cool demo! Thanks for sharing!
(For reference, my experience rendering black holes is recreating Luminet's rendering from the late 70s: https://www.ioccc.org/2025/cesmoak/index.html )
Fortran punchcard style to render black holes?! That's really going full circle to the origins, I really enjoyed reading about Luminet's work some time ago.
Continue this thread — 4 replies
1. The relative brightness of different parts of the image
2. The colouring
3. The general relativistic effects of a black hole, other than the most basic disk warping effect
4. The relative colouring or brightness change from doppler
When you make a post about a physically accurate rendering, people usually expect it to be a decent representation of the underlying object in *some* capacity
There are of course constraints in terms of what the human eye can see and what we can portray - eg wanting to present alternative radio frequencies, highlighting different aspects of a black hole etc, which is why we make *specific* brightness and colouring map choices. That isn't a justification for making *arbitrary* choices in brightness and colouring map choices, because otherwise you could do sin(brightness * 1000) and call it physically accurate. In fact any output is an arbitrary colourmapping of a physically accurate black hole rasterisation under this definition, including a pure white square
Colour mapping and scale absolutely is very very much not an arbitrary choice, I linked elsewhere the event horizon telescope talking about this specific issue. People go to great lengths to put the work in to make physically accurate renderings, to convey accurately what you're looking at. I'm surprised to see you say that its considered arbitrary for renderings
There's a lot of room for doing visualisations to show off a specific element of a black hole, but the output here is near completely free of any physically accurate content. This is one of the more basic simulations I've seen - and that's before getting into the fact that it contains coding errors
I'll assume this is a good faith question, hope it was intended like one. I view strong light bending as the key distinguishing property of a black hole, and something we are fairly certain about. This is reproduced accurately in all modes, up to the fundamental technical constraints of the browser environment. Gravitational redshift is another one, and it's also reflected.
Things like the precise matter configuration in the disk (and correspondingly its radial brightness profile) are much less well known, and are less fundamental for black holes as objects. This part is represented in a simplified way – thin disk, with a reasonable-shape analytic function defining radial emissivity distribution.
As for colormapping: I follow the by-far-dominant approach in scientific literature, where color mapping choice is completely unrelated to physical accuracy of the plotted observations or simulations. Having a preference for different color schemes is a matter of taste; suggesting a linear intensity->pixel mapping is a reasonable feature request, but far from a bug or inaccuracy.
Continue this thread — 3 replies