Heightmap

From Wikipedia, the free encyclopedia

A heightmap created with Terragen
A heightmap created with Terragen
The same heightmap converted to a 3D mesh and rendered with Anim8or
The same heightmap converted to a 3D mesh and rendered with Anim8or

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.

Contents

[edit] Programs that use heightmaps

Heightmaps are widely used in terrain rendering software and modern video games. Here they are sometimes called "terrain objects" because they are so commonly used to model terrain. 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.

[edit] Rendering software

[edit] Generating software

  • LandCraft - online Flash 8 terrain generator
  • terraineer - a small tool generating and teaching heightmap generation
  • Landscape Studio - a free Java-based suite providing complex heightmap generation
  • World Machine - a procedural terrain generator, which can simulate natural erosion. A free version is available with restriction only in the size of terrain generated(512*512)
  • Nem's Mega 3D Terrain GeneratorA 100% free generator which gives the user the ability to move the terrain freehand rather than by changing the settings on tools.

[edit] Computer and video games

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.

[edit] External links