Channel packing: Difference between revisions
More actions
Update in game section with official tools |
m add bullet point |
||
| (One intermediate revision by the same user not shown) | |||
| Line 32: | Line 32: | ||
=== In game === | === In game === | ||
[[File:Official Texture Packing Wizards.png|right|thumb|The Official Channel Packing Tools]] | |||
[[File:ChannelPackingTool1.png|right|thumb|In game tool for taking four images, breaking them apart and repacking them for use in textures (Editor note: needs a better example).]] | [[File:ChannelPackingTool1.png|right|thumb|In game tool for taking four images, breaking them apart and repacking them for use in textures (Editor note: needs a better example).]] | ||
Resonite has an official [[Texture Packer Wizard]] and a [[Texture Unpacking Wizard]]. | Resonite has an official [[Texture Packer Wizard]] and a [[Texture Unpacking Wizard]]. | ||
Equip the [[Dev Tool]], open the [[Context menu|Context Menu]], click "Create New…", double-click "Editor" and double-click whichever Texture Wizard you require. | * Equip the [[Dev Tool]], open the [[Context menu|Context Menu]], click "Create New…", double-click "Editor" and double-click whichever Texture Wizard you require. | ||
Revision as of 06:56, 12 February 2026
Overview
Channel packing is the practice of combining multiple grayscale images into one full color image by “packing” each grayscale image into a color channel of the resulting image. By doing this you can combine four grayscale textures into one, with one stored in the red, green, blue, and alpha channels respectively. This technique has been widely adopted as a way to cut down on the amount of textures a shader needs to sample as well as a way to save memory. To use the individual channels at runtime, the shader then splits the color image back into its respective grayscale components. It then reads the values in the image as a range from 0-255, where black represents 0 and white represents 255.
Usage


One of the most prominent examples of channel packing in Resonite is the metallic map, used by all the metallic shaders. There are two distinct metallic map packing standards used in Resonite. The first is used exclusively by the shader PBS_Metallic (the base version).
The layout for this map is as follows:
- R - Metallic
- G - Ambient Occlusion or Height
- B - N/A
- A - Smoothness
In this example three grayscale maps (metallic, ambient occlusion and smoothness) are packed together to result in the yellow-green texture. This texture can be assigned to both the occlusion map and metallic map. The occlusion map will read the information from the green channel to render ambient occlusion, and the metallic map will read the information from the red and alpha channels to generate metallic and smoothness respectively.
It is important to note that this above packing standard is only used by the base PBS_Metallic shader.
All other Metallic shaders and XiexeToonMaterial use the following packing standard:
- R - Metallic, Ambient Occlusion or Height
- G - N/A
- B - N/A
- A - Smoothness
Tools
In game


Resonite has an official Texture Packer Wizard and a Texture Unpacking Wizard.
- Equip the Dev Tool, open the Context Menu, click "Create New…", double-click "Editor" and double-click whichever Texture Wizard you require.
There is a Texture Packer Tool made by the community before the official tools existed. It is in the Mystic Forge Public folder:
resrec:///G-MysticForge/R-d7d8932a-60d0-4996-bbef-db65c4bd6e7c
Note: Current version of this tool requires you to use your laser to 'push' images through the correct spot to select them.
External
There are many external tools used by the community for the same task: