Bump map

From Valve Developer Community
Revision as of 04:40, 10 July 2008 by TomEdwards (talk | contribs)
Jump to navigation Jump to search
A material's albedo (left) compared to its bump map.
The above material in-game.

A bump map is an RGB image that can be used to simulate a three-dimensional surface through a process known as normal mapping.

Each color channel in a bump map has a meaning:

  1. The red channel defines horizontal facing (X-axis)
    0 = left
    128 = forward (facing viewer)
    255 = right
  2. The green channel defines vertical facing (Y-axis)
    0 = up
    128 = forward (facing viewer)
    255 = down
  3. The blue channel defines height (Z-axis)
    0 = deepest
    127 = maximum depth capable of receiving light
    255 = at the material's surface

The three channels between them allow the engine to calculate a normal vector for every pixel, allowing it to generate shadows and highlights on a two-dimensional surface.

A bump map is largely useless for really flat surfaces like smooth concrete or metal, but even rough concrete sometimes has enough depth to it to make one worthwhile.

See also

Template:Otherlang:en Template:Otherlang:en:jp