Mutable for Unreal Engine | Texture Layout Packing Strategies
Texture Layout Packing Strategies
There are two strategies for packing the layout textures: using a resizable layout or using a fixed layout.
Resizable Layout
If we select the resizable layout strategy we will decide the size of the layout grid. However, if during the packing process some blocks don't fit in the layout, the size of the layout will be increased automatically.
Fixed Layout
If we select this strategy we will decide the size of the maximum size of the layout grid in the Max Layout Size dropdown menu. Like in the other strategy, if during the packing process some blocks don't fit in the layout, the size of the layout will be increased automatically until the layout size is equal to the maximum layout size selected. If we still have some blocks that don't fit in the layout, then the size of the blocks will be reduced.
Block Size Reduction
Now the blocks have a new property called "Priority". This priority will decide which blocks will be reduced first if the layout reaches its maximum size. The block priority can be implemented by adding the desired priority in the Block Priority text box. By default all the priorities are set to 0 which means that this property it's not going to be used and the bigger blocks will be reduced first than the smaller blocks. If the block priority is bigger than 0 it means that a block is going to be reduced before than the rest of blocks that have a smaller priority.
Examples and Results
- Resizable Layout: In this example the size of the layout grid size was set to 16x16. The resulting texture compared with the block selection was:
The final texture resolution is 2048x2048 and all the blocks keep their grid size.
- Fixed Layout: In this example the size of the layout grid size was set to 16x16 and the maximum layout grid size to 8x8. The resulting texture compared with the block selection was:
The final texture resolution is 1024x1024 and the blocks have a different size. This is because the initial grid size was 16x16 which was bigger than the maximum size. Most of the blocks have been reduced to fit in the final layout size 8x8.
- Last Author
- max
- Last Edited
- Wed, May 18, 12:27 PM