Texturing

UV Mapping Explained

By RenderAngel Editorial Team · · 5 min read

A 3D model has a surface, and a texture is a flat image. To paint a wooden grain or a printed label onto a curved object, the software needs to know which part of the image belongs to which part of the model. UV mapping provides that link.

The process sounds technical, but the core idea is easy: you flatten the model's skin onto a 2D sheet, the way you might cut open a cardboard box and lay it flat.

What U and V Mean

Most 3D programs use X, Y and Z for positions in 3D space. Texture coordinates use different letters, U and V, to avoid confusion. U runs horizontally across the texture, and V runs vertically. Both usually range from zero to one, so the entire image fits inside a square called UV space.

Every vertex of a model stores a pair of U and V values that point to a spot on the texture. During rendering, the software interpolates between those spots across each face, so every pixel on the surface knows which color to pick up from the image.

The Idea of Unwrapping

Imagine peeling an orange and pressing the peel flat. It would tear and stretch. A 3D surface that curves in more than one direction cannot be flattened perfectly without some distortion or cuts. UV unwrapping deals with the same problem.

To unwrap a model, you mark certain edges as seams. The software cuts the mesh along the seams and lays the resulting pieces, called UV islands, flat on the 2D sheet. A cube might become a cross shape of six squares. A cylinder might become a rectangle for the side plus two circles for the caps.

Seams: Where to Cut

Choosing seam locations is the most important creative decision in UV mapping. A seam creates a visible boundary in texture space, and if the texture is painted without care, the seam can show up on the finished model as a visible line.

Good seam placement follows a few ideas:

  • Hide seams in places the camera rarely sees, such as the underside of an object, inside a crease or along natural edges.
  • Follow hard edges where the surface already changes direction, so a break in the texture looks natural.
  • Keep islands manageable. Too many small islands waste space and make painting harder. Too few cause heavy stretching.
  • Think about the texture. A repeating pattern like wood grain should flow in a sensible direction across connected pieces.

Stretching and Distortion

When flattened pieces do not match the original surface proportions, textures look stretched or squashed. A checker pattern is the classic test. Apply a checkerboard image to the model, and look for squares that turn into rectangles or diamonds.

Aim for squares that look square and roughly equal in size across the model. Some distortion is unavoidable on organic shapes, but it should be minimal in visible areas.

Texel Density

Texel density is the number of texture pixels per unit of surface. If one part of a model has a high density and another has a low one, the high-density area will look sharp and the low-density area will look blurry. For a consistent look, scale the UV islands so the density is roughly equal, giving more space to the areas the viewer sees up close, such as a character's face, and less to hidden parts.

Packing the Islands

After unwrapping, arrange the islands inside the zero to one square so they use the space efficiently without overlapping. Leave a small gap, called padding, between islands. Without padding, colors from neighboring islands can bleed together when the texture is reduced in size or filtered.

Many programs offer an automatic packing tool. It is a good first pass, and manual adjustments can improve it.

Overlapping and Mirroring

Sometimes overlapping UVs on purpose is a smart choice. If a model is symmetrical, the left and right halves can share the same texture space, which doubles the available resolution for the remaining details. The same trick applies to repeated parts such as bolts or tiles.

The trade-off is that overlapped islands show identical details, and they cannot hold unique marks such as a scratch on one side only. They can also cause problems when baking lighting data, so use them with care.

Common Unwrapping Methods

  • Projection mapping (planar, cylindrical, spherical, box) projects the texture onto the model from a shape. It is quick and works for simple objects.
  • Automatic unwrapping analyzes the mesh and chooses seams for you. It is useful for a quick result.
  • Manual unwrapping with chosen seams gives the most control and is the usual choice for important assets.
  • Tiling textures for floors and walls often use a simple planar map, since the texture repeats.

A Basic Workflow

  1. Finish the model's shape first, since later edits can break the UVs.
  2. Mark seams in sensible places.
  3. Unwrap the mesh.
  4. Apply a checker texture and look for distortion.
  5. Adjust seams or relax the islands where needed.
  6. Scale islands to a consistent texel density.
  7. Pack the islands with padding.
  8. Export or bake your textures.

Frequently Asked Questions

Do I need UV maps for every 3D model?

Not always. Models that use only solid colors or procedural materials, which are generated by math, do not need UVs. Anything that uses image textures, such as painted or photographed surfaces, does.

Why do I see a line on my model where the texture meets?

This is a visible seam, often caused by a texture that does not match across the cut, by missing padding, or by a normal map baked without care. Move the seam to a less visible place, increase padding or adjust the texture painting to continue across the boundary.

Can I change the UVs after I have painted the texture?

You can, but the painted texture will no longer line up unless you re-project or re-bake it. It is best to finalize the UV layout before painting.

Related reading