Skip to content

One afternoon, five map styles: the search for the diorama look

· by nicroc

Ever since the logo was finished, one thought has not let go of me: why does the whole map not look like that? Like a painted diorama on a gaming table, with meadows of static grass and little model trees. This afternoon we worked on it, from midday into the evening. Most of it ended up in the bin. Here is the whole story, step by step.

The Alps with Lake Garda in the new tile look

Attempt 1: a real 3D model

At first we took it literally: a section of the map as a three-dimensional table model that you can rotate. Three regions from real elevation and water data: Lake Garda with the Alps, Rhenish Hesse and the Gulf of Naples. With sun shadows, foam edges along the shore, a slightly curved block of earth and a wooden plinth, exactly as in the logo. It is available as a diorama preview to look at and rotate.

Impressive, but a size too big for a game with four million fields. For now I only want the look. Real 3D perhaps some time later.

Attempt 2: painted flat

So the same thing, but flat: the terrain from above, with painted light and shadow and a fine grain like static grass. On top of it trees, bushes and rocks as small images. On view in the map style preview.

That went in four quick steps:

  1. The flat basic version.
  2. A slight oblique view: mountains rise and hide what lies behind them, and at the front an edge of earth is visible.
  3. Our own miniatures from the image generator: 27 trees, firs, snow-covered firs, bushes, rocks and tufts of grass.
  4. Mountain miniatures on the real summits, denser forests, a steeper viewing angle and a gravel shore at the lake.

At first I liked it. In the evening, with a little distance, it looked dreadful: little trees glued onto a photo wallpaper.

Attempt 3: the AI paints the map

Next idea: cut satellite images into jigsaw pieces and have an AI repaint each piece in diorama style. The result was pretty and wrong. The AI invents lakes where there are none, and at the edges no piece fits the next. For a game on the real Earth that is useless. This attempt never made it into a commit.

The solution: tiles, like in the old days

Then came the thought that stuck. The classics assembled their maps from tiles. Why not here as well? One tile per field, seen obliquely from above. The geography still comes from the real data; the AI now only supplies the ingredients.

The trick: a tile is not determined by the field itself but by its four corners. Every corner is either water or land. That makes exactly 16 combinations, and with these 16 shapes any coast in the world can be laid.

Between the last map style commit and the finished tile map lie just under three hours and a whole lot of failed attempts.

Coasts

At first the AI painted entire coast tiles. Of 16 tiles, 14 were right first time, but “almost fitting” is not enough at an edge. Every tile had a slightly different blue, and the coastline never met the edge at quite the same spot. The attempt to match up the borders afterwards looked like an image glitch.

The solution was to turn the task around: the program now draws the coastline itself, so precisely that every tile joins the next one seamlessly. The AI now only contributes the materials: water, sand, meadow. For each of the coast shapes there are three variants, so that nothing repeats visibly. The beach is not a field of its own here but a narrow strip along the shore.

Forest

Dedicated forest tiles looked as if they had been plonked on top, a dark carpet with a border. Now there are no forest tiles at all any more. Instead, individual trees stand where there really is forest: dense in the interior, sparse at the edge, according to the forest share of each field. That is about half as many trees as before, and it looks twice as real.

The first deciduous trees looked like lollipops: a ball on a stick. The second generation has proper crowns and branches: oaks, chestnuts, limes, willows, poplars. Only the birches failed; they came out of the generator brown.

Mountains

Ready-made little mountain pictures, of which we already had 34, also looked glued on, and the rock had a green tinge. They were thrown out again.

Now the terrain grows out of the real elevation data. Added to that was an idea I contributed myself: a mountain may become the higher, the deeper it lies inside a contiguous mountain range, but never higher than the real elevation allows. That gives gentle foothills at the edge and proper summits in the middle. Rock only shows on steep slopes, snow lies on top, and conifers grow up to the tree line.

A decision with a side effect

Finally we compared three resolutions: one, four or sixteen tiles per field. In the preview you can switch between them without losing position and zoom, and the 14-kilometre grid of the fields can be overlaid.

The winner is one tile per field. It is the clearest, and you see at once what a field is. The price: everything narrower than a field disappears or turns into a blob. Lake Garda is now a small heart-shaped pond. I can live with that, though it is still meant to get prettier.

See for yourself

Three regions are fully rendered: the Alps with Lake Garda, northern Germany with Denmark, and southern Italy with Sicily. You will find them in the tile map preview. Next, the lakes are to come from more precise data, and then the whole world will be rendered in this style.

Logbook: Tuesday, 10 November, afternoon and evening

  • 13:13 · b38698b The diorama preview: three regions as a rotatable 3D table model.
  • 14:24 · 4d921bf The map style preview: the same regions painted flat.
  • 14:47 · 3912132 Slight oblique view with an edge of earth, plus trees and bushes that were cut out of sample images.
  • 15:28 · 9c2a52d 27 miniatures of our own from the image generator replace the cut-out ones.
  • 15:52 · 9350638 Mountain miniatures on the real summits, a steeper view, a gravel shore at the lake. The last state of this path; after that came the switch to tiles.
  • 18:38 · 94f2ef5 The tile map preview with three fully rendered regions. More than a thousand files, almost all of them pre-calculated image tiles.
  • 18:48 · f1ddffd The switch between one, four and sixteen tiles per field and the field grid that can be overlaid. With more than 3,600 files the commit with the most files so far, because every region now exists in three resolutions.
  • 18:49 · e983f80 The decision, recorded in three changed lines: one tile per field is the default.