Lurker News
We have a black hole at home — with actual relativistic physics, live in your browser.

I'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 19 of 36

tantalor1 reply#
Can you post a demo video of the AR/VR with the effects?

Apparently it is not working correctly on my device, so it would be nice to see the intended effect.

aplavin1 reply#
Sure, see https://blackhole.plav.in/ar_example.mp4 for an example. Should work on most Android phones, even old ones (mine is 7 years), the Chrome browser is generally best for AR.

Interestingly, Firefox seems to be better for the camera mode – for me, Chrome only gives one camera feed at a time, while Firefox allows both front & rear cameras.
And AR + camera warping don't work together, unfortunately – browser API limitations.

tantalor1 reply#
Okay either I'm stupid or not seeing the "relativistic effects".

This looks the same as on my device.
I was expecting some distortion or bending of the background?

aplavin#
> AR + camera warping don't work together, unfortunately – browser API limitations.

So, you either choose AR and see the simulated emission from around the black hole, properly warped/boosted – but the camera feed remains flat, the browser itself does the overlaying.
Or, alternatively, choose the camera mode, and see the warping of your camera feed.
Not both at once!