VLE Lab
Starfield
A procedurally generated solar system, rendered in real time in your browser. Every press of “New system” builds a different star, worlds, moons and debris field.
Needs a browser with WebGL and hardware acceleration. Works best full screen.
How it works
The whole scene is drawn by a single WebGL fragment shader that ray-traces planets, rings, moons and asteroids for every pixel, every frame. The planets follow simple elliptical orbits, and the gravity-collapse mode switches to a step-by-step physics simulation.
Things to try
- Press Go, then drag to orbit and scroll to zoom.
- Double-click a planet to lock focus on it.
- Press Space for an automatic fly-by tour.
- Press B to collapse the system into a black hole.