The Texture packing tool is used to create compressed “channel packed” textures. This means an output texture will have the grayscale version of the input textures in its color channels.
It uses OpenCvSharp for channel packing and resizing, and Texconv for compressing into DDS. It supports PNG and TIFF image file formats.
The tool receives textures with a common basename and a different suffix (basename_suffix.extension). The basename is the name of the (first) input file until the last underscore. The suffix is what comes after the last underscore, excluding the filename extension. The suffixes are used to find which texture goes into a particular channel.
Each texture output has a prefix (basename that is given by the input files) and its own suffix (defined in Settings). If this output suffix is “result,” in the former example, the output filename would be my_texture_result.dds.
The first time you run the tool, the Settings window will appear: Output: The path where the resulting textures will be saved (needs to be a valid path).
Verbose: The output window will have more information - useful in case of errors.
Keep open: The tool will keep itself open after all the work is done.
Resize Interpolation: Several options for resize (linear, nearest, area, cubic, lanczos4).
Generate Mipmaps: Select whether Mipmaps should be generated.
The buttons OK and Apply will only be enabled when the settings are valid. This validation process is only executed after changes on combobox/radiobuttons or clicking outside the textbox (if the cursor was inside).
In the section Output Textures, one can add an output texture, remove, or edit its details. Click to expand.
The first textbox is the output suffix. Compression: Compression of the DDS texture (BC1, BC2, BC3, BC4 or BC7). input: uses Width and Height (defined below the radio buttons) or the size of the input files; ½: the output size will be half (in each dimension) the input files size; ¼: same as above (this time, a quarter of the size). Suffix: the suffix of the input file that will go into the channel. Channel: RGB, Grayscale, R, G, B or A. Default: It’s possible to set a default value in case there is no texture with the given suffix (only for R, G, B, A).
Add and remove buttons allow you to add or remove the Suffix-Channel definition. To remove, it is necessary to first select the row (click on the side).
It’s also possible to include repeated Channels:
Beware that the job will fail if both files ([TextureName]_dirt and [TextureName]_alpha, in this case) exist.
To add a job, one can drag a group of textures (or folder) and drop inside the window.
Left side: Jobs that were done or are waiting to be done (clicking on each job will filter the messages). Right side: Black board with the log. If you right click this board, you will be presented with three options (Clear, Settings and About).