Unity3d Tutorial Shader: 17th heightmap and topography

Source: Internet
Author: User
Tags scale image
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.