Space Visualiser icon

Active2021 – now

Space Visualiser

A real-time, to-scale model of the Solar System and the universe around it.

  • C++20
  • Dahlia
  • Metal
  • GLSL
  • N-body physics
  • Atmospheric scattering
  • Ray marching
  • Dear ImGui
Saturn, with ring shadows and forward scattering from Cassini imagery.
86 Shaders
41k Lines of C++
6000 Years of navigable time
9 Spacecraft on real paths

The Sun and planets at their real sizes and distances, placed from JPL's orbital elements and moved under N-body gravity, with physically based atmospheres, rings, a dynamic Sun, nine spacecraft and a catalogue of stars, galaxies, nebulae and black holes.

Space Visualiser shows the Sun and the eight planets at their real sizes and distances. Each planet starts at its current position, computed from JPL's Keplerian orbital elements, and then moves under simulated N-body gravity. Each one is also turned as it is on the date: its pole and prime meridian come from the IAU's rotation models, including the precession of Earth's axis. The side facing the Sun, the seasons and the time of day anywhere on Earth are therefore those of the date shown.

You can go to any date from 3000 BC to 3000 AD. The stars move too, with their proper motions from the HYG database, and so do the constellation lines.

What it renders

  • Atmospheres with precomputed atmospheric scattering (Bruneton), tuned per planet
  • Rings with shadows and forward scattering: Saturn's main rings from Cassini imagery, plus the faint dusty rings of Jupiter, Uranus and Neptune
  • The Sun's photosphere in visible light, with limb darkening, granulation, sunspots and faculae. Alternatively its chromosphere in extreme ultraviolet, its corona, and a lens flare at distance
  • Earth's specular oceans, clouds and night lights
  • Surface relief on the Moon, Mercury and Mars from their elevation models
  • Nine spacecraft on their real trajectories from JPL Horizons: Voyager 1 and 2, Pioneer 10 and 11, New Horizons, Cassini, Juno, Parker Solar Probe and JWST
  • Beyond the Solar System, ray-marched galaxies, nebulae, black holes, pulsars and star systems, drawn at full Retina resolution where it counts

Exploring

A heads-up display sits over the scene:

  • Find anything by name with ⌘K: planets, moons, comets, stars, nebulae, galaxies, clusters, pulsars and black holes.
  • Layers for labels, orbits, the ecliptic grid, asteroids, comet tails, spacecraft, constellations and sky grids.
  • A time bar to pause, reverse, speed up or jump to a date.
  • Events finds eclipses, transits of Mercury and Venus, oppositions, conjunctions and comet perihelia within three years of the date shown. Clicking one flies you there, with the camera placed to see it.
  • Tours play guided sequences: the planets, powers of ten, and eclipses and alignments.

Engineering

Rendering runs on Dahlia, using Metal by default on macOS. There are 86 shaders, from bloom and exposure metering to Bruneton's atmosphere precomputation. CI builds and tests every push on macOS in Debug and Release, on either GitHub Actions or Forgejo. Debug hooks start the app in any state, such as SV_START=Moon SV_DATE="2026-08-12 17:30", and can take a screenshot automatically. Every image on this page was captured that way.