LIGHTSPEED
← SIMULATOOL · SPECIAL RELATIVITY
PHOTO MODE · PAUSED
Tap or click anything to see its spectrum: the light it emitted and the light that reaches you.
Drag to look around · pinch or scroll to zoom
Pick a speed on the right, or push the thrust lever
Projection
Field of view
Look
Exposure
Exposure compensation
Overlays
Render quality
Isolate each effect

Aberration moves where light appears to come from. Light you run into arrives tilted toward your direction of travel, so the whole scene crowds forward.

Doppler colour shifts every wavelength by the factor D: light ahead is blue-shifted, light behind is red-shifted. Colours are computed from full spectra, so infrared and ultraviolet light that you normally can't see moves into view.

Searchlight is the change in brightness that goes with the shift: surface brightness scales as D⁴, and a point star's flux as D².

With any effect switched off the picture is no longer physical. The switches are only there so you can see what each effect does on its own. COMPARE (top right) shows the real view next to a Newtonian one and next to the common "shrunken world" misconception.

Speed of light
Reduced speed of light c′
Ship clock rate (proper time per real second)
Thrust lever range (proper acceleration)
Trip log

The thrust lever applies real proper acceleration: rapidity grows as η += (a/c)·Δτ, and the ship clock τ, the rest-frame clock t and the distance traveled are integrated together. At the real speed of light, 1 g takes about a year of ship time to reach γ ≈ 1.5, so use a fast clock (1 yr/s), or switch on the reduced speed of light.

Reduced c′ is a hypothetical universe where light moves at walking or driving speed (30 m/s by default), so you can accelerate to near-light speed in a few seconds and drive down the street. Everything you see is computed with the same equations, only with c′ in place of c. Because the scenes are at rest, the picture at a given β is exactly the same as with the real c. Only the clocks, distances and the time it takes to accelerate change.

The speed buttons skip straight to a speed with a smooth 1.8 s transition, which isn't a physical burn. Auto drift sets the clock so that you move through a scene at a steady, comfortable pace in the rest frame.

Scene
Viewpoint
Drive
Warp speed
Jump to
The warp lever runs from 1 millionth of a light-year per second to 10,000 light-years per second. Drag the view to steer; the ship turns toward wherever you look.
Object on the track
Its speed
Destination
Trip length on screen
Heading (direction of travel)
Light source

Lightspeed shows what you would actually see while moving close to the speed of light. Nothing is pre-animated: every pixel is computed each frame from the relativistic transformation of light.

How it renders. Everything in these scenes is at rest in one frame (the "rest frame"). What a moving observer sees at an event is exactly what a stationary observer at the same place and time would see, with each ray's direction transformed by aberration and its spectrum by the Doppler factor. The scene is rendered from your position into a cube map of material, sunlight, shadow and sky-light. A shading pass then turns every direction into the observed colour: D = eηcos²(θrest/2) + e−ηsin²(θrest/2) and I′ν(ν′) = D³·Iν(ν′/D). Finally each screen pixel looks up its rest-frame direction with tan(θrest/2) = eη·tan(θship/2). Geometry is never scaled to fake length contraction. The Terrell–Penrose rotation, and the fact that a sphere's outline stays circular, come out of this method by themselves.

Colour. Spectra run from X-rays to millimetre waves. Each shifted spectrum is integrated against the CIE 1931 2° observer (Wyman–Sloan–Shirley fit), converted to linear sRGB, exposed in physical units (cd/m², EV100) and tone-mapped with AgX. Stars and the Sun are blackbodies, so a blackbody at T seen with factor D is exactly a blackbody at D·T.

The city. Sunlight is a 5772 K blackbody filtered by the atmosphere (Rayleigh and aerosol scattering, ozone, and water-vapour bands), with the Sun 38° up. The sky follows the CIE standard clear-sky luminance distribution, split into a Rayleigh-blue component (∝ λ⁻⁴) and a whiter haze component, plus the atmosphere's own thermal glow in the infrared. Concrete, asphalt, brick, sandstone, low-e glass, leaves (with the infrared "red edge"), grass, bark, water and roofing each have a reflectance spectrum from the ultraviolet to the thermal infrared, and every surface also glows as a 300 K body. The Sun casts real shadows, glass and water mirror the sky with Fresnel reflection, and shade is lit by blue sky-light.

Sky data. The ~95 brightest stars use their real positions, magnitudes and B−V colours. Fainter stars, down to magnitude 8.3 (about 60,000), are a synthetic field matched to real star counts and concentration toward the galactic plane. The Milky Way glow is a model of integrated starlight. The cosmic microwave background is a 2.72548 K blackbody that includes the Sun's real 369.8 km/s dipole.

Controls. Drag to look · pinch/scroll to zoom · W/S or ↑/↓ thrust · 0–6 speed presets · F/B look ahead/behind · C compare · P photo · G spacetime diagram · Space pauses the clock.

Moving objects. On the lunar track, each vertex of a moving object is drawn where it was when the light now reaching you left it: τ solves |r₀ − βτ| = τ. Its paint is lit by sunlight as the object itself receives it (aberrated, and shifted by D_in = γ(1 + β·ŝ)), and the reflected light is shifted again by D_obj on its way to the rest frame and by D on its way into the ship. Shadows of moving objects use the same light delays. The barn doors shut exactly while the pole is entirely inside the barn, judged in the barn's frame at the moment each door's light set out.

Stars in 3D. Every star has a real or catalogue-consistent distance. The Sun, ~95 bright stars and ~30 real nearby stars (Proxima, Barnard's Star, Wolf 359, Tau Ceti, TRAPPIST-1…) are at their measured positions. Brightness follows the inverse-square law and positions shift by parallax as you travel. Trips use the exact relativistic-rocket solution: x = (c²/a)(cosh(aτ/c) − 1), t = (c/a)·sinh(aτ/c).

Free roam. The galaxy is a model: an exponential disk (scale length 8,500 ly) with four logarithmic spiral arms (pitch 12°), a young thin disk in the arms, a 27°-tilted bar and bulge, and a dust layer 400 ly thick that dims and reddens light along the plane (about 1.7 magnitudes per 3,000 ly near the Sun, ~50 toward the centre). Around you, stars are generated cell by cell from the local luminosity function (each brightness band out to where it fades below magnitude 6.8), calibrated so ~9,000 are visible to the naked eye from the Sun. In dense regions the faintest bands are dropped and their light carried by the glow: 120,000 star clouds splatted into a sky map. Near the Sun the measured Milky Way map is used instead. Warp drive is fiction and draws the view at rest.

Controls. G toggles the spacetime diagram. TIME → Export trip log saves ship time, Earth time, distance, β, γ and Doppler factors as CSV.

BUILDING SPECTRAL TABLES…