Difference between revisions of "UV map"

From Valve Developer Community
Jump to: navigation, search
m (Remove a no longer working link)
 
Line 3: Line 3:
 
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.  
 
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 is stored in a [[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.
+
Materials apply the pixel data of each VTF (base map, normal map, specular mask) to same UV area of the model. Therefor the model's material can easily be changed without having to create additional UV maps.
  
 
{{note|Models tend to have a more complex mesh than brushes, which makes UV mapping much more fiddly. Model VTFs therefore tend to be created specially to map easily and efficiently onto one specific model only. Models may use multiple (alternative) skins, so long as the layout of each VTF corresponds to the model's [[UV map]].}}
 
{{note|Models tend to have a more complex mesh than brushes, which makes UV mapping much more fiddly. Model VTFs therefore tend to be created specially to map easily and efficiently onto one specific model only. Models may use multiple (alternative) skins, so long as the layout of each VTF corresponds to the model's [[UV map]].}}

Latest revision as of 00:01, 31 December 2020

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.

Materials apply the pixel data of each VTF (base map, normal map, specular mask) to same UV area of the model. Therefor the model's material can easily be changed without having to create additional UV maps.

Note.png Note: Models tend to have a more complex mesh than brushes, which makes UV mapping much more fiddly. Model VTFs therefore tend to be created specially to map easily and efficiently onto one specific model only. Models may use multiple (alternative) skins, so long as the layout of each VTF corresponds to the model's UV map.


UV Mapping, or Texture Mapping, is the process of aligning Polygons to Pixels.


See Also