miuradio
How It SpawnsThe tricks inside famous games, shown running.›

How It Spawns

Why does the ground keep changing as you fly down in No Man's Sky?

Story

Hello Games wanted a walk to the far side of a planet to feel like a real journey. That is far more ground than the game could store, or even load, so it keeps none of it: the ground is built as you fly in, a little at a time.

Under the hood the ground is cut into boxes, 32 meters a side near you, each built on its own. Farther out the boxes are twice as big, then twice again, with less detail. But you come in fast, and boxes built in plain order could leave you landing before the ground is there.

So the game builds the box you are looking at first. A rough one fills in fast, then a sharper one replaces it, spreading out from you. Innes McKendrick, who built it, said the order is based on visuals: what the player sees. The trees are placed on the rough ground and slid down onto the sharp ground when it arrives; he called that slide "kind of cheesy", but far better than popping into position. Even the animals wait until you are close.

The planet, ship, creatures and the build view on screen are our own simplified version of the idea, run in code, as Hello Games described the game in 2016-17. Not affiliated with or endorsed by Hello Games.

Have you ever caught a tree sliding down?

Sources: No Man's Sky (Hello Games, 2016). Innes McKendrick, "Continuous World Generation in No Man's Sky", GDC 2017; Sean Murray, "Building Worlds Using Math(s)", GDC 2017; Hello Games' own update notes (1.1).
Sounds and music: our own, made in code.

Follow

TikTok@howitspawns›Instagram@howitspawns›YouTube@howitspawns›X@howitspawns›
Link copied