Export Textures for glTF
This guide covers the glTF destination on Export Texture and the matching source on Texture Folder. The files are written for a glTF 2.0 material: one color texture, one normal texture, one emissive texture, and one packed texture that serves both the metallic-roughness slot and the occlusion slot.
| Setting | Value |
|---|---|
| Destination | glTF |
| Filename Template | {name}_{channel} |
| Normal Convention | OpenGL |
Files written
Section titled “Files written”Shown for a set named oak_bark with all eight roles (how to read these tables). A set with fewer roles writes fewer files.
| File | What it holds | Container and depth | Encoding |
|---|---|---|---|
oak_bark_baseColor.png | Base Color in RGB, the set’s cutout in alpha | PNG 8-bit | Color |
oak_bark_normal.png | Normal | PNG 8-bit | Packed normal, OpenGL |
oak_bark_metallicRoughness.png | Packed: R Ambient Occlusion, G Roughness, B Metallic | PNG 8-bit | Linear data |
oak_bark_emissive.png | Emissive | PNG 8-bit | Color |
Every row is declared 8-bit PNG, which is what glTF viewers and importers read.
Not written: Height. Core glTF 2.0 has no height or displacement texture, so the panel reads Not written: Height (glTF has no slot for it) with an Add Map button. Use it when your own pipeline consumes a height file beside the glTF.
Opacity has no file of its own either. glTF carries transparency in the base color texture’s alpha, which is where the set’s cutout goes.
After export
Section titled “After export”- Point both
metallicRoughnessTextureandocclusionTextureat the oneoak_bark_metallicRoughness.pngfile. The metallic-roughness slot reads green and blue, the occlusion slot reads red, so one image serves both. - Set
alphaModetoMASKorBLENDwhenbaseColorcarries a cutout. The default isOPAQUE, and the alpha is then ignored. - Set
emissiveFactorto[1, 1, 1]when you bindemissive. The default of 0 multiplies the texture away.
There are no import flags to change. The format declares each texture’s use, so a viewer reads baseColor and emissive as sRGB and the rest as data.
Reading it back
Section titled “Reading it back”Point Texture Folder at the folder and set Source to glTF, or leave it on Auto.
metallicRoughnessunpacks into Ambient Occlusion, Roughness, and Metallic. The Files section shows the three lanes and lets you turn one off.- A
metallicRoughnesswritten by a tool that packs no occlusion carries an empty red lane. An empty Ambient Occlusion lane is dropped rather than imported as a fully occluded map, and is listed as Skipped with the reason “This lane is empty, so the file carries no Ambient Occlusion.” - A cutout in the
baseColoralpha comes back as the set’s Opacity, the same lanealphaModereads in an engine.
Worth checking
Section titled “Worth checking”- The packed arrangement is Khronos guidance, not normative specification text. The core glTF 2.0 specification does not describe occlusion packed into the metallic-roughness texture. The clearest first-party statement of “Red: Ambient Occlusion, Green: Roughness, Blue: Metallic” is the Khronos art pipeline article. The per-channel facts for each slot on its own (metalness from B, roughness from G, occlusion from R) are quoted from the schema and are certain.
- The normal convention. glTF’s scale formula is given in the schema, and the OpenGL style (green up) follows from it and is corroborated across the specification, but no single sentence says so.
- The color spaces (base color and emissive sRGB, the rest linear) are stated per texture across the Materials chapter rather than in one sentence. They are identical to what ArcBrush writes.
- glTF publishes no naming convention for external image files. The names above are ArcBrush’s, chosen to read as the specification’s own property names.
References
Section titled “References”- pbrMetallicRoughness schema (Khronos): the metallic and roughness channels.
- Material schema (Khronos): the occlusion channel.
- Art pipeline for glTF (Khronos): the packed occlusion, roughness, metallic guidance.
- normalTextureInfo schema (Khronos): the normal scale formula.
- glTF 2.0 specification (Khronos).