O'Reilly logo

Building Levels in Unity by Volodymyr Gerasimov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the terrain using heightmaps

Scale is one of the most common issues that designers face when dealing with terrain for the first time. The process of fixing the scale can lead to a lot of frustration, and to re-edit large parts of the terrain, you can't simply shrink or extend selected areas with the default toolset; you have to manually redraw them. Thankfully, there is an easy way to get close to what we want in the first attempt, and that's by using heightmaps.

Heightmaps work in the same way as brushes; the engine interprets the grayscale colors as elevation data and applies it to the terrain. They can be easily created with any app that supports exporting in the .raw format (such as GIMP and Photoshop).

To increase our precision with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required