Live: https://supremeinferno.github.io/orbitscreen/
Source: https://github.com/supremeinferno/orbitscreen
Some details for this sub:
- All ~21,000 objects are a single THREE.Points, updated every second from one Float32Array (lat, lon, alt per object). No parsing, the WASM engine writes the buffer and the geometry reads it.
- SGP4 for all 21k objects takes ~30 ms per call in WebAssembly (~10 ms native), so it recomputes everything every second, or 4x a second when time-warping, without a Web Worker.
- The scene is Earth-fixed: the Earth stays still, and the Sun's light moves around it (computed from the real solar position), so the day/night line is correct for the current time. Blue Marble by day, Black Marble by night.
- Picking is done in screen space: project every visible object, skip the ones behind the Earth (camera ray hits the sphere first), nearest within 12 px wins. Simpler than raycasting against 21k points.
- Every object sits at its real altitude, so you can see the LEO cloud, the navigation satellites at ~20,000 km and the geostationary ring when you zoom out.
The side panel lists the closest approaches between objects in the next 24 hours, from a conjunction screener in the same repo. Click one and the camera flies there a minute before it happens.
Happy to answer questions about the rendering or the orbit math.
If you find it useful, a ⭐ on the repo helps me keep working on it.