Skip to content
simhood
← Dev log
  • graphics
  • terrain

One town, five landscapes

One town, five landscapes

Until today the 3D view opened on a town we made up to test the look: a market square, curved lanes, a river, mountains and a coast, all drawn by hand-written rules. The real, simulated town only appeared if a simulation server was running. So the look was being tuned on a town the game never makes.

Now the made-up town is gone. With no server, the 3D view replays a recording of the simulated town, the same one the game runs, on any of the five kinds of land the simulation can generate. The residents walk to work, the clock runs from 08:00, and after fifteen seconds the recording starts again.

Before and after

The made-up test town: a river bend, a market square, curved lanes and mountains behind

Before: the made-up test town. Nothing in it came from the simulation.

The simulated town in its river valley: a grid of streets and houses with a river crossing it, woods all round

After: the simulated town in its river valley, which is what you now see when you open the 3D view. Every street, building and tree is where the simulation put it.

Five kinds of land

The same town is recorded on each landscape: a river valley (the default), an archipelago, the mountains, a desert and flat land. Pick one with --fixture=archipelago, alpine, desert or flat.

A sandy shore curving along a turquoise sea, with woods of round trees behind it

The archipelago’s coast, the nearest shore to the town. The coast view now finds it on its own.

A rocky peak in front of the town, with green slopes, woods and a stream winding through the valley below

In the mountains, the “mountains” view looks at the highest ground near the town, with the town in the valley beyond.

The town on pale sand: blocks of red, ochre and slate roofs between sandy streets

The desert town: the same streets and buildings on bare sand.

Views that look at the right things

The eight preset views (keys 1 to 8) used to point at places in the made-up town. Now each one finds its place in the simulated town: the street corner nearest its centre, the industrial buildings, the nearest river, the nearest coast and the highest ground. A town without a coast just looks at its centre instead.

A street corner in the town centre: pavements, street trees and long blocks with pitched roofs

The street corner nearest the town centre, framed a little higher than before: the centre’s blocks are five storeys and more.

What’s next

The recordings are refreshed with one command whenever the town changes, so the view keeps up with the simulation. Next is to tune the look on these towns, one setting at a time.