loading...
running...
How to use
Pick a view (use the camera buttons for overview, side, into-the-well and top; drag to orbit, wheel to zoom) and a preset, then change one slider at a time. What to try: (1) Rosette orbit, then lower p and watch the periapsis dots (violet) advance faster. (2) Near ISCO, then Plunge: below p = 6 M the orbit cannot be stable. (3) Raise the body radius R above 2: the funnel gets a rounded cap and an orbit that dips below R hits the surface. (4) Light bending: widen the ray bundle and compare with the dashed straight lines; rays below b = 5.2 M are swallowed. (5) Lensing: Einstein ring puts the source exactly behind the lens. Space pauses, R relaunches.
Models and baked PBR textures were made in Blender; Three.js r160 animates the probe, funnel and rays from the same physics module as the 2D page.
The science
Outside a non-rotating, uncharged mass M the geometry is the Schwarzschild metric (G = c = 1, so lengths and times are measured in M = GM/c²; for the Sun M = 1.477 km):
ds² = -(1 - 2M/r) dt² + dr²/(1 - 2M/r) + r² dφ² (equatorial plane)
The rubber sheet is the spatial slice. Take t = const and the equatorial plane. Its curved 2D geometry can be bent into flat 3-space as a surface of revolution with height z(r) when (dz/dr)² = rs/(r - rs), so z(r) = 2 sqrt(rs (r - rs)), rs = 2M (Flamm's paraboloid). The extra proper radial distance dl = dr/sqrt(1 - 2M/r) is exactly the extra length you measure walking along the funnel. Inside a star of radius R and constant density the same construction gives z = (1 - sqrt(1 - k r²))/sqrt(k) with k = 2M/R³, and the two pieces join smoothly at r = R. Honest limit: the funnel pictures space only. Time dilation (the gtt part, the larger share of everyday gravity) is not in the picture; it is shown in the clock graph instead.
Orbits. For a mass m moving freely, energy E and angular momentum L per unit mass are conserved and, with proper time τ, (dr/dτ)² = E² - (1 - 2M/r)(1 + L²/r²), dφ/dτ = L/r², d²r/dτ² = -M/r² + L²/r³ - 3ML²/r&sup4; The last term (-3ML²/r&sup4;) does not exist in Newtonian gravity. It makes ellipses open into a rosette: the periapsis advances by Δφ ≈ 6πM/p + (3π/2)(18 + e²)M²/p² per orbit (p is the semi-latus rectum). For Mercury this is 43 arcseconds per century. Start values come from r = p/(1 + e cos χ): L² = p²/(p - 3 - e²), E² = ((p - 2)² - 4e²)/(p (p - 3 - e²)). Bound orbits are stable only for p > 6 + 2e; at e = 0 that is the innermost stable circular orbit (ISCO) at r = 6M, where the specific energy is sqrt(8/9) (the binding energy is 5.7 percent of the rest energy).
Light. With u = 1/r and impact parameter b = L/E, a light ray obeys d²u/dφ² + u = 3M u². The right-hand term gives a deflection of 4M/b + 15πM²/(4b²) + ... for large b (twice the naive Newtonian value; the Sun deflects starlight by 1.75 arcseconds, confirmed in 1919). Rays with b below 3 sqrt(3) M = 5.196 M are captured; b = 5.196 M winds round the unstable photon sphere at r = 3M. Rays are plotted in the equatorial plane.
Time. A clock at rest at radius r ticks at sqrt(1 - 2M/r) of the far-away rate; light from there is redshifted by 1 + z = 1/sqrt(1 - 2M/r). An orbiter's clock rate is dτ/dt = (1 - 2M/r)/E (gravity and motion combined).
Lensing. For a small deflection the lens equation of a point mass is β = θ - θE²/θ with Einstein angle θE = sqrt(4GM Dls/(c² Dl Ds)). A source at offset u (in units of θE) makes two images at (u ± sqrt(u² + 4))/2 and total magnification (u² + 2)/(u sqrt(u² + 4)); at u = 0 you see a ring. The sky picture is drawn by solving this equation for every pixel.
Simplifications. Test masses do not disturb the field and emit no gravitational waves; the sheet shows space only (see above); trails and rays are the equatorial plane; the lens uses the weak-field 4M/b deflection (the exact value differs by 15πM/(4b) of itself, tiny for real lenses) and ignores extended lens mass distributions and the Hubble expansion. Orbit playback is slowed so one revolution takes about nine seconds. The mass slider only changes km and millisecond readouts: in units of M the dynamics are identical for every black hole or star.
Numerical checks. The checks below integrate the orbit and ray equations with RK4 and compare against independent results: the two-term precession formula, the exact circular-orbit angular rate 1/(r sqrt(r - 3M)), energy conservation, the second-order weak-field light deflection, the photon capture threshold 3 sqrt(3) M, the ISCO radius 6M found as the energy minimum of circular orbits, the embedding slope, and the lens magnification from the numerical Jacobian of the lens map.