UV map: Difference between revisions
mNo edit summary |
m (Robot: fixing template case.) |
||
Line 13: | Line 13: | ||
* To UV map [[Decals]] use [[Hammer Decal Tool]]. | * To UV map [[Decals]] use [[Hammer Decal Tool]]. | ||
* To UV map [[Overlays]] use [[Hammer Overlay Tool]]. | * To UV map [[Overlays]] use [[Hammer Overlay Tool]]. | ||
* [[Valve Material Type]] files can also specify UV mapping adjustments for each VTF seperately, via the [[$basetexturetransform]], [[$bumptransform]], etc VMT parameters. ({{ | * [[Valve Material Type]] files can also specify UV mapping adjustments for each VTF seperately, via the [[$basetexturetransform]], [[$bumptransform]], etc VMT parameters. ({{TODO|confirm: this only works for VMTs applied to Brushes, not to Models?}}) | ||
** U (horizontal) and V (vertical) coordinates are calibrated from 0 to 1, so "0.5 0.5" is always the center of the VTF. | ** U (horizontal) and V (vertical) coordinates are calibrated from 0 to 1, so "0.5 0.5" is always the center of the VTF. | ||
** UV coordinates : <code>"center"</code> and/or <code>"translate" "<0.0 - 1.0 U> <0.0 - 1.0 V>"</code> | ** UV coordinates : <code>"center"</code> and/or <code>"translate" "<0.0 - 1.0 U> <0.0 - 1.0 V>"</code> |
Revision as of 20:17, 19 January 2009
A UV map is a part of an object's geometry. It defines which areas (using UV coordinates) of a 2D pixelmap should be rendered on which polygonal surfaces (using XYZ coordinates) of a particular 3D mesh. A UV map does not contain any pixel data (eg color, etc). It is only a matrix relating 2D to 3D coordinates.
In Source, the object's UV map takes the name of a Material (VMT) file and reads the pixel data from the same UV area of each VTF in the texture stack. Therefore one UV map imports data from the colormap, bumpmap, opacitymap, specularmap, etc as though they were one image (with enormous bitdepth!). Thus the object's Material can easily be changed without having to rebuild the UV map.

UV Mapping, or Texture Mapping, is the process of aligning Polygons to Pixels.
- To UV map Models use XSI Texture Editor (or equivalent).
- To UV map Brushes use Hammer Face Edit Dialog (and the Paint Alpha Dialog for blending Materials on Displacements).
- To UV map Decals use Hammer Decal Tool.
- To UV map Overlays use Hammer Overlay Tool.
- Valve Material Type files can also specify UV mapping adjustments for each VTF seperately, via the $basetexturetransform, $bumptransform, etc VMT parameters. (Todo: confirm: this only works for VMTs applied to Brushes, not to Models?)
See Also
- wikipedia:UV mapping and wikipedia:Texture mapping for the theory.
- The layout of a complex Model Skin is comparable to a wikipedia:Texture atlas.
- wikipedia:UVW mapping (used in 3DS Max only?)