Skip to content
simhood
← Dev log
  • simulation
  • terrain
  • graphics

The land shapes the town

The land shapes the town

Yesterday the towns got real land, and some of it didn’t work: rivers ran across flat ground in ruler-straight diagonals, mountain towns fell apart into a few long strips on almost a third of the seeds, and one island map built no town at all. Today the land and the town fit together. Rivers wind and widen, the town follows the ground it’s given, and the 3D view finally draws streets as streets: a carriageway, kerbs, grass verges, pavements, street trees and lamps, with the ground levelled underneath.

All the 3D shots below are real frames from the game’s 3D client drawing a running simulation of the terrain town.

Mountain towns that work

A mountain valley seen from high up: a town of 1,200 by 1,200 metres covered in a dense grid of streets and blocks, with rivers running through it and out across the green valley floor in long, slightly wobbling diagonals

After: an alpine valley, seed 1. The town is a full street network. The rivers out on the valley floor are better but not there yet: they wobble and break their runs now, yet the side streams still cross the flat floor as long, nearly parallel diagonals.

The same alpine seed before today: a few long streets and strips of buildings scattered across the valley, with straight diagonal rivers

Before: the same seed yesterday. Streets gave up wherever a riverbank was too steep between two samples, leaving a handful of long strips.

Streets now judge a slope over a longer stretch of ground, and a street that meets a steep bank turns to find an easier way across. Mountain towns now build on every one of the 16 seeds we test, and on every preset and seed the town has at least 85% of the buildings the same seed builds on flat ground, with no safety check tripping.

Rivers changed too. Across flat ground they no longer have to run dead straight: on the alpine maps the longest straight run of river (the middle value over the seeds) fell from 142 cells of 20 m to 58. Near the town that shows as rivers that bend, as in the bridge shot below; out on a wide valley floor the streams still lean into parallel diagonals, as the shot above shows. Big rivers get wider, up to 40 m, and their banks slope down gently over about 60 m instead of dropping in one step.

A close view of a winding river with smooth, curved banks between dark green conifers, crossed by a wide street on a bridge, with street trees and lamps along both pavements and two buildings beside the bridge

A street bridging a river in the alpine town. The banks curve, the bridge lands on them, and street trees and lamps line the pavements.

An island town where there was none

An island landscape from high up: a square town of dense streets and colourful roofs on green land, with lakes, streams and the sea’s inlets around it

The island preset, seed 5. Yesterday it built nothing because the town’s edge would have crossed open water; today it builds 1,191 buildings. Where the edge meets a coast it now follows the shore. On this seed the land moved with today’s changes and the town’s ground is dry, so its edge stays square.

Wide rivers and cleared plots

The river valley town from high up: dense streets and roofs, a wide river with gently sloping banks along its northern side, and woods all around

The river valley, seed 1, with a wide river and graded banks to the north of the town.

A row of houses with orange, blue and red roofs on cleared plots, with garden trees behind them, a street with verges, trees and a lamp in front, and a dense broadleaf wood across the street

Where the town meets the woods, the ground under each house and street is cleared, and the garden trees around the houses stay. Across the street, the wood is untouched.

Streets in 3D

Until today the 3D view painted every street as one flat sheet of sand, the full width the simulation gives it, from building to building. Where streets met, two or three sheets stacked on top of each other. Now each street gets a cross-section by type:

Street Whole width Carriageway Grass verge each side Pavement each side
Main road 24 m 14.6 m 1.7 m 3.0 m
Through street 16 m 7.3 m 2.35 m 2.0 m
Local street 12 m 5.5 m 1.25 m 2.0 m

The local street follows British street guidance: a 5.5 m carriageway and 2 m pavements. Where streets meet, the kerbs turn the corner on a rounded curve, 4 to 8 m across depending on the street, and nothing overlaps. Street trees stand in the verges every 12 to 20 m and lamps at the kerb every 25 to 30 m. They keep clear of corners, front doors, bridges and water, and they’re the same on every screen.

Before: a T junction where three flat pale road sheets stack on top of each other with visible seams

Before: a main road meeting a local street. Three flat sheets overlap at the junction.

After: the same T junction with a darker carriageway, light kerbs, grass verges with trees, pavements, rounded corners and lamps

After: one junction with rounded kerbs, verges, pavements, street trees and lamps.

On slopes, the ground under a street is now levelled to the street, with gentle cut and fill slopes on either side, so streets no longer float on one edge or sink on the other.

Before: streets on a mountain slope by a river, with crossing bridge parapets and road sheets hanging over the ground at different heights

Before: streets by a river on a slope. Bridge walls cross each other and the sheets float.

After: the same place with one junction, bridges over the river and the ground meeting the streets

After: the ground is graded to the streets, the junction is one piece, and the bridges sit on the banks.

Up close, the sea and the rivers used to step in 20 m squares, the size of the simulation’s land cells. The 3D view now redraws the ground near the town, and along every shore within about 770 m of it, on a 5 m grid, smoothing between the simulation’s heights without inventing new hills.

Before: a coastline made of stair-stepped straight edges

Before: the coast steps in 20 m squares.

After: the same coastline, curving smoothly with a frayed sandy edge

After: the same coast curves, and the beach frays naturally into the grass.

The hand-made test town in the 3D view got the same streets.

Before: a junction in the hand-made town, narrow pale roads meeting by a river bridge

Before: the hand-made town’s narrow roads.

After: the same junction with wider streets, rounded kerbs, pavements, verges and a stone bridge

After: the same junction with through streets and local streets.

All this costs time: drawing the terrain town now takes about 3.1 seconds instead of 2.3, and a frame takes about half a millisecond more.

On the dashboard

The dashboard map with the Land and water overlay: blocks and streets over ground shaded by height in bands, a river in blue, and the legend listing the height bands, sea, lake and river

The dashboard’s new “Land and water” overlay shades the ground by height, with sea, lakes and rivers in blue, and reads the height under the pointer. A soil fertility overlay sits beside it.

What still doesn’t work

  • Bridges and embankments are drawn by the 3D view, but the simulation doesn’t know about them yet: to it, a bridge is just a street that crosses water.
  • Side streams on long flat stretches still run as nearly parallel diagonals before they join; they need something like erosion, cutting the valley floor toward the main river.
  • A hill town can still have up to 5 street segments steeper than they should be, where streets meet a river bank.
  • Street trees and lamps are decorations in the 3D view only. Later each street tree will be part of the simulation, with an age and upkeep. Roads have no markings or crossings yet.
  • In a few places a building still hangs over a lowered riverbank in the 3D view.

What comes next

Next, bridges and embankments become part of the simulation’s streets, together with the ground levelled under them, and side streams learn to join up.