Guide · Workflows
Decals
A decal effect is a picture that sits on top of a texture set's base color but stays separate from it: a shirt logo, blush, a tattoo, freckles, or a symbol you want to switch on and off in game. On a Poiyomi target each decal exports into one of Poiyomi's four decal slots, so you can still move, hide or animate it in Unity. On other targets it is baked into the base color.
When to use a decal
Paint straight onto a layer when the detail is simply part of the texture. Make it a decal effect when you want to:
- switch it on and off in game with a toggle, as Poiyomi's decal slots allow;
- keep variants in one project, such as a logo that only one appearance wears;
- change its blend, opacity or glow without repainting;
- bring an avatar's existing Poiyomi decals in and send them back out to the same slots.
Decal slots exist on the Poiyomi Toon and Poiyomi PBR target shaders: decals 0 to 3. On every other target a decal is Baked, which still keeps it separate while you work.
Example: put a logo on a shirt
- Import the logo in the Assets drawer's Textures tab as a Base color texture. A PNG with a transparent background works best.
- Select the shirt's texture set in the Scene panel.
- In the logo's tile menu, choose Add as decal effect. Pawlette adds a decal effect in the first free slot, with the logo laid once over the whole UV square.
- The logo now covers the UV square, which is rarely where you want it. Click the decal in the Layers panel's Effects section to step into its stack, select the logo's fill layer, and set its Mapping to Planar in the Fill tab.
- Choose Set from view with the camera facing the chest, or drag the on-model handle, to place and size the logo.
- Choose Back to … above the stack to return to the shirt's own layers.
The logo is now its own decal. Turn it off with the switch on its row, or give it to one appearance only from its menu.
Example: paint blush
- Select the body's texture set, choose Add effect in the Effects section, then Decal. The new decal is empty, so nothing changes yet.
- Click the decal to step into it, and add a paint layer with +.
- Pick the Brush and a soft pink. In Tool Settings' Material tab, the decal has two channels:
- Decal image: the decal's color;
- Decal mask: where it shows. White shows the decal, black leaves the skin beneath.
- Click the decal's row in the Effects section again to select the decal itself, and tune it in Effect settings: lower Opacity % to tone it down, or set Blend to Multiply so it tints the skin rather than covering it.
Tip: paint the shape with the mask and keep the image a flat color. Then changing the color later is one fill, not a repaint.
Effect settings
Select the decal itself, by its row in the Effects section rather than a layer inside it, to show its settings where Tool Settings normally is:
| Setting | What it does |
|---|---|
| Name | How the decal is listed. Exported file listings use it too. |
| Slot | Which Poiyomi decal slot it exports into, or Baked. A slot another decal of the set uses shows as taken. |
| Blend | How it combines with the base color: Normal, Multiply, Screen, Overlay, Darken, Lighten, Linear Dodge (Add) or Subtract, as Poiyomi offers them. |
| Opacity % | Scales the whole decal's coverage. |
| Emission | Makes the decal glow too, by this strength. 0 for none. |
| Placed or Tiled | Where Poiyomi puts the decal image. See below. |
Placed and tiled decals
In Pawlette you always paint a decal right on the model, where you want it to show. The placement only matters on export, where it decides which part of the texture set is written out as Poiyomi's decal image:
- With Placed off, the decal image covers the whole UV square. That is simplest, and it is how many avatar bases ship their blush and logos.
- With Placed on, Position U and V, Scale U and V, Rotation ° and the side offsets mark out a rectangle of the UV square, as Poiyomi's decal settings do. Only paint inside it is exported, and the exported image spends all its pixels on that rectangle.
- Tiled tells Poiyomi to repeat the image. Pawlette exports one copy and does not show the repeats.
A small decal exported over the whole square wastes most of its image. If a decal only covers a patch, such as a chest logo, turn on Placed and fit the rectangle around it: the exported image is then sharper at the same file size. Decals imported from Unity keep the placement they had.
Export
With the Poiyomi Toon or Poiyomi PBR template, each slotted decal is written as decal-0 to decal-3, a PNG with the color in RGB and the mask in alpha. Its size is a power of two from 256 to 2048, chosen so it holds as many texels as the decal covers. The decal is left out of the main base-color texture, so Poiyomi does not apply it twice. A decal that is switched off is still exported, so you can turn it on in Unity.
In Unity, put the PNG in the material's matching Decal slot. Pawlette exports images only: Blend, Opacity %, Emission and the placement are material settings, so set them to match in Poiyomi. A decal imported from Unity already has them.
With any other template, decals are baked into the base color as you see them, and the Export Textures panel lists which ones it baked. See Exporting textures.