Next, let's make the surface look more metallic and less plastic. Similar to the Specular
color for plainly colored shiny materials, multimapped materials have a SpecularMap
layer that defines varying degrees of shininess of the surface.
Using a graphic editor, you can create a specular map from an existing diffuse texture as follows:
Copy the
DiffuseMap tank_diffuse.jpg
image as a template and save it astank_specular.jpg
.Desaturate the image (decrease contrast and brightness) so the whole map is evenly medium gray.
Paint white and light gray over areas of the hover tank that you want to be smooth and shiny.
Paint black and dark gray over dull, rough, worn-out areas of the hover tank.
The resulting SpecularMap
typically looks similar to a grayscale version of the color map. A working example is included as assets/Models/HoverTank/tank_specular.jpg
.
Let's apply what you learned about texture mapping in HoverTank.java
. Add the following lines to the...