Sub topic 2
Why a mesh needs seams
This chapter explains why Blender cannot flatten most 3D surfaces without cutting them, and what a seam does about it. It assumes you can move around the 3D Viewport, switch between Object Mode and Edit Mode, and select vertices, edges, and faces. You should also know in general terms that a texture image gets applied to a model. You do not need to have marked a seam yet. That comes in the next chapter.
The problem: flattening a curved surface
A UV map stores, for every corner of every face, a 2D coordinate in a flat square called UV space. To texture a model, Blender looks up the colour in the image at that 2D coordinate and paints it onto the 3D surface. So the job of unwrapping is to lay your 3D surface flat while keeping each face close to its original shape and size.
Some surfaces flatten without any trouble. A sheet of paper rolled into a tube is the usual example. You can cut nothing, unroll it, and every part keeps its proportions. Mathematicians call such a surface developable.
Most models are not developable. A sphere is the standard example. Try to flatten a globe onto a table and something has to give. Either the poles stretch, or the surface tears. Map makers face the same problem, which is why every world map is a compromise. A flat map of the Earth shows Greenland far too large, or cuts the oceans apart, or both.
The same limit applies to your mesh. Any surface with curvature in two directions at once, such as a dome, a nose, a knee, or the end of a cylinder, cannot be laid flat without changing the distances between points. The change shows up as distortion in the texture.
What distortion looks like
Distortion comes in two forms, and you will meet both.
- Stretching. A face is larger or thinner in UV space than it should be relative to its 3D shape. A square texture tile appears smeared along one direction on the model.
- Scale mismatch. A face is uniformly bigger or smaller in UV space than its neighbours. Details look sharper on one part of the model and blurrier on another. This is a texel density problem, covered in a later chapter.
Seams address stretching. They do not fix scale mismatch by themselves.
What a seam does
A seam is an edge you mark to tell the unwrap algorithm, "cut the mesh open here." During unwrapping, Blender treats a seam edge as a boundary. The faces on either side of it are no longer required to stay joined in UV space. Each can move apart from the other.
Cutting along seams splits the mesh into pieces. Each connected piece is called a UV island. The algorithm flattens every island separately and places the islands in UV space.
A seam does not change your 3D mesh at all. The geometry stays connected in the 3D Viewport. The seam only changes how the UV coordinates are calculated. You can add or remove seams as often as you like and the model itself will not change.
Think of a cardboard box taken apart. The box is a 3D object. Cut along some of the edges and you get a flat shape you can print on. The cuts are the seams. Without them the box cannot lie flat, and with too few of them it only partly flattens.
Why cuts reduce distortion
Cutting gives the surface room to relax. A sphere with no seams cannot be flattened at all, since it has no boundary to open from. Add a single seam running from the top to the bottom and the surface can peel open into one flat island, like an orange peel pressed flat. It still distorts, mostly near the poles and at the widest part, but the result is usable. Add more cuts and each island becomes closer to a developable shape, so the distortion drops.
This is the central trade-off in seam work. More seams mean lower distortion and also more islands. The table below shows what each side costs you.
| Row | Fewer seams | More seams |
|---|---|---|
| Distortion | Higher, especially on strongly curved areas | Lower, since each island is closer to flat |
| Visible texture breaks | Few | More places where the texture can mismatch |
| Wasted texture space | Less, because the islands are large | More, because there are gaps between small islands |
| Painting effort | Easier to paint across large areas | Harder, since paint must be matched across cuts |
The goal is neither the fewest nor the most seams. It is enough cuts to keep distortion acceptable, placed where they cause the least harm. Choosing those places is the subject of a later chapter on seam placement.
Why seams show up in the texture
Both sides of a seam are the same edge in 3D, but in UV space the two sides end up in different places. The texture may not match exactly across that edge. Possible causes include a different orientation of the two islands, a slightly different scale, and pixels from one island bleeding into the other when the image is filtered. The result is a visible line on the model.
You cannot avoid this completely, so you manage it:
- Put seams where the eye does not look, such as under an arm, along the inside of a leg, or at a natural edge on a hard-surface part.
- Put seams where the texture already changes, such as along a panel line or the border between two materials.
- Leave a small gap, called a margin, between islands so pixels do not bleed across. Margins are covered in the packing chapter.
Seams versus sharp edges
Blender has several edge flags, and beginners often mix them up. They do different jobs.
| Edge flag | What it controls | Affects UVs? |
|---|---|---|
| Seam | Where the mesh is cut for unwrapping | Yes |
| Sharp | Where shading is split into a hard edge | No |
| Crease | How strongly a subdivision surface keeps its edge | No |
| Bevel weight | How much a Bevel modifier rounds the edge | No |
Marking an edge sharp does not cut the UVs, and marking a seam does not change the shading. The two are often placed on the same edges for hard-surface models because a hard edge is also a good place to cut. A later chapter shows how to use that to mark seams quickly.
Seams are stored on the edges
In Blender, the seam flag belongs to an edge. You can read it from a script. This short example prints how many edges in the active mesh are currently seams:
import bpy
import bmesh
obj = bpy.context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
seam_count = sum(1 for edge in bm.edges if edge.seam)
print(f"{seam_count} of {len(bm.edges)} edges are seams")Run it from the Text Editor while the object is in Edit Mode. The count changes as you mark and clear seams. Seams are drawn as red lines in the viewport, so you can compare the number with what you see on screen.
How seams fit into the process
The whole workflow has a fixed order, and this chapter covers the first step of it.
Notice the loop from the check back to the seams. It is normal to unwrap, find stretching, add a seam, and unwrap again. Seam work is iterative.
Common mistakes at this stage
- No seams on a closed shape. Unwrapping a sphere or cube with no seams gives a collapsed or badly squashed result, because there is no opening to flatten from.
- Too many seams. Cutting every edge produces a pile of tiny islands that are hard to pack and hard to paint.
- Treating seams as changing the model. If the 3D shape looks wrong, the cause is not the seams. They only affect UVs.
- Confusing seams with sharp edges. Check that you marked the right flag. Red edges are seams. Cyan edges are sharp.
Exercise
A cylinder has a top cap, a bottom cap, and a curved side. You mark one seam along the full height of the side and unwrap. The side flattens into a clean rectangle, but the caps are squashed. Why does the side work with one seam, and what would you add so the caps work too?
Show answer
The side of a cylinder is a developable surface, so one cut lets it unroll into a rectangle with no distortion. The caps are connected to the side along their circular edges, so they are pulled into the same island and squashed. Mark the two circular edges where each cap meets the side as seams. Each cap then becomes its own island and flattens as a circle, while the side stays one rectangle.
Exercise
You marked an edge as sharp and unwrapped, but the UV islands did not change. What is the likely reason, and how do you fix it?
Show answer
Sharp edges only split the shading, and they do not cut the UVs. To cut the UVs, mark the edge as a seam (Edge > Mark Seam in Edit Mode) and unwrap again.