Materials, or Textures, are the designs applied to the surfaces of solids (Brushes). These Materials show what a given solid is made of (brick, steel, sand, etc.). So, while solid Brushes give your level form, Materials indicate function, create atmosphere and bring your level to life. Skilled application of Materials is one of the most important aspects of creating a good level. The tools in the Hammer Editor give you easy access material with various visual properties.
The Materials for the Source Engine are stored in directories within the game directory, separated by logical categories. A material is a text file with the extension .VMT that describes how the Texture is rendered in the engine. VMT files point to the separate Texture files that make up the look of the material. Individual Texture files can be used for color, specularity, transparency, etc. Together, they make up the combined look of the material.
The Textures toolbar shows the current Materials, and lets you select a new material. The Current Texture drop-down list shows the last eight Materials used, then continues with a list of the remaining Materials.
This window contains a list of the Materials currently available. Double-clicking a material in the list selects it as the current material and close the Texture Browser. The material you selected will now appear in the Textures toolbar.
So to apply a material to an object:
- Click Browse... on the Textures toolbar.
- In the Texture Browser, find a material you wish to apply, and double-click it.
- Select a brush you wish to appy the material to with the Selection Tool on the Map Tools toolbar.
- Click the Apply Current Texture button on the Map Tools toolbar.
Texture Application Mode
You will eventually need to modify a Texture in some way, like to rotate or scale it. The Face Edit dialog (Texture Application mode) allows you to manipulate the Texture properties of selected brush faces. Texture Application mode is entered by clicking its icon on the Map Tools toolbar, or by pressing SHIFT+A. To select a brush face, click on it in the 3D view with the left mouse button. To select multiple faces, hold down the Ctrl key while you do this. You can also select multiple Brushes before selecting the Texture Application tool.
See Face Edit for more information on all the capabilties of the Material tab.