Reprinted from the Wind Yu Chong Unity3d Tutorial College
Heightmap Heightmap, height map. Usually the heightmap height map is stored as gray scale image, which is often said to be grayscale. The more white the point is higher, pure black represents the lowest point, and the plain point represents the highest. 8-bit grayscale graphs have 256 orders. 16-bit grayscale graphs have 65536 orders. If the accuracy is still not enough (for example, to draw a large scene), then you can use the standard RGB bitmap to store the height map, then the accuracy is 256 of the 3 square =16777216 order. In the same vein, it can be further upgraded to RGBA. Heightmap can be drawn using 3D software (Unity's terrain), or a plugin in Photoshop. The height chart is mainly used in 3 places. (1) Terrain terrain (2) Bump Texture Bump Map (3) Displacement Map Displacement mapping (2) and (3) the following will be described in detail, here is mainly (1) the import and export of terrain and terrain unity3d the own terrain editor, Terrain can be drawn. Terrain fluctuations that height information can be stored with a height map. You can either import the raw suffix of the heightmap to generate the terrain, or you can draw a good terrain in unity3d to export the raw suffix heightmap. Heightmap saves a lot of storage space compared to 3D terrain models.
Using any intention to generate gray-scale images to do unity3d terrain
Unity3d Tutorial Shader: 17th heightmap and topography