frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
61•aplavin•3d ago
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

hahahaa•1h ago
First time I have AR'd. That was cool. How does it keep the hole in the same point in space as I walk about?
dmd•1h ago
The app doesn't have to do this itself, phones do it for you. ARCore on Android, ARKit on iOS.
hahahaa•50m ago
Oh yeah I mean how do the phones do that. I guess it uses dead reckoning with visual cues and some machine learning.
dmd•30m ago
"SLAM" is the term to google.
boothby•29m ago
Your phone has an accelerometer, which can be integrated twice to result in slightly accurate dead reckoning; just keep accumulating 3-vectors with every time-slice. That's a helluva lot easier than visual cues.
addaon•20m ago
"slightly accurate" is the correct description, though -- dead reckoning on a cell-phone-class IMU accumulates drift too quickly to keep objects anchored in space for more than seconds at a time. You need something (visual odometry, SLAM) that provides long-term stability, even if it has short-term noise or poor availability, to fuse in.
forsalebypwner•4m ago
on iPhone 12 Pro Max and later (maybe only on Pros, I forget) they have a LiDAR sensor built in, allowing for impressively accurate 3D scans of objects with a free app like Scaniverse. But yeah I think AR was the intention there
Waterluvian•1h ago
It’s fascinating how things that were inverted seem to become corrected when I point this at the pre-existing black hole in my room.
api•55m ago
The singularity is near.
aizk•45m ago
Very cool, and very mind bending. Very faithful to the Event Horizon Telescope rendering. A decade ago I got really into black holes for like a few months, and I read Kip Thorne's book called "The Science of Interstellar", talking all about black hole simulations. Have you read it? I wonder how the simulation tech has evolved, as 10 years is a lot. I do wonder if you do like, size estimates of a black hole in my room. Suppose I have a black hole in my room, I'd be curious to know what the mass of that is, like a fun fact, tidbit somewhere.

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
63•aplavin•3d ago•11 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
112•zeldone•11h ago•22 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
158•pompomsheep•14h ago•52 comments

Show HN: Port Zero – how I learned to stop worrying and love PORT=0

https://portzero.net/
11•octopoc•2h ago•4 comments

Show HN: A 60-line PreToolUse hook that stops Claude Code from editing your .env

https://github.com/avenna01-ceo/claude-code-survival-kr/tree/main/guard
3•gaiinmaster•2h ago•0 comments

Show HN: Aqua UI for the Web

https://github.com/willmeyers/aqua-ui
2•willmeyers•2h ago•0 comments

Show HN: Discrete6502 – one thing led to another

https://epatel.github.io/discrete6502/
8•epatel99•4h ago•2 comments

Show HN: Infinite Jigsaw Game

https://infinitejigsaw.com
21•impostervt•6h ago•19 comments

Show HN: RelativeDB – OSS query engine for relational foundation models

https://github.com/RelativeDB/RelQL
3•scottcodie•2h ago•0 comments

Show HN: Simple HIIT timer for efficient workouts

https://www.hiitmeup.fit/
3•takee•2h ago•0 comments

Show HN: Turn an image into a 3D blockbench model

https://github.com/orca-gamedev/img2blockbench
3•ekduman•2h ago•0 comments

Show HN: Blind-box commerce made easy

https://chancey.run
2•13001r•2h ago•0 comments

Show HN: I mapped every US golf course

https://golfcoursebrowser.com/
202•rickmf•1d ago•149 comments

Show HN: Lowkey Studio – Shader Powered visual effects compositor in the Browser

https://lowkeyviewer.com/studio/
2•tracerbulletx•3h ago•0 comments

Show HN: Paper – A Journaling CLI for Developers

https://paper.rewrlution.com
2•dmsehuang•3h ago•0 comments

Show HN: Anyclaude-SDK – Claude Code-Style SDK for OpenAI/Anthropic Endpoints

https://github.com/pipilot-dev/anyclaude-sdk
2•hansade•4h ago•0 comments

Show HN: The Jac Programming Language

https://jaclang.org/
6•marsninja•4h ago•6 comments

Show HN: GG Translator – Turn gaming shit talk into friendly phrases

https://ggtranslator.com
2•mcadenhe•4h ago•0 comments

Show HN: LuaJIT with Native SIMD

https://github.com/TheLuaOSProject/LuaJITMT/releases/tag/1.0.0-simd
2•frityet•4h ago•1 comments

Show HN: A browser-based video editor that renders videos directly with FFmpeg

https://github.com/thiagoalbrecht/weave
15•thiagoas•12h ago•3 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

474•adam_rida•3d ago•222 comments

Show HN: Writemark, a dependency free web component for inline Markdown editing

52•_boffin_•1d ago•23 comments

Show HN: Wmux – A workspace multiplexer for AI agents

https://github.com/openwong2kim/wmux
11•wong2kim•15h ago•0 comments

Show HN: Managing on-premise servers without Kubernetes

https://github.com/ricardoborges/Nautilus
16•r2ob•13h ago•11 comments

Show HN: Brolly, a plain-text weather forecast site

https://brolly.sh/forecast/RWFP2qW8
221•jsax•1d ago•81 comments

Show HN: I made some transistor animations

https://brandonli.net/semisim/animations
205•stunningllama•2d ago•28 comments

Show HN: Introducing Odella [video]

https://www.youtube.com/watch?v=ZdMyH3sd62I
3•jordanhparker6•2h ago•0 comments

Show HN: SpinWin – A macOS menu bar app to visually rotate or spin any window

https://github.com/alokdhir/spinwin
36•dbm5•1d ago•14 comments

Show HN: QueryTuner – SQL diagnostics across 5 DBs, no database connection

https://www.querytuner.com/
7•autoshiftops•14h ago•0 comments

Show HN: Rucksack alpha CLI that pins a Mac to a hotspot and holds a sleep lease

https://github.com/noahnawara/rucksack
3•thirdface•8h ago•0 comments