1. Computing

How To Create A 3D Bump Map in Photoshop

By

How To Create A 3D Bump Map in Photoshop
3D bump maps are maps used in 3D modeling to artificially create raised textures without having to model the individual details. Trying to model detailed textures can create a mess of thousands of extra polygons, multiply the time to model exponentially, create unrealistic looking models, and increase rendering time and processing power to ridiculous amounts. Without realistic 3D textures, though, 3D models look flat and lifeless.

Bump maps are the answer; they're layered under full-color painted texture maps, use grayscale to tell 3D modeling programs how far to extrude polygonal surfaces, with black representing the highest extreme of extrusion and white representing the flattest areas, while shades of gray represent grades in between. For example, if you were texturing a lizard's skin, a bump map for the skin could use a mid-level gray as a baseline for the skin surface, with white for the deepest cracks and darker gray spots representing the raised, pebbled areas--all of this without modeling a single bump or crack. You can even use it to make facial highlights and shadows seem more realistic, or add details such as folds and wrinkles to a model's clothing or armor.

Creating a bump map in Photoshop is easy, especially if you've already created a texture map with highlights and shadows painted in color. The basic steps:

  1. Either open your existing colored texture map or create one in Photoshop using paint tools. If you're just looking for a generic texture and not something specific like facial shading, you can use layer styles such as the Pattern Overlay to generate a repeating texture. For specifically painted detail, you'll need the exact map to make sure that the color-painted highlights and shadows line up with the bump map's texture extrusions.
  2. Save a grayscale copy of the map. To turn a color version into a grayscale version, use the Desaturate function under the Image-->Adjustments menu. If you've generated your texture using layer styles and pattern overlays, you may need to flatten the layer so your adjustments affect the texture and not just the base color underneath.
  3. Depending on the type of shading you've done, you may need to invert the image. In the original color version you'd have painted shadows dark, and more elevated areas would be brighter, more exposed to the lighting / tone in the shading. In the bump map, though, the lighter areas are lower while darker areas are higher, so leaving it as-is would create the opposite effect from what you're going for: raised shadows and sunken highlights. You can find the Invert function in the same place you found the Desaturate function, under the Image-->Adjustments menu.
  4. You may need to tweak the bump map to increase the contrast between lighter and darker areas. Using it as-is may not create the depth of detail that you're looking for in your texture. You can use the Brightness / Contrast tool under the Image-->Adjustments menu to sharpen the image and increase the contrast.
  5. Save the file--preferably in a lossless format with a high level of detail, like BMP / bitmap, though you'll need to check your 3D program for image format compatibility.

Once you've created your bump map, all you need to do is import it into your 3D animation program. Different programs have different ways of integrating bump maps into a model or polygon surface, but the controls for the bump map should allow you to define a range to make sure the raised textures and depressions don't extrude to extremes or scale down so small that they hardly show.

©2014 About.com. All rights reserved.