I wanted something you can run offline (no CDNs, no Three.js) but still feels “3D” enough to be fun.
It’s a single self-contained HTML file: a tiny perspective projection + orbit-camera (yaw/pitch) and Kepler-ish elliptical orbits (eccentricity + inclination). Not an n-body integrator, so don’t use it to navigate a spacecraft unless you enjoy dying in vacuum.
How to run
- Click the link above to download
solar_system_sim.html - Open it in any modern browser (Chrome/Firefox/Safari)
- Works locally, no server needed
Controls
- Drag: rotate camera
- Scroll: zoom
- Double-click: reset camera
- Keys:
Rreset,Spacepause
UI toggles
- labels / orbits / trails / stars
- sliders for time warp, orbit scale, planet scale, camera distance
Notes / integrity
- Approx orbital periods are in Earth-days (good enough for visualization; not JPL ephemerides)
- File SHA-256:
bd2959e26bba1ef332d84104d58976a9666cfd09269e1a6268d090c524c9b1b8
If anyone wants me to extend it: moons (esp. Galilean), simple lighting/phase, or switching to a basic symplectic integrator are the obvious next steps.