yb_lin

导航

How Do I Use Bump Maps?

Bump maps are grayscale images that you use as a height map on your objects in order to give an appearance of raised or recessed surfaces. Assuming you have a model that looks like this:


The 3D Model

The Texture

We want to make the light parts of the object appear raised.

  1. Draw a grayscale height map of your texture in Photoshop. White is high, black is low. Something like this: 
  2. Save the image next to your main texture.
  3. In Unity, select the image and select the 24 bit RGB format and enable Generate Bump Map in the Import Settings in the Inspector


  1. In the Material Inspector of your model, select 'Bumped Diffuse' from the Shader drop-down: 
  2. Drag your texture from the Project window to the 'Bumpmap' texture slot: 

Your object now has a bump map applied:

Hints

  • To make the bumps more noticable, either use the Bumpyness slider in the Texture Import Settings or blur the texture in Photoshop. Experiment with both approaches to get a feel for it.

posted on 2011-04-22 17:33  废铁  阅读(305)  评论(0编辑  收藏  举报