the engineering of an empty sky
field notes · corebird
Space looks like the cheapest scene a game could render — black background, some dots, done. It's actually a stack of non-obvious engineering decisions, most of them invented to solve problems that don't exist anywhere else in graphics.
stars can't be geometry
A star has no distance you can usefully simulate. Put a star mesh one kilometre from the camera and it parallaxes wrong; put it "at infinity" and your depth buffer can't represent it. The standard trick: a point cloud parented to the camera itself. Each star is a vertex rendered as a single pixel — thousands of them in one draw call, no depth writes, no fog. They don't move because they're not really there; the illusion is that they can't.
float32 ends before Pluto does
GPUs work in 32-bit floats: about seven significant digits. Place a solar system at real scale and by the outer planets your positions have centimetres of jitter — vertices visibly vibrating. The fix everyone converged on (Kerbal made it famous): the player doesn't move through the world, the world moves around the player. Keep the camera at the origin and translate everything relative to it. "Floating origin" is why you can fly to another planet in a browser tab.
one draw call of rocks
A dense asteroid field is thousands of identical meshes — and naïvely, thousands of draw calls, which is how you get a slideshow on a phone. Instanced rendering flips it: one geometry uploaded once, plus a buffer of transforms (position, rotation, scale per rock). The GPU draws every instance in a single call. The same trick powers grass fields, crowds, and bullet hells — it's the reason "swarms" got cheap.
the gyroscope pipeline
Tilt controls are a data-processing problem wearing a game costume.
The phone emits Euler angles — beta (forward tilt) and
gamma (roll) — sampled dozens of times a second, jittery
and relative to a pose nobody defined. The pipeline: pick a neutral
baseline (~45° hold), subtract it, apply a deadzone so micro-tremors
don't steer, then clamp and smooth into a stick deflection. Raw sensor
in, flight input out — every frame, at 60Hz, on hardware you don't
control.
the takeaway
Empty space turns out to be a rendering trick (parented point clouds), a numerics problem (floating origins), a throughput trick (instancing), and a signal-processing problem (sensor → stick). The void is the most engineered part of the game.
see it running → corebird.dev · devlog