Basic Usage And Options
After you have installed UVPackmaster, you will see it provides a ton of different options. Fortunately, you don’t need to tweak anything in order to perform a basic packing operation. The default packing mode used by the packer is Single Tile - the most straightforward and intuitive mode which packs a set of UV islands into the unit UV square. Simply select UV islands you want to pack and press the Pack button. You will see your islands packed to the unit UV square immediately.
Precision
The most essential option you should pay attention to at the beginning of using the packer is Precision (in the Packing Options subpanel). It determines how exact the engine will be when packing UV islands. On the one hand, the greater the Precision value, the better quality of packing. On the other hand, greater Precision means a longer packing time, which is why you should increase this parameter carefully. The initial Precision value is 500 – it should be sufficient for most cases. If you want to achieve more exact margins (in pixels), sometimes you will have to increase this parameter, to 1000 at maximum. Greater values will only be needed in very rare cases, when you want to achieve very small margins between islands (e.g. 1 pixel in a 4K texture). Generally you should avoid setting Precision to a value greater than 1000 as it will increase the packing time considerably.
Keep in mind that setting Precision to a too low value might result in overlapping UV islands after packing. You should not worry much about it though – the packer automatically checks for overlapping islands after packing is done. It will select the problematic islands and show you an appropriate notification.
Margin
The Margin parameter from the Packing Options subpanel implements the so-called basic margin (in contrast to Pixel Margin). It determines the distance between resulting islands after packing. Packing with the use of basic margin is fast, but you should be aware that the value of margin is applied to islands before packing. After packing is done the UV islands are scaled (to fit the packing box), and so is the margin value which was originally applied. That is why it is difficult to predict the exact distance between islands in the resulting UV map when using the basic margin functionality. If you want to specify the exact margin between islands (in pixels), you should use the Pixel Margin option. The default value of the Margin parameter (0.003) is a good one to start with.
Rotation Step
The Rotation Step parameter determines how many orientations of every island will be taken into consideration during packing. This parameter is expressed in degrees. For example: if the parameter is set to 90 (degrees), then 4 orientations will be taken into account: the basic orientation (island rotated by 0 degrees), island rotated by 90 degrees, island rotated by 180 degrees and island rotated by 270 degrees. If the step is set to 45 degrees, then 8 orientations will be processed etc. For efficiency, the preferable value of the Rotation Step parameter should be a divisor of 90 (i.e. one of the values from: 1, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 90), although this is not strictly required. Keep in mind that the lower the rotation step, the longer the time required to pack the UV map.
IMPORTANT: in the vast majority of packing scenarios the default value of 90 degrees for Rotation Step will give you decent packing results in a short packing time.
Proportions between islands and texel density
The default behavior of UVPackmaster is scaling islands after packing, so that they fit tightly into the UV target area (that’s the main idea behind UV packing, isn’t it?). The scaling factor will be the same for every island in most cases. There are some exceptions though – the scaling factor might NOT be uniform, if any of the below conditions is true:
- the Groups To Tiles packing mode is used and particular groups are packed with independent texel density,
- the Normalize Islands option is on,
- the Island Scale Limit functionality is used.
As long as you don’t use any of these options, the scaling factor applied to all islands will be uniform.
Uniform scaling means that the proportions between islands will be maintained after packing is done. For example: if you manually scale an island up before packing (so it is relatively bigger than other islands), it will also be bigger after packing is done (proportions between the island and other islands will be maintained). This feature also implies that UVPackmaster doesn’t change the relative texel density of the islands when uniform scaling is applied – in particular: if all islands have uniform texel density before packing, they will also have uniform density after packing (though the density value itself will be most likely changed due to the scaling operation).
There is a special option for packer operation: Fixed Scale (in the Packing Options subpanel). When enabled, the packer won’t scale islands during packing at all. It means that the size of the islands will be exactly the same as before packing, and so will be their texel density. It should be noted that this mode should only be used when it is really needed, because it violates the main property of UV packing: adjusting UV scale to achieve the best texel density for the given islands in the given target UV area.
Advanced packing functionalities
After you get familiar with the basic concepts described above, you can then proceed to learn about other, more advanced packer functionalities:
- Pack To Others
- Pixel Margin
- Heuristic Search
- Lock Overlapping / Lock Groups
- Non-Square Packing
- Custom Target Box
- Island Rotation Step
- Island Scale Limit
Packing modes
Another concept used by the packer during an operation is a packing mode. A packing mode determines the general logic of how the packer processes UV islands. A packing mode is a setting which is independent from the advanced functionalities provided in the previous section. Independent in such a sense, that every packing mode is compatible and can be used together with all of those functionalities.
The default UVPackmaster packing mode is Single Tile, which is the most straightforward mode. To learn more about particular modes visit the links below: