Hammer Decal Tool

From Valve Developer Community
Jump to: navigation, search
Русский 日本語
float

The Apply Decals tool is used to place decals upon objects. A decal is a texture that can be placed on top of another texture, combining the two. Common examples include scorch marks or bullet holes. Use Apply Decals to place a decal in the 3D window. Each usage of Apply Decals creates a special decal entity that projects the decal texture onto other nearby solid surfaces. These decal entities can be moved around in the world, and will appear on any objects they cover.

A group of decals.

Decal textures can be viewed and selected in the Textures window. Half-Life's decal textures are designated by the use of a "{" as the first character in the texture name. Decals are created by clicking on surfaces in the 3D view, and can be moved or deleted in the 2D views.

To place a decal:

  1. Select the Selection Tool as the active tool.
  2. Activate the Apply Decals mode by clicking on the button.
  3. Click Browse on the Texture Toolbar and pick a material for the decal from the Texture Browser.
  4. Turn on 3D Texture Polygons mode, so you can see the texture you are placing the decal upon.
  5. Click a solid surface in the 3d view to place the decal.
  6. Click-drag the new decal object in any 2D view if you wish to move it.
  7. Deactivate the Apply Decals Tool when you are finished creating decals.

Decals versus overlays

Individual decals are relatively inexpensive to render and can be used to add detail, break repetition, and create effects you cannot with standard textured surfaces alone. Decals however have a limitation in the fact they are always the same size and you have no control over orientation as it is decided by the face underneath the decal. Overlays allow those features but have a (slightly) higher cost to render. For most cases, overlays should be used instead of decals. The main advantage of decals is their ability to be enabled and disabled via inputs.

Performance

While decals are generally inexpensive, they can affect performance significantly if improperly used. Decals are rendered on top of surfaces they are applied to, and generate alpha blended polygons for each surface they are projected onto. Be careful about overlapping decals on top of each other, or on top of other expensive materials, as this is increasingly costly to render. Large numbers of decals covering large amounts of screen space can be expensive.

See also