Background
Background

Texture Channel Packer for Unreal Engine

I built Texture Channel Packer to bring marketplace packs and studio deliveries into my project's material conventions. The editor-only Unreal plugin provides explicit channel routing, reusable presets and batch review when incoming textures use different layouts, names or dimensions.

Texture Channel Packer with metallic in R, roughness in G and ambient occlusion in B, alongside the combined preview.

Metallic, roughness and ambient occlusion source maps feed the project's MRA channels. Per-channel previews show the extracted values before creating an output. Native UI demonstration using synthetic test textures.

From mixed layouts to one convention

Channel packing stores separate grayscale masks in a texture's colour channels. My project uses MRA: metallic in red, roughness in green and ambient occlusion in blue. Separate maps can feed those channels directly.

For packed inputs, I declare both the source and destination layouts. ORM stores ambient occlusion, roughness and metallic in RGB order; converting it to MRA moves each mask to the project's expected channel. The filename never establishes that meaning.

Diagram connecting ORM red ambient occlusion to MRA blue, green roughness to green, and blue metallic to red.

ORM-to-project-MRA routing: metallic moves B to R, roughness stays G, and ambient occlusion moves R to B. Explanatory diagram; MRA is the project's convention, not a universal Unreal layout.

Presets let me reuse a layout. I can inspect a preset's channel meanings before pressing Apply to commit those routes.

Channel routes, alpha and precision

Each destination channel selects a source texture and component, with optional inversion or a constant fill. These are the routes for separate masks and a declared ORM input:

Destination Separate masks ORM input
R: metallic Metallic map, R B
G: roughness Roughness map, R G
B: ambient occlusion AO map, R R

New empty manual channels default to black (0), including alpha. Reset to neutral is explicit; MRA neutral values include AO 1, roughness 0.5 and alpha 1.

Alpha can be retained or omitted. Omission preserves its routes but disables A controls and inspection. The combined preview always displays opaquely without changing packed values. With alpha omitted, the source buffer remains RGBA with opaque alpha padding; compression is configured to discard alpha.

Size policies use the largest, smallest or first source, or a custom size. Differing dimensions are bilinearly resampled. Output is normalised 8-bit RGBA: higher-precision values are quantised and clamped, and non-finite float data is rejected.

New game-recipe outputs default to mask compression, with sRGB disabled for mask data. Loading or editing an existing texture preserves its compression, mip and sRGB choices; exposed settings can then be changed explicitly.

Conversion preserves encoded source values; it does not correct incorrectly authored or imported gamma. Tiled UDIMs, layered, sliced and other non-2D sources are unsupported. There is no direct disk image import/export.

Reviewing a batch

Batch review groups queued textures into sets and shows final output names. Missing or ambiguous inputs are flagged, while complete sets can proceed. Destination safety conflicts block the whole queue.

Detected sets list showing one ready set and two sets with missing or ambiguous channels.

Batch review shows each detected set and final output name. Missing roughness and ambiguous metallic inputs are highlighted while a complete set remains ready to pack. Native UI demonstration using synthetic named sets.

Two sets targeting the same output remain blocked even with Overwrite selected. Unique naming resolves that collision before packing, without renaming source assets.

Batch matching and output safeguards

Matching uses case-insensitive naming rules within each source folder. The longest prefix or suffix match wins; multiple candidates for one set's channel make it ambiguous.

For example, T_Rock_Metallic, T_Rock_Roughness and T_Rock_AO can produce T_Rock_MRA. Outputs can go beside their source sets or into a shared destination.

Two Brick sets target T_Brick_MRA and display red name-conflict messages with packing disabled.

Two folder-scoped sets would produce the same output in a shared destination. Overwrite is blocked before any outputs are written. Native UI demonstration using synthetic named sets.

Review updates after queue changes, committed settings or channel edits, and Undo. Refresh rechecks external changes. Packing replans the reviewed queue immediately before writing; it does not operate on an unseen external selection.

Missing required sources cause that set to be skipped; manual black defaults do not fill them automatically. Ambiguous sets and rows set to skip existing outputs can also be skipped while complete sets proceed.

Overwrite protects every queued input, including unmatched textures, and blocks duplicate output destinations. Unique naming previews distinct results such as T_Brick_MRA and T_Brick_MRA1.

Testing and validation

I’ve used the tool in production. Separately, it passed automated tests in UE 5.8, including checks for channel routing, overwrite protection and Undo. The screenshots here show the native UI with synthetic textures and named sets.

Supported scope

The tool reads source data from imported 2D textures and writes normalized 8-bit output. It doesn’t support UDIM tile sets or layered sources.

Move over the bright dot and follow the line. P pauses. Escape closes the game.

Sigil Trace

Move over the sigil before time runs out.

Score0000
Spells00
Best on this browser0000
I · KINDLE SPELL 01
START

Trace the Sigil with your mouse

Start at the glowing dot and follow the line. No click needed.

or press Enter
Move your mouse onto the bright dot. No click needed.