Sub topic 7
Spotting stretching with a checker texture
This chapter assumes you can switch between Object Mode and Edit Mode, select edges and faces, mark seams, and run Unwrap. You should also know that a UV map assigns each vertex of a mesh a 2D position on an image. Here you learn to measure how well an unwrap preserves the shape of the surface, so you can decide whether to fix a seam, pin vertices, or accept the result.
Why the UV layout alone is not enough
An unwrap can look tidy in the UV Editor and still texture badly. The islands may be neatly shaped while the texture on the model is squashed in one area and stretched in another. Distortion is a mismatch between a face's size and shape in 3D and its size and shape in UV space.
Two kinds of distortion matter:
- Area distortion means a face covers more or less of the image than its 3D area warrants. Texture detail looks bigger or smaller on that face than on its neighbors.
- Angle distortion means the corners of a face are skewed in UV space. Squares become diamonds or parallelograms, and a circular pattern turns into an ellipse.
Every unwrap trades one against the other. A surface that is not flat, such as a sphere or a bent pipe, cannot be flattened without some distortion. Seams only reduce it. The goal is to keep distortion low where the viewer will notice it.
The checker texture method
The most direct test is to put a pattern of known shape on the model. A checker texture is a grid of alternating squares. If the UV map is faithful, every square looks square and has about the same size everywhere on the mesh.
Blender includes a generated test image for this purpose.
- In the UV Editor, open the image dropdown in the header and choose New.
- Set Generated Type to UV Grid (or Color Grid). Color Grid adds letters and numbers, which helps you see orientation and mirroring.
- Pick a size such as 2048 × 2048 and confirm.
- In the 3D Viewport, switch to Material Preview or Solid shading with Texture color. In Solid mode, open the Viewport Shading popover and set Color to Texture.
For Solid mode to show the image, the object needs a material that uses it. Assign a material, open the Shader Editor, add an Image Texture node, select the generated image, and connect its Color output to Base Color. You can delete this material later.
Alternatively, run this script to build the material for the active object. It reuses the test image if it already exists.
import bpy
obj = bpy.context.active_object
img = bpy.data.images.get("UV_Checker")
if img is None:
img = bpy.data.images.new(
"UV_Checker", 2048, 2048, alpha=False
)
img.generated_type = 'COLOR_GRID'
mat = bpy.data.materials.new("UV_Checker_Mat")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tree.links
tex = nodes.new("ShaderNodeTexImage")
tex.image = img
bsdf = nodes["Principled BSDF"]
links.new(tex.outputs["Color"], bsdf.inputs["Base Color"])
obj.data.materials.append(mat)Appending to materials adds a new slot. If the object already has materials, select the new slot yourself before judging the result.
Reading the checker pattern
Look at the model from several angles. Use the table to interpret what you see.
| What you see | What it means | Typical fix |
|---|---|---|
| Squares of equal size, square corners | Low distortion | None needed |
| Squares stretched in one direction | Island is pulled along one axis | Add a seam to relieve tension, or relax the island |
| Squares much larger in one area | That region has too much UV area | Scale those faces down in UV space |
| Squares much smaller in one area | That region has too little UV area | Scale those faces up in UV space |
| Squares turn into diamonds | Angle distortion, shear | Try another unwrap method or add pins |
| Pattern lines break at an edge | Seam, or neighboring islands with different scale | Expected at seams, but a size jump means fix the density |
| Letters read backwards | Island is flipped | Flip the island in UV space |
A visible break in the pattern at a seam is normal. A break where there is no seam, or a sudden change in square size across a seam, points to a problem you can fix.
The stretch display in the UV Editor
The checker shows distortion on the model. The UV Editor can also color the islands themselves, which lets you find the worst faces without rotating the model.
In the UV Editor, open the Overlays popover and enable Stretch. Choose a type:
- Angle colors faces by how much their corners are skewed compared with 3D. Blue is low distortion and red is high.
- Area colors faces by how much their UV area differs from their 3D area. Blue means the sizes match.
Use Angle first, since it flags the shear that ruins patterns. Then use Area to find regions that need scaling. In Area mode, a face that is far from its neighbors in scale shows up as a different color.
The overlay does not tell you why a face is distorted. It tells you where to look. Click a red face in the UV Editor with UV Sync Selection on, and the matching face highlights in the 3D Viewport.
Worked example: a cylinder with a lid
Consider a cylinder with a cap on the top. You mark one vertical seam along the side and a ring seam where the cap meets the wall, then unwrap.
On the checker, the side wall shows square cells, because a cylinder is developable. A developable surface can be rolled flat without any stretch. The cap, however, shows cells that shrink toward its rim if the unwrap placed it badly, or squares that look fine if the cap became a disc.
Now change the case. Remove the ring seam and keep only the vertical seam. The cap and the wall must unfold as one piece, and the checker shows heavy stretching near the top edge, with the cells at the rim much larger than at the center. The Area overlay turns those faces red.
The fix is the ring seam. This shows the rule behind the whole chapter: when the checker stretches near a place where the surface changes direction sharply, the usual remedy is another seam at that change.
Common mistakes when checking
- Judging on a low-resolution test image. A 256 px grid looks blocky and hides small distortions. Use 1024 px or more.
- Checking only one view. Stretching often hides on the side facing away from the camera. Orbit the model.
- Ignoring object scale. If an object has non-uniform scale, such as 1, 1, 3, the checker may look stretched even though the UV map is fine. Apply scale with Ctrl+A in Object Mode and re-check before blaming the unwrap.
- Mistaking a seam for a defect. A pattern break exactly on a seam is expected. Look at the size of cells on both sides, not the break.
- Fixing distortion by scaling islands to fill the space. Scaling an island uniformly is fine. Scaling it on one axis only creates distortion.
Checking from a script
You can estimate area distortion numerically. This script compares each face's UV area with its 3D area and prints the faces that deviate most from the average ratio. It runs in Edit Mode on the active mesh with a UV map.
import bpy
import bmesh
obj = bpy.context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
uv_layer = bm.loops.layers.uv.active
def uv_area(face):
pts = [loop[uv_layer].uv for loop in face.loops]
total = 0.0
for i in range(len(pts)):
x1, y1 = pts[i]
x2, y2 = pts[(i + 1) % len(pts)]
total += x1 * y2 - x2 * y1
return abs(total) / 2.0
ratios = []
for face in bm.faces:
a3d = face.calc_area()
if a3d > 0:
ratios.append((face, uv_area(face) / a3d))
mean = sum(r for _, r in ratios) / len(ratios)
worst = sorted(ratios, key=lambda p: abs(p[1] / mean - 1.0))[-5:]
for face, ratio in worst:
print(f"face {face.index}: {ratio / mean:.2f}x average")A value near 1.00 means the face matches the average scale. A face at 2.00 has twice the UV area it should, and one at 0.50 has half. This number measures scale only. It does not catch shear, so use it together with the checker.
Exercises
Exercise
You unwrap a character's arm and the checker squares on the forearm look like long rectangles, but the Area stretch overlay shows mostly blue. What kind of distortion is this, and what do you check first?
Show answer
It is angle distortion (stretching in one direction) that keeps the total area about right. Check the Angle stretch overlay, then check whether the object has non-uniform scale. If scale is applied and the Angle overlay is red, add a seam along the length of the forearm or relax the island.
Exercise
The checker pattern breaks along an edge, and squares on one side are twice the size of squares on the other. Is the break caused by a seam, and what should you do?
Show answer
The break itself is probably a seam, which is normal. The size difference is a texel density problem between two islands. Scale one island uniformly in the UV Editor until the squares match, or use a texel density tool in a later step.