Decoding spacetime distortion
The Astrophysics Breakdown
The same educational walkthrough from the original app—lensings, ray marching, horizons, and Doppler asymmetry—kept off the workstation so the simulator stays focused.
When observing the black hole, you see a glowing flat ring that appears to curve above, below, and across the central darkness. This is not a physical cross-shaped ring. It is a flat, circular accretion disk orbiting the equator, but the black hole’s intense gravity bends the paths of light emitted behind it.
Gravitational lensing
Massive objects warp the fabric of spacetime. Light rays, which normally travel in straight lines, follow those curves. The black hole acts as a colossal gravitational lens, magnifying and redirecting light from the disk and background structures.
To render this simulation, the app uses backward ray-tracing. Instead of tracing trillions of light rays originating from the accretion disk and hoping they hit the camera, we shoot invisible “scout” rays from each camera pixel into curved space.
At each step we integrate a spatial equation of motion derived from Schwarzschild null orbits with a 4th-order Runge–Kutta (RK4) integrator.
Here M is the black-hole mass, h² is the conserved specific angular
momentum squared at launch, p is position, and r = |p|. When
M → 0 the acceleration vanishes and rays travel in straight lines.
Marching results
- Hit horizon: If a ray crosses r < rs = 2M, it is captured and renders black.
- Hit disk: If it intersects the equatorial disk plane outside the inner edge, it samples gas brightness (with optional Doppler weighting).
- Escape: If it flees beyond the escape radius, it samples the background starfield—itself warped by the path history.
- Exhausted: If the step budget runs out without a decision, the ray stays dark (no starfield fill-in).
The black hole’s boundary is the event horizon—where gravity is so strong that the escape speed exceeds the speed of light. Nothing, not even light, can escape once it crosses that surface.
Doppler beaming & shifting
The accretion disk rotates at relativistic speeds. Light from gas moving toward you is compressed (blueshifted—hotter, brighter). Gas moving away is stretched (redshifted—cooler, dimmer). That produces the brightness asymmetry characteristic of relativistic disk images. Toggle Doppler in the control rail to compare.