Creating Terrain from Heightmaps - Unity Game Development Tutorial
In this Unity game development tutorial we're going to look at how we can create realistic looking terrain from real world height data. You can either watch the video version below or continue reading for written instructions. You can hand sculpt terrain using the tools in Unity, but in this tutorial we're going to look at an alternative - using images known as heightmaps. A heightmap is a grayscale image that contains height information. The darker pixels represent areas of low height and the lighter pixels represent higher areas. Below is an example of a heightmap. There are various sources online that you can get free heightmaps, but we're going to look at this one that allows you to create heightmaps of the real world - https://cs.heightmap.skydark.pl/ This resource was created for generating terrain for the game Cities Skylines but it will work just as well in Unity. Basically, it allows us to select any 18km square area on the map and then create a hei...