SINGULARITY

What is this?

A real-time simulation of a supermassive black hole with an accretion disk, relativistic jets, and gravitational lensing. Everything you see is computed using actual physics — General Relativity, Schwarzschild spacetime geometry, and blackbody radiation.

Every galaxy is believed to harbor a supermassive black hole at its center, ranging from millions to billions of solar masses. When gas, dust, or even whole stars fall close enough, they form a swirling accretion disk that heats to millions of degrees — making the black hole visible across the universe despite the hole itself emitting no light.

Built entirely in a single HTML file with Three.js and WebGL shaders. No external assets, no server — everything runs in your browser.

Accretion Disk

The glowing ring of material orbiting the black hole. In reality, this is superheated gas (mostly hydrogen and helium) spiraling inward, heated by friction and compression to millions of degrees.

Event Horizon & Gravitational Lensing

The event horizon is the boundary beyond which nothing — not even light — can escape. The black sphere you see is actually the black hole shadow, which appears larger than the event horizon because light passing nearby gets bent inward.

This uses the same fundamental physics as the rendering of Gargantua in Interstellar (Thorne & James, 2015) and Eric Bruneton's real-time black hole shader, though simplified for 60fps browser performance.

Relativistic Jets

Twin beams of plasma ejected along the black hole's rotation axis at velocities approaching the speed of light. Not all accreting black holes produce jets — the mechanism involves magnetic field lines twisted by the spinning accretion disk (the Blandford–Znajek process) or by the spinning black hole itself.

Matter Infall

12 clumps of gas continuously spiral inward from the outer disk, accelerating as they fall deeper into the gravity well. They leave bright trails that fade as they cross the event horizon.

In reality, matter doesn't fall smoothly — turbulence, magnetic reconnection events, and instabilities create clumps and flares. The inner accretion flow is chaotic and variable, which is why real black holes "flicker" in brightness on timescales of minutes to hours.

Hawking Radiation

The faint flickering particles at the event horizon represent Hawking radiation — one of the most profound predictions in theoretical physics, proposed by Stephen Hawking in 1974.

How it works: Quantum mechanics says that even "empty" vacuum is actually seething with virtual particle-antiparticle pairs that pop into existence and annihilate each other almost instantly. Near the event horizon, something extraordinary happens: one particle can fall into the black hole while the other escapes. The escaping particle carries away real energy, and the black hole loses a tiny amount of mass.

In the simulation: 200 particles spawn just outside the event horizon, drift outward (the escaping particle), and fade with quantum-like flickering. The spawn rate increases when the horizon is smaller (higher Hawking temperature). Color shifts bluer for smaller horizons (hotter radiation). The effect is deliberately subtle — in reality, Hawking radiation from astrophysical black holes is undetectably faint, dwarfed by the cosmic microwave background by a factor of trillions.

Hawking radiation has never been directly observed, but analog experiments using sonic black holes in Bose-Einstein condensates have confirmed the theoretical mechanism.

Tidal Disruption Event (TDE)

Press T or Double-click to trigger one.

A TDE is one of the most violent events in the universe. It occurs when a star wanders too close to a supermassive black hole — typically through gravitational interactions with other stars in the dense galactic core.

What happens physically:

Observational history:

In the simulation: 2,500 particles start clustered as a compact star, fall on a trajectory with angular momentum, get tidally stretched at the tidal radius (force ∝ r−3.5), and form an orbiting debris stream. Color evolves from white-blue (intact star) through yellow-white (disruption) to orange-red (cooling debris). Particles that reach r < 0.5 rs are absorbed. Sound design includes a rising pitch during approach and a filtered noise burst at disruption.

Time Dilation (dτ/dt)

In General Relativity, time flows slower in stronger gravitational fields. This isn't an illusion — it's a real, measurable effect. The dτ/dt value (proper time / coordinate time) shows how fast a local clock ticks compared to a distant observer's clock.

The formula is: dτ/dt = √(1 − rs/r)

The blinking dots (●/○) next to each row tick at rates proportional to their time dilation factor. The distant observer blinks steadily. The ISCO dot blinks noticeably slower. The event horizon dot is essentially frozen. Zoom in and watch your camera dot slow down.

This same effect operates on Earth, just far weaker. GPS satellites orbit at ~20,200 km altitude where gravity is weaker — their clocks tick ~38 microseconds faster per day than ground clocks. Without relativistic corrections, GPS would drift by ~10 km per day.

Wavelength Modes

Real astronomers observe black holes across the electromagnetic spectrum. Each wavelength reveals different physics:

Gravitational Waves

Ripples in the fabric of spacetime itself, predicted by Einstein in 1916 and directly detected by LIGO in 2015 — one of the greatest experimental achievements in physics history.

What they are: When massive objects accelerate — black holes merging, neutron stars colliding, stars being tidally disrupted — they send out ripples that literally stretch and compress space as they pass. These waves travel at the speed of light and carry energy away from the source.

In the simulation: Press Space or trigger a TDE to emit gravitational wave rings. You'll see expanding distortion ripples in the screen (the composite shader warps the image) and the accretion disk particles physically wobble as the wave passes through. The disk oscillation shows how gravitational waves stretch and compress the matter they pass through. Up to 4 simultaneous waves with sub-bass sound (12-25 Hz rumble).

Particle Collisions & Shockwaves

The accretion disk is not a calm, smooth flow — it's a violent, turbulent environment. When streams of matter collide with the disk, they produce shockwaves and hot spots that ripple outward.

In real accretion disks, shocks are responsible for much of the observed X-ray variability — the rapid flickering seen in X-ray binaries comes from turbulent hot spots orbiting and colliding in the inner disk.

Visual Effects

Controls

The Physics — Key Equations

This simulation uses the Schwarzschild metric — the exact solution to Einstein's field equations for a non-rotating, uncharged black hole, published by Karl Schwarzschild in 1916, just months after Einstein published General Relativity.

What is Black Hole Spin?

Black holes have only three measurable properties: mass, spin (angular momentum), and electric charge (negligible in nature). This is the "no-hair theorem" — all other information about the matter that formed the black hole is lost.

Spin is measured by the dimensionless parameter a* = Jc/GM², where J is angular momentum. It ranges from 0 (non-rotating, "Schwarzschild" black hole) to a theoretical maximum of 1 (an "extremal Kerr" black hole, where the event horizon rotates at the speed of light).

Why do black holes spin? For the same reason an ice skater spins faster when pulling in their arms — conservation of angular momentum. When a massive star collapses, or when gas spirals inward from an accretion disk, the angular momentum gets concentrated into a smaller and smaller space. Almost all real black holes spin, and many spin very fast.

Real spin measurements:

Spin is measured by observing the inner edge of the accretion disk (which depends on ISCO radius), the shape of X-ray reflection spectra (iron line profile), and gravitational wave signals from merging black holes.

Kerr Black Hole — What Changes with Spin

Use the spin slider (bottom-right) to change a*. The simulation updates everything in real-time.

Event Horizon Shrinks

r+ = M(1 + √(1−a*²)). A non-spinning black hole has its horizon at the full Schwarzschild radius. At a*≈1, the horizon shrinks to half that size. You can see the black sphere physically get smaller as you increase spin. This is because the spinning spacetime "supports" the horizon at a smaller radius — loosely analogous to how a spinning top is more stable.

The Ergosphere

The purple-blue glow between the horizon and r=1.0. Inside this region, spacetime itself rotates so fast that nothing can remain stationary — not matter, not light, not even spacetime itself. Everything is forced to co-rotate with the black hole. It's oblate: at the equator it always extends to r=1.0 regardless of spin, but at the poles it touches the horizon. The rotating streaks visualize the direction of frame-dragging.

The ergosphere is where the Penrose process operates: in principle, you can extract energy from a spinning black hole by sending matter into the ergosphere and splitting it so one piece falls in while the other escapes with MORE energy than the original particle had. This is not science fiction — it's a proven consequence of General Relativity and may power real astrophysical jets.

Frame Dragging (Lense-Thirring Effect)

The spinning black hole drags spacetime with it, like a ball spinning in honey. Everything near the black hole gains extra angular velocity — the inner disk spins faster than Kepler's law alone would predict. The formula: ωfd = 2Ma*/(r(r²+a²M²)+2a²M³). Inner particles are dragged most.

This effect is real and measurable: NASA's Gravity Probe B (2004-2011) measured frame-dragging from Earth's rotation — a shift of just 37 milliarcseconds per year. Near a spinning black hole, the effect is billions of times stronger.

ISCO Moves Inward

The most visually dramatic effect. The Innermost Stable Circular Orbit (ISCO) — the inner edge of the accretion disk — depends on spin:

This is how astronomers measure spin in real black holes — by observing how close the inner disk edge gets. A closer inner edge means more gravitational energy is radiated before matter falls in. A maximally spinning BH can convert ~42% of infalling mass to energy (vs. ~6% for non-spinning). For comparison, nuclear fusion converts only ~0.7%. Spinning black holes are the most efficient energy sources in the universe.

Try dragging the slider from 0 to 0.998 — watch the inner disk region empty out at low spin and fill in completely at high spin.

Time Dilation Changes

All dτ/dt values in the HUD (bottom-left) recalculate in real-time using the Kerr metric. At higher spin, the ISCO is closer to the horizon, so time there flows much slower. The blinking clock dots update accordingly.

Multiple Black Holes & Mergers

Press B to add a companion black hole (up to 4 companions + the primary = 5 total). Each companion orbits the primary under full N-body gravitational dynamics.

What happens:

Real multi-BH systems: OJ 287 is a confirmed binary SMBH (150M M☉ orbiting 18B M☉, 12-year period). The Milky Way–Andromeda merger in ~4.5 billion years will produce a binary SMBH. Three-body BH interactions are genuinely chaotic. LIGO has detected dozens of BH-BH mergers since 2015.

In the simulation: Companions have random mass (0.15–0.35× primary), spin, and orbital parameters. N-body gravity with GW energy loss drives inspiral. Void mask and lensing shaders support 4 companion shadows and Einstein rings simultaneously.

Simplifications & Known Limits

This simulation prioritizes visual accuracy and real-time performance over full GR ray-tracing. Notable simplifications:

drag to orbit · scroll to zoom · space to pulse · 1/2/3 wavelength · T disruption · B add black hole · L toggle lensing · I info
Time Dilation · dτ/dt
Event Horizon
0.000·
ISCO (3 rs)
0.577·
Inner Disk
0.707·
Outer Disk
0.926·
▸ Camera
0.900·
Distant Observer
1.000·
a* = 0.700
1 BH
GEODESIC LENSING