Troubleshooting Normal Bump Maps

Because of the variety of geometry and different situations that can arise, normal bump maps sometimes give unexpected results. Usually there is a workaround for the problem, or more than one. This topic describes some situations that can arise, and ways to correct them.

Parallel Projection Loses Detail

If the projection cage is set up so projected rays run parallel to part of the high-resolution geometry, that portion of geometry can be lost in the normal bump map.

For example, in this scene, the normal bump map is based on a high-resolution cylinder that has indentations at the top and bottom.

Default cage around high-res cylinder

However, the normal bump map does not show the end indentations.

Indentation is missing from top and bottom of the cylinder's normal bump map.

The reason is that with the default projection cage, the rays parallel the sides of the indentation, and so details are lost.

Projection rays (shown in red) parallel the sides of the indentation.

To correct the problem, you can move the end of the cage upward, and scale it inward a little, so the rays don't run so nearly parallel to the side of the indentation.

Raising and scaling the upper end of the projection cage.

When the cage is adjusted this way, the indentation appears in the normal bump map.

With the corrected cage, the upper indentation appears correctly in the normal bump map.

Tip: In situations like this, another solution can be to use Break on the vertices in the region of the low-resolution object where detail is missing from the map. This increases the number of vertices in the cage, and reduces the chances of geometry being missed. If you use this method, it is likely you will need to make further adjustments to the projection cage, as well.

Breaking low-res vertices causes the indentations to render in the normal bump map. However, projection now misses some areas of the geometry, so the cage needs to be adjusted further.

Flipped Seams in Tangent Space

When you use tangent space for your normal bump map, usually the values used for the tangents are consistent between the hardware shader, renderers, and third-party applications. However, sometimes portions of the geometry are flipped, relative to each other, causing discontinuities when you render or use a hardware shader. Tangent space is the default option for normal bump mapping, and it is the method you should use for objects that both move and deform, such as animated characters. This problem does not arise when you use the other coordinate spaces: world, screen, or local.

For example, in the following scene, the pants show discontinuities. They are flipped relative to each other, as the arrows show.

Flipped seams in rendering of pants

Left: Left side shows a discontinuous red stripe.

Right: Right side shows a discontinuous blue stripe.

The arrows show how the maps are misaligned.

When you render a normal bump map, you can generally see flipped areas as showing a “flare” of reddish color to the right, and of bluish color to the left.

Uncorrected normal bump map shows blue and red “flares.”

The solution is to use the UVW Unwrap modifier's Flip Horizontal command for those sub-object selections that show flaring, or an excess of red areas.

Normal bump maps corrected using Flip Horizontal. Red and blue are more evenly distributed, with blue predominating.

With the maps corrected, the full rendering, whether with 3ds Max or a hardware renderer, looks better.

Corrected normal maps render more smoothly, without discontinuity.

The arrows show how the maps are correctly aligned to wrap around the pant legs.

Overlapping UV Coordinates

Overlapping UV coordinates can cause rendering errors in Render To Texture. The problem is especially noticeable on objects that have mirrored UVs, or symmetrical mapping. If you are working with a character or other model that has mirrored UVs, we recommend that you follow this procedure:

  1. Either add an Unwrap modifier or go into an existing Unwrap modifier where the symmetry exists.
  2. Move half of the overlapping texture coordinates on the W axis so that they’re slightly offset from the other half.

    Render To Texture will use the texture coordinates with the higher W value.

Edit Normals Modifier Makes Normal Bump Mapping Incorrect

Don't apply an Edit Normals modifier to the low-res object. Normal bump projection relies on the low-res object having standard normals, and altering them causes normal bump maps to have unpredictable results.