Aerial view of Otsu with forested mountains behind the city

· Engineering · Cities: Skylines

Realistic heightmaps for Cities: Skylines — real terrain from terrain.party

CS1快速 RapidLegacy video

Namito Yokota · Unsplash License · Unsplash

BY
Ben · citybuilderben
PUBLISHED
UPDATED
TESTED ON
CS1 · November 2020 (video) — terrain.party has been offline at times since
TL;DR ·

Realistic heightmaps for Cities: Skylines come from free elevation data. Download the area from terrain.party, load the different height files into one image-editor file, keep the data set with the most detail, then export a 1081 × 1081, 16-bit greyscale PNG. Test it in the Map Editor and smooth rough terrain before you build.

Video: Realistic Heightmaps and How to improve these - JAPAN Series · open on YouTube ↗
Video
Realistic Heightmaps and How to improve these
Series
JAPAN map series
Game
Cities: Skylines
Length
18:49
Published

· What you need

  • terrain.party ↗
  • Google Maps ↗ — to find the right place and its name
  • Adobe Photoshop — or any image editor that handles 16-bit greyscale (GIMP, Affinity Photo)

Realistic heightmaps give your Cities: Skylines map real valleys, ridges and coastlines instead of procedural hills. This tutorial from the 2020 JAPAN series shows where to get them for free and how to get the best result out of the raw data.

What a heightmap is

A heightmap is a greyscale image where brightness equals height: black is the lowest point, white the highest. Cities: Skylines 1 reads a 1081 × 1081 pixel, 16-bit PNG. The 16 bits matter. An 8-bit image only has 256 grey levels, which turns smooth slopes into terraces.

1. Download the terrain

  1. Look up the place in Google Maps first to get its exact name and extent (1:06).
  2. Find it on terrain.party and position the selection box over the area.
  3. Keep the box at the standard 18 km. That matches the full Cities: Skylines map; the thicker lines inside it mark the 5×5 tiles the base game lets you build on. You can change the scale with plus and minus, but for Cities: Skylines 18 km is the size to use.
  4. Export the data (3:00). You get a zip with several height files from different elevation sources.

2. Combine and compare in your image editor

Create a new image (4:24). I work at 4,000 × 4,000 px, 72 dpi, RGB and 16 bit (8 bit is the default, and 16 bit keeps the grey gradients smooth). Paste in the terrain.party screenshot as a locked reference layer, then import the height files as separate layers, scaled to the same size (6:06). Each data set shows the same terrain with different detail and different errors: some are sharper, some have holes or spikes, some flatten water badly.

Toggle through the layers and keep the best data set for your final heightmap (7:08). The differences usually show most in steep valleys and along coastlines, so zoom in there. Then export the result as a 16-bit PNG (10:58).

The four data sets, compared

The zip from terrain.party held four height files for Kushimoto in southern Japan:

  • ASTER 30 m and Merged are usually almost identical, and a good default.
  • SRTM3 is rougher along the coast, but it showed the river coming down from the mountains better.
  • SRTM30 Plus is far too blurry to be useful. I’d dump it straight away.

To see the differences, add a brightness/contrast adjustment layer above them. Checking with the eyedropper near the shore showed values jumping from about 2 to between 4 and 14. My final adjustment was brightness +25, contrast −10, which separates land from sea cleanly. Save the layered file: the street map overlay tutorial builds on it.

In the Map Editor I picked the temperate theme with left-hand traffic for Japan. Click the small folder icon to open the heightmaps folder: AppData\Local\Colossal Order\Cities_Skylines\Addons\MapEditor\Heightmaps. Copy your files in and import them one by one. I tend to keep a slightly exaggerated version and then smooth it down, because softening is easier than adding relief.

3. Test it in the Map Editor

Open Cities: Skylines, go to the Map Editor (12:11) and import the heightmaps one by one (13:07). What looks good as a grey image can look different in 3D, so testing several candidates pays off. Look for:

  • Spikes and pits, usually data errors.
  • Terraces on slopes, a sign of low precision.
  • Flat areas where water should be, which you’ll fix with water selections later.

4. Smooth it

Finish with the soften and level tools (16:00). Smooth river banks, flatten areas you’ll build on and leave the mountains alone. Real terrain is rough, and that’s the point of using it.

Common problems

The map is mostly flat. Your selection box was too large, or the area really is flat. Try a smaller box or a hillier place.

There’s a wall at the map edge. The data stops at the edge of the box. Pick a box that doesn’t cut through a mountain range at the border.

Water floods everything. The sea level in the editor is higher than your lowland. Adjust the height levels in the image editor or the sea level in the Map Editor.

Next steps

A heightmap gives you the terrain. To rebuild the real road layout on top, add a street map overlay, or follow the complete realistic maps workflow from terrain to roads. For a bigger area, unlock the whole map with 81 Tiles.

Video chapters

  1. 0:00Intro
  2. 1:06Using terrain.party to download real-world heightmaps
  3. 3:00Exporting terrain data to your computer
  4. 4:24Creating a new image in Adobe Photoshop
  5. 6:06Importing the heightmap information into Photoshop
  6. 7:08Finding the best data set for your final heightmap
  7. 10:58Exporting the PNG file with the final heightmap
  8. 12:00Opening Cities: Skylines
  9. 12:11Jumping to the Map Editor
  10. 13:07Testing all heightmaps
  11. 16:00Smoothing the map data

Clicking a chapter starts the video above at that point.

Related videos

FAQ

Which heightmap size does Cities: Skylines need?

Cities: Skylines 1 expects a 1081 × 1081 pixel, 16-bit greyscale PNG. terrain.party exports it in that format.

terrain.party gives me several files — which one do I use?

They come from different elevation data sets. Load them all, compare them and keep the one with the most detail and fewest artefacts — or test several in the Map Editor, as the video does.

Why does the terrain look like stairs?

The height data is coarse, or the image was saved in 8-bit. Keep the file 16-bit and smooth rough areas in the image editor or with the Map Editor's soften tool.

Why are my mountains too flat or too steep?

The selection box size changes the scale. A larger box squeezes more terrain into the map and flattens it; a smaller one exaggerates it. Pick the box size that fits the area you want to build.

What if terrain.party is offline?

Use another heightmap service that exports 16-bit PNGs for Cities: Skylines. The rest of the workflow — compare, clean up, test, smooth — stays the same.