All work

Solar System

A live 3D solar system in the browser, built from real orbital data

3D view of the solar system with the sun at the centre, labelled planets on faint orbit lines, the asteroid belt, a body list on the right and a timeline along the bottom

Why I made it

Most solar system pictures are diagrams: planets in a neat row, sizes and positions made up. They look nice but tell you nothing about where things actually are today, or how far apart they really are.

I wanted a scene for the PhasedState site that was both a calm backdrop and something you could explore: real positions, real spin and tilt, and distances that mean something to a person rather than a string of zeros.

What I built

  1. Planet positions come from the VSOP87 theory (via the astronomia library), pre-baked at build time into a small binary ephemeris file so the browser doesn't do heavy maths on every frame.
  2. Each planet spins at its real sidereal rate with its real axial tilt; the sun uses a custom GLSL shader, Saturn gets a textured ring and Earth a cloud layer.
  3. A single time controller drives everything, so the timeline scrubber can run the whole system forward at an hour to a month per second, or snap back to live.
  4. Distances are shown in AU and km, plus a made-up but intuitive unit: the Earth Rotation Day, how long it would take Earth to roll like a wheel from one body to another.
  5. The interface is a frosted-glass HUD: a body list, a 'target lock' info card with each planet's facts and its distances to every other body, and a route panel.

What it does

Built with Three.js, WebGL / GLSL, astronomia (VSOP87), Vite, Web Audio API, JavaScript, 2026.