Bump Mapping - Bump Mapping Basics

Bump Mapping Basics

Bump mapping is a technique in computer graphics to make a rendered surface look more realistic by simulating small displacements of the surface. However, unlike traditional displacement mapping, the surface geometry is not modified. Instead only the surface normal is modified as if the surface had been displaced. The modified surface normal is then used for lighting calculations as usual, typically using the Phong reflection model or similar, giving the appearance of detail instead of a smooth surface.

Bump mapping is much faster and consumes less resources for the same level of detail compared to displacement mapping because the geometry remains unchanged.

There are primarily two methods to perform bump mapping. The first uses a height map for simulating the surface displacement yielding the modified normal. This is the method invented by Blinn and is usually what is referred to as bump mapping unless specified. The steps of this method is summarized as follows.

Before lighting a calculation is performed for each visible point (or pixel) on the object's surface:

  1. Look up the height in the heightmap that corresponds to the position on the surface.
  2. Calculate the surface normal of the heightmap, typically using the finite difference method.
  3. Combine the surface normal from step two with the true ("geometric") surface normal so that the combined normal points in a new direction.
  4. Calculate the interaction of the new "bumpy" surface with lights in the scene using, for example, the Phong reflection model.

The result is a surface that appears to have real depth. The algorithm also ensures that the surface appearance changes as lights in the scene are moved around.

The other method is to specify a normal map which contains the modified normal for each point on the surface directly. Since the normal is specified directly instead of derived from a height map this method usually leads to more predictable results. This makes it easier for artists to work with, making it the most common method of bump mapping today.

There are also extensions which modifies other surface features in addition to increase the sense of depth. Parallax mapping is one such extension.

The primary limitation with bump mapping is that it perturbs only the surface normals without changing the underlying surface itself. Silhouettes and shadows therefore remain unaffected, which is especially noticeable for larger simulated displacements. This limitation can be overcome by techniques including the displacement mapping where bumps are actually applied to the surface or using an isosurface.

Read more about this topic:  Bump Mapping

Famous quotes containing the word bump:

    Physics investigates the essential nature of the world, and biology describes a local bump. Psychology, human psychology, describes a bump on the bump.
    Willard Van Orman Quine (b. 1908)