1. Use elevation maps to create game terrain
Heightmap
- Grayscale pixel map
- Contains only one color channel
per pixel storage location of the ground from a height of
ground black, white is the highest point - In addition to terrain data, it can also be used for bump mapping and displacement mapping
Made with a ps elevation map, and save the RAW format
Find also available online, but I did not find on their own to do a painting demonstration ,,, ah, ugly ,,, *
prompt review, do not forget when using ps format conversion Changed the picture mode to grayscale, otherwise it will not be displayed when importing
Create a new terrain in Unity and import the elevation map
Final result. . . Okay, it's ugly, this is usually the work of the artist
2. Unity terrain system creates terrain
Tool introduction:
- Raise the terrain.
Click shift to lower the terrain
- Raise the terrain (with a maximum height limit)
- Smooth terrain
- Draw terrain
The first picture will be tiled, which is the base picture, and the second picture will draw some lines on it
- Draw trees