|
|
|
|
Heightmap
|
| |
|
| |
In computer graphics, a heightmap or heightfield is a raster image used to store values, such as surface elevation data, for display in 3D computer graphics.

Discussion
Ask a question about 'Heightmap'
Start a new discussion about 'Heightmap'
Answer questions from other users
|
Encyclopedia
In computer graphics, a heightmap or heightfield is a raster image used to store values, such as surface elevation data, for display in 3D computer graphics. A heightmap can be used in bump mapping to calculate where this 3D data would create shadow in a material, in displacement mapping to displace the actual geometric position of points over the textured surface, or for terrain where the heightmap is converted into a 3D mesh.
A heightmap contains one channel interpreted as a distance of displacement or “height” from the “floor” of a surface and sometimes visualized as luma of a grayscale image, with black representing minimum height and white representing maximum height.
When the map is rendered, the designer can specify the amount of displacement for each unit of the height channel, which corresponds to the “contrast” of the image.
Heightmaps can be stored by themselves in existing grayscale image formats, with or without specialized metadata,
or in specialized file formats such as Daylon Leveller, GenesisIV and Terragen documents.
Heightmaps are commonly used in geographic information systems, where they are called digital elevation models.
Programs that use heightmaps
Heightmaps are widely used in terrain rendering software and modern video games. Heightmaps are an ideal way to store digital terrain elevations; compared to a regular polygonal mesh, they require substantially less memory for a given level of detail.
In the earliest games using software rendering, the elements often represented heights of columns of voxels rendered with ray casting.
In most newer games, the elements represent the height coordinate of polygons in a mesh.
Rendering software
Generating software Many 3D computer and video games use heightmaps to store and generate terrain data. Benefits of such a system include ease of implementation as well as modding. Players can easily generate their own heightmaps for use within the game using widely available software. Heightmaps are usually complemented by texture maps that are then applied to the terrain in-game for extra detail and realism.
External links
|
| |
|
|