Difference between revisions of "Texture Coordinates"

From polycount
Jump to: navigation, search
(more summary, and UV Address Modes)
(UV Tutorials: Howard Day)
Line 29: Line 29:
 
|[[image:skankerzero_uv_mapping_thoughts_p4of4.png|thumb|none]]
 
|[[image:skankerzero_uv_mapping_thoughts_p4of4.png|thumb|none]]
 
|-
 
|-
|colspan="4"|UV mapping thought process. Images by [http://www.skankerzero.com/ Jesse "skankerzero" Sosa].
+
|colspan="4" style="color:grey;"|UV mapping thought process. Images by [http://www.skankerzero.com/ Jesse "skankerzero" Sosa].
 
|}
 
|}
  
Line 37: Line 37:
 
|}
 
|}
  
 +
* [http://www.polycount.com/forum/showpost.php?p=2287027&postcount=33 Seamless UVs for baking procedural textures in 3ds Max] by [http://www.hedfiles.net/ Howard Day].
 
* [http://www.polycount.com/forum/showthread.php?p=1367536 UV Unwrapping Best Practice Factors & Priorities] Polycount Forum thread.
 
* [http://www.polycount.com/forum/showthread.php?p=1367536 UV Unwrapping Best Practice Factors & Priorities] Polycount Forum thread.
 
* [http://www.polycount.com/forum/showthread.php?t=134749 3DS Max - UVing complex objects] Polycount Forum thread, UVs for complex cylindrical-shaped meshes.
 
* [http://www.polycount.com/forum/showthread.php?t=134749 3DS Max - UVing complex objects] Polycount Forum thread, UVs for complex cylindrical-shaped meshes.

Revision as of 10:52, 24 April 2015

Texture coordinates, also called UVs, are pairs of numbers stored in the vertices of a mesh.

These numbers are often used to stretch a 2D texture onto a 3D mesh, but they can be used for other things like coloring the mesh (see Vertex color), controlling the flow across the surface (see Flow map), etc.

Game engines commonly use two texture coordinates, U and V, for mapping the width and height of a texture. A third axis W can also be used for depth if you are using a 3D volume texture, but usually this coordinate is removed for efficiency.

Texture coordinates are measured in a scale of 0.0 to 1.0, with 0.0 and 1.0 at opposite sides of the texture. When a model has a UV distance greater than 1 (for example, UV goes from -1 to 2) then the texture will tile across the model.

These numbers are usually hidden from the artist, replaced by helpful visual representations of how the textures are projected. Planes, cylinders and spheres help the artist align the textures in a visual way, but it helps to know that games only see the UV numbers that these shapes create.

UV Address Modes

Border, Clamp, Mirror, and Wrap are four common methods for controlling how a texture is rendered when the UVs go beyond the 0-1 square.

The default is usually Wrap, which means the texture will tile. Border, Clamp, and Mirror are helpful in specific situations.

Border is good for use with decals, since you don't want the edges to tile and cause rendering seams.

Clamp is great for use with cubemaps, since you don't want seams to appear along the edges of each cube face.

Mirror has a tendency to create Rorschach/butterfly artifacts, but could be useful in certain situations.


UV Tutorials

Skankerzero uv mapping thoughts p1of4.png
Skankerzero uv mapping thoughts p2of4.png
Skankerzero uv mapping thoughts p3of4.png
Skankerzero uv mapping thoughts p4of4.png
UV mapping thought process. Images by Jesse "skankerzero" Sosa.
An automated UV projection network in Maya.
Image by Paul "prolow" Lohman.
How to edit multiple UV channels in 3ds Max.
Image by Carlos "cman2k" Montero.

UV Tools

Standalone

(Standalone means not integrated into one of the main 3d packages)

3ds Max

Maya

Softimage / XSI

UV Map Grids

The grid is a texture to use while unwrapping a mesh. Sometimes called a custom UV map template, a UV checker, or a test grid.

Good things to have in a UV map grid:

  • A large checker grid to see large distortions.
  • A fine per-pixel grid to see small distortions.
  • Circles help with solving distortion, as it's easier for the human eye to see when a circle is distorted than a square.
  • Unique colors across the map, to see where the UV is tiling.
  • Letters and/or numbers to see when the UV is reversed.
  • Letters and/or numbers to see where a mesh feature is located in UV space.
Uvrefmap blackwhite.jpg
Uvrefmap blender.jpg
Uvrefmap checker green.gif
Uvrefmap checker util-mark.jpg
Uvrefmap checkeredmap.jpg
Uvrefmap circles.jpg
Uvrefmap circles letters.jpg
Uvrefmap circles noise.jpg
Uvrefmap circlesgreen noise.jpg
Uvrefmap circlessquares.jpg
Uvrefmap grid large.jpg
Uvrefmap grid small.jpg
Uvrefmap HarlequiN grid.jpg
Uvrefmap nvidia greengrid.jpg
Uvrefmap util-mark1.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Tools