Rig Editor · Chapter 6 of 12
Rig Editor: Materials, Textures and Painting
Written for version 2.7.0
Materials and how to assign them, PBR and Unlit settings, textures, painting on the model, and building a material from nodes in the shader graph.
The last chapter laid a mesh out flat so that a picture can be wrapped onto it. This one gives the surface its look: materials, the textures they use, painting straight onto the model, and building a material from nodes.
What UVs are, seams, Auto Unwrap and the UV editor.
What a material is
A mesh is only a shape. A material describes its surface: what colour it is, how shiny, whether it glows, whether you can see through it. A node wears a material the way a wall wears paint, and one material can be worn by many nodes: change it once and all of them change. A texture is a picture that a material uses, so the surface can carry a pattern or a painted face instead of one flat colour.
The Meshes, Materials and Textures lists
| List | What it holds | The count on each row |
|---|---|---|
| Meshes | The shapes in the rig | How many nodes use the mesh |
| Materials | The surfaces | How many assignments: the places that wear it |
| Textures | The pictures | How many materials use the texture |
- Tap a row to select it. The detail panel on the right then shows that mesh, material or texture.
- A count in orange means nothing uses it yet.
- Select, at the top of a list, lets you tick several rows. An Options menu then offers Move to Group… and Delete….
- Touch and hold a row for Rename, Move to Group… and Delete. A material also has Duplicate.
- A group is a folder inside a list, for tidiness only. Touch and hold one to rename it, add a subgroup, move it, dissolve it, or delete it with everything inside.
- Delete always says what will change. Places that wore a deleted material switch to a fresh plain one, and materials that used a deleted texture lose that picture.
| The + menu of | Offers |
|---|---|
| Meshes | New Group |
| Materials | New PBR Material, New Unlit Material, New Graph Material, New Group |
| Textures | Import Image…, Add Composition Texture…, New Blank Texture…, New Group |
Give a node a material
- In Node mode, select the node.
- Scroll the detail panel down to Material.
- Tap the material's name and choose one from the menu. The node changes at once.
- Tap the arrow in a circle beside it to jump to that material and edit it.
- A small grey mesh beside the name means the node has no choice of its own and follows its mesh. Once you choose, the menu gains Use Mesh Material to go back.
- The mesh's own material is on the mesh: tap the mesh in the Meshes list and look for Default Material.
- With several nodes selected, the detail panel has Assign Material, which gives all of them the same one.
- A mesh that arrived with several materials, as imported models often do, shows a row for each: Assignment 0, Assignment 1 and so on.
There is no command for giving selected faces their own material. To colour part of a shape differently, select those faces in Mesh mode, use Separate Selection to make them a node of their own, and give that node its material. Or keep one material and paint the difference, as shown further down.
A PBR material
PBR stands for physically based rendering. A PBR material reacts to the lights in the scene the way a real surface would: it has a lit side and a shaded side, and it can be dull like chalk or polished like metal. Tap a material in the Materials list and its settings fill the detail panel. Drag up or down on a number to change it, or tap it to open the number editor.
| Setting | What it does |
|---|---|
| Type | Says what kind of material this is: PBR, Unlit or Graph. It is not a control |
| Lighting | PBR or Unlit. See the note under this table |
| Base Color | The colour of the surface. Tap the swatch to pick one |
| Roughness | From 0 to 1. Low is glossy with sharp highlights, high is dull and even |
| Metalness | From 0 to 1. Zero is paint, plastic, skin or cloth. One is bare metal |
| Emissive | A colour the surface gives off by itself, like a screen or a lamp. Black means no glow |
| Normal Scale | From 0 to 2. How strongly a Normal texture fakes bumps and dents |
| Occlusion | From 0 to 1. How strongly an Occlusion texture darkens creases |
| Double Sided | Draws the back of each face as well as the front. Turn it on for thin things such as cloth, leaves or a sheet of paper |
| Alpha | Opaque is solid. Mask cuts holes with a hard edge, and adds a Cutoff number that sets where the cut falls. Blend allows soft see through |
PBR is lit and shaded by the lights in the scene, and suits nearly everything. Unlit shows its colour or picture exactly as it is, the same from every side and in any light: good for flat cartoon looks, signs, screens, and drawn eyes and mouths. An Unlit material keeps only Base Color, Double Sided and Alpha, and a single texture slot.
Textures
| In the Textures + menu | What you get |
|---|---|
| Import Image… | A picture you already have: from your library, or with the From Photos and From Files buttons. It keeps its own size up to 8192 pixels a side, and a larger one is scaled down to fit. A photo taken with the camera held on its side comes in the right way up |
| New Blank Texture… | One flat colour at the size you choose, from 1 to 8192 pixels a side. A clean canvas for Paint mode |
| Add Composition Texture… | A picture made in the Compositions editor, layers and all. Choose one from your library or start a New Composition Texture |
Tap a texture in the Textures list and the detail panel shows its picture and its Size, then three menus that say how the picture is read.
| On a texture's panel | Choices | What it sets |
|---|---|---|
| Wrap X | Repeat, Mirrored Repeat, Clamp to Edge | What a surface shows past the left and right edges of the picture. Repeat starts the picture again, Mirrored Repeat turns every other copy round so the edges meet, Clamp to Edge stretches the last line of pixels outwards |
| Wrap Y | The same three | The same, past the top and bottom edges |
| Filter | Linear, Nearest | Linear blends neighbouring pixels, so a picture seen close up is smooth. Nearest keeps every pixel a hard square, which suits pixel art |
- A new texture starts on Repeat, Repeat and Linear.
- The choices belong to the texture, so every material that uses it follows them, and so does Sample Texture in a graph. Each change is a step for Undo.
- Wrap only shows where the UVs reach outside the square, or when a slot is tiled as shown below.
- To put a texture on a material, select the material.
- Scroll the detail panel to Texture Slots.
- Tap a slot and choose a texture. None, at the bottom of the menu, empties the slot again.
| Slot | What its picture controls |
|---|---|
| Base Color | The colours of the surface. This is the one you will use most |
| Metallic Roughness | Where the surface is metal and where it is rough, pixel by pixel |
| Normal | Fine bumps and dents that catch the light without changing the shape |
| Occlusion | Soft shadow in creases and corners |
| Emissive | Which parts glow |
Tiling, Offset and Rotation
A slot that holds a texture gains three rows beneath it, named after the slot: Base Color Tiling, Base Color Offset and Base Color Rotation. They place the picture on the surface without changing the UVs or the picture.
| Row | Numbers | What it does |
|---|---|---|
| Tiling | Two: across, then down | How many times the picture fits across the UV square. 1 and 1 is once. 3 and 3 shows it nine times, each a third of the size |
| Offset | Two: across, then down | Slides the picture. 1 is one whole width or height of the picture, so 0.5 moves it half way |
| Rotation | One, in degrees | Turns the picture about its top left corner |
- Drag up or down on a number to change it, or tap it to open the number editor.
- The copies are counted from the top left corner of the picture.
- What shows past the edge of the picture follows the texture's Wrap. With Repeat, a Tiling of 3 gives three copies. With Clamp to Edge it gives one small copy and stretched edge pixels beyond it.
- Each slot has its own three rows, and they belong to the material. Two materials can use one texture at different sizes.
- Painting follows them: a stroke lands on the part of the picture the surface shows there.
- A model imported from a GLB file keeps the tiling, offset and rotation it was made with.
A texture is wrapped on by the mesh's UVs. If the mesh was never unwrapped, or its islands overlap, the picture comes out smeared or repeated. Go back to the UV chapter, unwrap the mesh, then look again. If the whole picture is upside down or mirrored, the mesh and the picture measure UVs from different corners: change UV Origin, also in the UV chapter.
It stays editable: its panel has Edit Composition, which opens it in the Compositions editor with its layers, and Re-bake Frames to refresh the result. It can hold several frames, and a material that uses it gets a Frame number under the slot, so two materials can show different frames. Texture Size and Include Background set how large the baked picture is and whether its background is kept. Its row wears a Composition tag in place of a count.
Paint mode
- In Node mode, select a node that has a mesh.
- Tap Paint in the mode selector.
- Drag on the model to paint. The strokes go into the Base Color texture of the material the node wears. A drag that starts off the model moves the camera as usual.
- Tap Node when you have finished. There is nothing to confirm.
| Tool | What a stroke does |
|---|---|
| Brush | Lays down the paint colour |
| Eraser | Rubs paint out. On a solid material it paints white, on a Blend material it makes the surface see through |
| Blur | Softens what is under the brush |
| Smudge | Drags colour along with the stroke, like a finger through wet paint |
| Liquify | Pushes the picture around under the brush |
| Alpha | Makes the surface see through where you stroke. It only shows when the material's Alpha is Blend |
- Two more buttons sit under the tools. The cube shows or hides the selection's wireframe, which otherwise lies over what you are painting. The split rectangle is Symmetry: each stroke is mirrored across the middle of the model, left to right.
- In the brush box, tap the brush picture to open Brushes and choose another brush. The upper slider is size, the lower one opacity, and the round swatch is the paint colour.
- The sliders show no numbers. While you drag one, a preview of the brush appears above the box at its real size.
- An Apple Pencil paints with pressure. Undo steps back one stroke at a time.
- If the material has no Base Color texture, Paint mode makes one for you, filled with the material's colour and named after it. It appears in the Textures list.
- Paint belongs to the material, so every node wearing that material shows it.
- Paint spreads a few pixels past the edge of every UV island it touches, so no line of old colour shows along a seam.
- If the Base Color texture is a composition texture, Paint opens it in the Compositions editor.
- Painting on a very large texture needs a great deal of memory. If there is not enough free, Paint says so and does not start.
Paint needs UVs to know where each stroke lands in the picture. If the mesh has none, tapping Paint shows this alert. Auto Unwrap makes a quick layout and starts painting. For a layout you control, cancel and unwrap the mesh yourself first.
Graph materials
A graph material is built from nodes: small boxes that each make or change a value, joined by wires. Colour flows from left to right and ends in the Surface Output node, which is what you see on the model. PBR and Unlit materials are graphs too, ready made, which is why selecting any material shows a graph.
- The pane appears whenever a material is selected. Drag the bar along its top edge to make it taller or shorter.
- The rail on the canvas chooses what a one finger drag on empty canvas does: Pan, Select or Zoom. Two fingers pan and zoom at any time.
- The inspector on the right counts the nodes and connections. Tap a node and it shows that node's values.
- With a node selected, the header gains Duplicate and Delete. Surface Output cannot be deleted.
- The arrows at the right end of the header open the graph full screen. Back returns to the rig.
To add a node, tap an empty part of the canvas. A card opens with a search field and the nodes sorted into folders, and the node you choose lands where you tapped. The + in the header does the same and puts the node in the middle of the view.
| Folder | What is in it |
|---|---|
| Shading | PBR, which turns colours and numbers into a lit surface |
| Input | Facts about the surface and the camera: UV Coord, World Position, World Normal, Rim / Fresnel, Elapsed Time |
| Parameters | Values you set: Float (a number), Color, Bool (on or off), Texture Object |
| Material | The material's own settings and texture slots, as nodes |
| Math | Add, Multiply, Clamp, Mix (Lerp), Sin and the rest, in subfolders |
| Logic | Comparisons and Conditional, which chooses between two values |
| Blend & Compositing | Blend, with the usual blend modes |
| Color | Hue/Saturation/Value, Brightness/Contrast, Color Ramp, Invert Color |
| Channels | Split Vector and the Construct Vector nodes, to take a value apart or build one |
| Coordinates | Move, turn and scale the pattern: Offset Coords, Rotate Coords, Scale Coords, Mapping |
| Procedural | Patterns made by maths: Checker, Gradient, Noise, Voronoi Noise, Wave |
| Texture Processing | Sample Texture, which reads a picture |
| Halftone | Print style dot and line screens |
| Utility | Sticky Note, Subgraph and Discard |
A worked example: a checker pattern
- Tap + beside Materials and choose New Graph Material. It starts with three nodes: Color into PBR into Surface Output.
- Give the material to a node, as shown earlier.
- Tap empty canvas, open Procedural and tap Checker.
- Drag from the Out dot on Checker to the Base Color dot on PBR.
- Tap the Checker node. Scale, in the inspector, sets how many squares there are.
- Wires go from an output dot, on the right of a node, to an input dot, on the left.
- An input holds one wire. Dropping a second wire on it replaces the first. To remove a wire, drag it off its input and let go over empty canvas.
- The colour of a dot tells you what it carries: grey is a single number, yellow a colour or direction, green a pair of numbers, blue four numbers.
- An input with no wire uses the value shown in the inspector.
- Float, Color, Bool and Texture Object nodes also appear in the material's detail panel under Graph Inputs, so you can change them later without opening the graph. Give each a label in the inspector.
A new graph material's three nodes start stacked on top of one another. Drag them apart before you begin. And if the inspector says the graph failed to compile, the mesh shows plain PBR until the wiring is fixed. Undo takes you back to the last graph that worked.
Bones: build the skeleton that will move the model.
Tell us which material, texture or node you had selected, what you tapped and what the model showed instead. A screenshot of the viewport with the detail panel helps.