Sub topic 11
Packing Islands and Setting Margins
This chapter assumes you can select mesh components, mark seams, unwrap a mesh, and use the UV Editor. The goal is to arrange UV islands so they use the texture space efficiently without bleeding into one another.
Why packing matters
An unwrapped mesh produces UV islands. Each island is a flat group of faces separated from other groups by seams. Packing places these islands inside the 0–1 UV square, which represents the main texture tile.
Packing does three jobs:
- Uses available texture space efficiently.
- Keeps islands from overlapping.
- Adds empty space between islands to reduce texture bleeding.
Texture bleeding happens when filtering samples color from a neighboring island. It is most visible along thin borders, especially in mipmaps and at a distance.
Packing islands in Blender
- In Edit Mode, select all faces of the mesh.
- Open the UV Editor or split the workspace so it is visible.
- In the UV Editor, press
Ato select every island. - Choose
UV > Pack Islands. - Enable rotation if the islands can turn freely.
- Enable scale if Blender should resize islands to fit the available space.
- Set a margin and confirm the operation.
The exact option names can differ slightly between Blender versions. If islands have already been scaled for a shared texel density, avoid options that rescale them independently. Otherwise, a small island may receive more texture resolution than a large island.
| Packing choice | Use it when | Main risk |
|---|---|---|
| Rotate islands | The object has no fixed texture direction | Directional textures may turn unexpectedly |
| Scale islands | The layout must fill the tile automatically | Texel density may change |
| Merge overlapping islands | Overlap is intentional or caused by symmetry | Different faces may share unwanted texture space |
| Add a margin | The texture will be filtered or mipmapped | Too much margin wastes texture area |
Choosing a useful margin
A margin is empty UV space between islands. Choose it based on the final texture resolution and the number of pixels you need between island borders.
For example, on a square 2048-pixel texture, an 8-pixel border is approximately:
margin_fraction = 8 / 2048
print(margin_fraction)This produces 0.00390625. If the Pack Islands operator uses a fraction-based margin, this is a reasonable starting value. For game assets, increase the border when the texture will use strong mipmapping or when islands contain sharp color changes.
Checking the result
After packing, inspect the UV Editor at a zoom level where the gaps are visible. Look for:
- Islands extending outside the 0–1 square.
- Accidental overlaps between unrelated faces.
- Very small gaps around thin islands.
- Rotated islands that break wood grain, fabric weave, or text direction.
- Large unused areas caused by one awkward island.
If the layout wastes space, improve the seams first. A long, irregular island is often easier to pack after it is divided at a hidden edge. Reunwrap the changed region, then pack again.
Exercise
A 2048-pixel texture needs an 8-pixel gap between UV islands. What fraction is a useful starting margin for a square texture?
Show answer
Use 8 / 2048, or 0.00390625, then inspect the result and increase it if mipmapping causes bleeding.