STAR STUDIOExperiments in light and motion
← All experiments
Gravity Garden
A 3D solar system with real gravity. Fling planets around the sun, watch them settle into orbits, crash, or get swallowed, at up to 1000× speed.
Warming up the stars…
Keyboard: Space pause · [ ] slower/faster · 1–5 planet type · N add a planet · A orbit assist · T trails · arrows and + − move the camera · Esc cancel a fling · Del clear.
Distances are real (in astronomical units, Earth–sun = 1); planets and the sun are drawn bigger so you can see them. Quality drops on its own if your device starts to struggle.
Sources
- Milky Way backdrop: NASA/Goddard Space Flight Center Scientific Visualization Studio, Deep Star Maps 2020 (public domain). Gaia DR2: ESA/Gaia/DPAC. Converted from the HDR original for the web.
- Planet surfaces, the sun, atmospheres, and lens glare are generated by code written for Namretep. No other images.
- 3D graphics by three.js (MIT licence).
Everything here runs in your browser. Original code, inspired by ideas from around the web.