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

Earlier comments
drivingmenuts1 reply#
Good work! Gimmer two, chief!

Two black holes at once?!?!?? Yeah, I'm crazy like that.

JsonDemWitOster#
If you're not careful sooner than later you will have just one black hole or, worse, no black hole! In the latter case your neighbor down the street might end up with one.

---
Reminds me of my favorite Spongebob Squarepants gag. Spongebob and Patrick Starfish were tasked to paint the house of Mr. Krabs, Spongebob's exacting boss at the Krusty Krab. Because of course this is a cartoon, they have to paint with all the furniture and bric-a-bracs still in the room. They are just somehow expected to paint around stuff.
Because Patrick is dumb as a starfish (go figure) they end up with a big paint bubble threatening to burst and cover _everything_ with a layer of paint.
Spongebob (panicked): Eeeek! Patrick what can be worse than one big paint bubble in Mr. Krabs' living room?
Patrick: laughs oooh I know...
He proceeds to blow another big paint bubble
Patrick: two big paint bubbles!

aplavin1 reply#
Could you please share a screenshot so that I investigate what actually happens? I tested on a few different devices, but far from anything extensive.
aplavin2 replies#
Hmmm I think I see what's happening here. Basically, all devices I tested (laptops/phones/tablets) seem to have small pixel size, and to save on compute power for weaker devices I decided to render with half as many pixels as the screen has, letting the browser upscale the result. In your case, pixels are probably quite a bit larger, and half-res rendering has these prominent artifacts.

Can you try if increasing "render scale" in params->display helps?

Continue this thread — 2 replies

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!

charcircuit1 reply#
Wouldn't physically accurate turn your entire screen black? I would expect it to suck in way way more light than the example shows.
aplavin1 reply#
If this app turns the entire screen black, this probably means WebGL is not supported :)

Black holes don't really "suck in" light. Whatever falls onto the black hole itself gets deleted, of course – but otherwise, it bends light rays towards its center. That's why the app shows distortion + black circle in the in middle in the camera mode.

charcircuit2 replies#
The event horizon for even the smallest black hole is in the scale of kilometers. If the user is a meter away from the black hole light isn't going to move away from the center of it to your camera.
aplavin#
Now I think I see what you meant. There actually are no upper/lower limits on the black hole size (in classical physics – ignoring quantum effects). Compressing the Earth to ~1 cm in size would give you a black hole, and its event horizon size would be ~1 cm, not kilometers. And even black holes this small are stable, according to our physics knowledge.
defrost#
This is recent conjecture?

I grew up with micro black holes being a possibility, with conjectures such as primordial black hole evaporating down to Planck dimension stability, etc.

Load more comments