Painting a bump map texture
 
 
 

Next, you’ll paint a bump pattern on Dino. In Maya, a bump texture creates the illusion of surface relief. It does this by perturbing the surface normals to make the surface appear bumpy. This is useful for making Dino’s skin appear more “reptile-like”.

To paint a bump map texture

  1. In the 3D Paint Tool window, click Reset Tool to return to the default settings.
  2. In the File Textures section, set the Attribute to Paint setting to Bump Map.
  3. Click Assign/Edit Textures.

    The Assign/Edit Textures window appears.

    Earlier in the lesson, your painting affected only the Color attribute. To paint bumps, it’s necessary to select a BumpMap as the new attribute you want to paint, and then assign a new texture for the bumps you’ll create.

  4. In the Assign/Edit Textures window, set both Size X and Size Y to 512 and then click Assign/Edit Textures.

    Maya creates a file texture and applies it to the Bump Map attribute of the DinoSkin material.

    In the scene view, Dino’s color changes to white. Bump map textures are based on grayscale colors. By default, when you create a rendered image, bumps will appear in the areas of the surface where there is significant grayscale color contrast. For instance, if a region has black and white stripes, you’ll see grooves there. Regions with little or no contrast display no bump.

    The bumps will not show in the scene view; you must create a rendered image in order to see them. The same is true when you paint certain other attributes, such as Transparency and Incandescence.

    Before you paint bumps on Dino, you must set up the Maya panels so you can interactively see the results of your strokes in a rendered image.

  5. Select Panels > Layouts > Two Panes Stacked.
  6. In the bottom panel, select Panels > Panel > Render View.

    Maya now displays the perspective view, the Render View, and the 3D Paint Tool settings. With this arrangement, you’ll be able to see your strokes render as you paint.

  7. In the perspective view, move the camera to a close-up view of Dino’s side.
  8. In the Render View, select IPR > IPR Render > persp. This renders an image of Dino in the Render View.
  9. In the Render View, drag a selection box around Dino’s midsection and hump.

    This region will update when you paint.

    For the IPR renderer to render bumps as you paint, you must update the bump map texture after each stroke. You can set this to occur automatically.

  10. In the File Textures section of the 3D Paint Tool settings, turn on Update on Stroke.

    For a grooved bump effect, you need to change the brush shape.

  11. In the Brush section of the 3D Paint Tool settings, click the Browse button.
  12. Select the hatch.jpg brush and click Open.
  13. Paint on Dino’s side.

    Notice the Render View updates with each stroke.

    The bumps appear as grooves in Dino’s surface because you painted contrasting black stripes on the white texture. In general, gray or black over a white background results in bumps that appear indented.

    If you wanted bumps that appear raised on the surface, you could start with a black background and paint gray or white over it. For example, you could flood the texture with a black Flood Color, then paint white or gray strokes rather than the default black.

    Greater contrast between the background color and the color you paint results in deeper-looking bumps. Less contrast results in more subtle bumps. In the previous step, you painted using a black color, resulting in prominent bumps. If you change the Color setting to a light gray and paint on the white background, only subtle bumps will appear.

    This concludes the lesson.

  14. Before doing other lessons, restore the Channel Box in the Maya window.
  15. Select Display > UI Elements > Channel Box/Layer Editor.