What are all these texture files?

From Nexus Mods Wiki
Revision as of 17:19, 20 November 2018 by Pickysaurus (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

There are 4 kinds of textures, the diffuse (a.k.a. "color map" or just plain "texture"), specular (shininess), normal (a.k.a "bump map") and glow maps.

Each model must have two textures...a diffuse texture and a normal map. (Menu/2D items do not require normal maps)

Diffuse textures

The diffuse texture is how the object is painted...it wraps around the model based on the defined UV map of the model. The name of the texture and its path is controlled inside the NIF file using the texture path. If the texture cannot be found using the path inside the NIF, the game may crash or the object will appear pink. To update the path, please read this tutorial: How to fix hard-coded texture paths in NIF files.

Specular Maps

Specular maps are used to define an objects shininess and highlight colour. The whiter a pixel, the shinier the surface will appear in-game, meaning surfaces such as stone or old wood tend to have a very dark specular map, while surfaces like silver or plastic would tend to have lighter specular maps.

The colour of a pixel is also used, to calculate the resulting colour of the surface. A very saturated specular map will have a very different visual effect than a grey specular map. If you need a more "neutral" highlight on a surface, your specular map should use the opposite of the diffuse map's colour. Using the same colour on the specular as on the diffuse will result in a more saturated highlight when viewed in the game.

Normal maps

The normal map is how light reacts to the surface of a model giving it fake bumps and groves with high areas being lightly colored and low areas being darker which is controlled by the values of the color used (typically a light violet/blue color). There are many methods and tools to create normal maps. The preferred method is the use of a high resolution model that can be used to "bake" the details into the normal map of a lower-polygon model inside programs such as Blender and 3ds Max. Normals can also be created from the texture files alone. Plugins for 2D image editors like Photoshop, GIMP and Paint.NET can be used to create normal maps however, a specialized tool called CrazyBump can aid in the creation of normal, specular, displacement and occlusion maps. To get a better understanding of what normal maps do in-game, take a look at CrazyBump's intro movie: Creating Materials with CrazyBump. The game engine automatically determines the name of the normal map by using the name of the diffuse texture and adding "_n" to it. Example: Helmet.dds --> Helmet_n.dds. The game can crash if the normal map does not exist...or it can render the object invisible. The specularity (amount of light reflected) is controlled by the alpha channel of the normal map which is why normal maps are always exported in DDS format that retains alpha channels such as DXT5 format.

A further method of normal map creation is AMD GPU MeshMapper. This program takes the details from a high poly model and uses them to create a normal map for lower poly models. See AMD GPU MeshMapper basic usage for more information.

Glow maps

The glow map controls the color and intensity of the glow on the surface of the texture. The game engine automatically determines the name of the glow map (if it exists) by using the name of the diffuse texture and adding "_g" to it. Example: Helmet.dds --> Helmet_g.dds. You could make an object glow by controlling the material settings inside the NIF but that would cause the entire object to glow. Using a glow map allows you to make just certain parts glow. For more details, please read Glowmaps 101.

Alpha channel

Each texture might make use of the alpha channel which is a black-n-white only (or shades of gray). What the alpha channel does depends on what it is used on in the game and which texture it is in. For example, the use of the alpha channel of the diffuse texture to control the amount of transparency of the object (such as glass) but the NIF must be configured to utilize the NiAlphaProperty. The alpha in the normal map controls the amount of shine on the material when light is cast on it. A black alpha channel looks like a very dull material like wood but a white alpha channel makes the material look very shiny / reflective. There are other tricks you can do to make use of special materials to make an uber-reflective materials...Reflective metal

Even though this tutorial was created for Oblivion, it should hold true to Fallout 3 as well since it is the same Gamebryo engine. The reflective metal technique might be a bit different for Fallout 3.

References

LHammonds Oblivion Mods Site