6. Materials and Surfaces

In chapter 4 we learned how light falls on a form: light side, halftone, terminator, shadow side, cast shadow.
In chapter 5 we added color: the local color of a surface, mixed with the color of the light.
Both chapters quietly assumed one kind of surface, something like matte clay or plaster.
The real world is full of other surfaces: shiny plastic, polished metal, glass, water, wax, skin, cloth, hair, rusty iron.

This chapter is about how to tell them apart, and how to paint or build them.
What changes between clay, metal and glass is only what the surface does with the light: how much it scatters, how much it bounces off like a mirror, how blurry that mirror is, whether it colors the reflection, and whether light goes through.
Once you can see those few things, you can paint any material, and you'll understand the sliders of a 3D material editor, because they describe exactly the same things.
A painter decides where a highlight goes and how sharp it is; a texture artist paints a roughness map that decides the same for every pixel of a model.

About the pictures: the shaded images in this chapter are computed by a small ray tracer, like those in chapter 4, now in color and with real materials: a rough or smooth specular reflection with Fresnel, metals, and glass with exact refraction. The lights are real shapes (a round lamp, a softbox, a window), so every highlight you see is a true reflection of its light. One effect is only approximated: the translucent "wax" and "skin" objects use a common shortcut instead of simulating light inside the material, and I'll say so where they appear.

6.1 Why materials matter

Here is one sphere, on one floor, under one light, five times.
Nothing changes between the pictures except the material.

The same sphere under the same light five times: matte clay with a soft gradient, glossy red plastic with a small sharp highlight, polished metal that mirrors the room, clear glass that shows a bent view through it, and wax with a soft, warm terminator

Each one reads instantly: the clay by its soft, even gradient without shine; the plastic by its strong color plus a small white highlight; the metal by the little picture of the room it shows instead of a color of its own; the glass by the background seen through it; the wax by the soft, warm transition into its shadow side.

So a material is a set of visual clues.
You don't paint "metal" as a thing; you paint the handful of clues that make the eye conclude "metal".
When a material looks wrong, one clue is usually missing or contradicts another: a "metal" with a bright diffuse light side, a "glass" without a dark edge, a "matte" surface with a sharp highlight.
All the materials in this chapter are made from four ideas:

  • diffuse and specular reflection: light that goes into the surface and comes back out scattered, and light that bounces off the top like a mirror;
  • roughness: how sharp or blurry that mirror is;
  • metal and Fresnel: who colors the reflection, and how it changes with the viewing angle;
  • transmission: light that goes through the material (glass, water) or into it and back out (wax, skin, leaves).

In your tools

Most 3D software has a material preview that shows the current material on a sphere, and a viewport mode that lights the scene with an image of a real place (in Blender, for example, the Material Preview shading mode).
Turn your model around in it and watch which clues change with the view: highlights and reflections move with you, the diffuse gradient doesn't.
In painting software there's no such button, so the skill is to know the clues by heart.

6.2 Diffuse and specular: the two parts of reflection

When light hits a non-metal surface, such as paint, plastic, wood or skin, two different things happen.

A small part of the light bounces off the very top of the surface, like off a mirror.
That's specular reflection (鏡面反射).
It never enters the material, so it isn't colored by it: on a red plastic ball the specular reflection is the color of the light, not red.

The rest of the light goes a tiny distance into the material, bumps into pigment particles, fibers or cells, loses some colors on the way, and comes back out in all directions.
That's diffuse reflection (拡散反射).
Because it has traveled through the material, it carries the material's local color (固有色, chapter 5).
And because it comes out in all directions, it looks the same from wherever you stand: it's exactly the matte shading of chapter 4, with its light side, halftone and terminator.

The same red plastic sphere split into its two parts: the diffuse part alone is a matte red sphere, the specular part alone is a dark sphere with a white highlight and faint reflections, and the sum of both is glossy red plastic

The renderer computed the two parts separately here, and the right picture is simply their sum.
Look at the middle one: the specular part alone is a black ball with a white highlight and a faint reflection of the floor.
It has no red in it at all.
That's the reason for the rule from chapter 5: on non-metals, the highlight takes the color of the light, not of the object.

The diffuse part depends only on where the light is.
The specular part depends on where the light is and where you are, because a mirror shows things only at the angle where light bounces towards your eye.
That's why a highlight slides over an object when you walk around it, while the light side and the shadow side stay put.

For non-metals the specular part is small: looking straight at the surface, it reflects only about 2 to 5 percent of the light (water about 2 percent, glass and most plastics about 4 percent).
But a light source is far brighter than anything else in the scene, so even 4 percent of it is a bright spot.
The rest goes into the diffuse part, which is why the diffuse shading carries the form and the specular part adds highlights and reflections on top.

Practice

Take three objects of the same color but different finish, for example a matte ceramic mug, a glossy plastic toy and a painted wall, and look at them under one lamp.
Find the highlight on each, then move your head left and right and watch which parts move with you.
Draw each object twice, about 10 minutes each: once only the diffuse shading (as if it were matte), then again adding the highlight on top in the color of the lamp.

In your tools

In painting software the two parts map onto layers: paint the form with its local color and diffuse shading first, then add highlights on a separate layer above (often in an additive mode such as Add or Screen), which keeps them easy to adjust.
In 3D, the diffuse part comes from the material's base color, and the specular strength of non-metals is a sensible default you rarely change; in Blender's Principled BSDF, for example, it follows from the IOR input (default 1.5, which gives about 4 percent) and the IOR Level in the Specular panel, at the time of writing.

6.3 Roughness and the shape of the highlight

Roughness

The specular reflection is a mirror image, but only a perfectly smooth surface is a perfect mirror.
Most surfaces are covered with tiny bumps and scratches, far too small to see, each tilted a little differently.
Each tiny facet reflects the light in a slightly different direction, and together they smear the mirror image.
The more uneven the surface, the more blurred the reflection.
3D software calls this roughness (粗さ, ラフネス); some workflows use the opposite, glossiness (光沢度).

A blue sphere with roughness 0.04, 0.14, 0.28, 0.48 and 0.85: from a mirror-like ball with a sharp image of the light and the room, to glossy, satin, semi-matte and fully matte

Look at what happens to the highlight from left to right:

  • it gets bigger, because the blurred image of the light spreads over a larger area;
  • it gets dimmer, because the same amount of reflected light is spread over that larger area;
  • its edge gets softer, until on the matte sphere it melts into the light side and you can hardly say where it is.

The reflections of the room (the dark ceiling, the bright window patch on the right, the floor) also go from sharp to a soft glow.
On a matte material the specular part is still there, just so blurred that it looks like a gentle brightening of the light side.
As in chapter 4, a large light gives a large, soft highlight too, so decide both and keep them consistent: all highlights of the same material under the same light have the same size and sharpness.

The highlight is a picture of the light

Because the specular reflection is a mirror image, a highlight on a glossy surface has the shape of its light source, bent by the form it's on.

A dark glossy sphere lit by a small round lamp, by a rectangular softbox and by a window with a cross of bars; magnified insets show a small round highlight, a curved rectangle and a curved window with its bars

A small round lamp gives a small round dot, a softbox gives a curved rectangle, and a window gives a little curved window, bars included.
Painters use this all the time.
A window-shaped highlight in an eye says "indoors, daylight from a window"; a long thin highlight on a car says "a strip light" or "the sky above the horizon".
And the highlight follows the form like a decal stuck on it: on a sphere a rectangle bows outwards, on a cylinder it stretches into a stripe along the axis, on a flat surface it isn't bent at all.

Everything else around a glossy surface shows up in it too, only fainter: the floor, a bright wall, the sky.
These environment reflections make glossy objects belong to their surroundings, and they're the main subject of the next section.

Practice

Put glossy things (a spoon, a glossy apple, a ceramic cup) near a window, then under a bare bulb at night, and compare the shapes of the highlights.
Then draw five dark glossy spheres, each lit by a different imagined light (a bulb, a four-pane window, a tube light, the sky above a horizon, two lamps), with the highlight in the shape of that light, about 5 minutes each.

In your tools

Roughness is usually a single number from 0 (a perfect mirror) to 1 (fully matte), or a grayscale map that varies it across the surface (section 6.10).
Blender's manual, for example, describes 0.0 as giving a sharp reflection and 1.0 a diffuse-looking one.
The shape of the highlight comes from the shape of the light: an area light in 3D can be a disc, a square or a rectangle, and HDRI environment lighting (a 360° photo of a real place used as light) puts real windows and skies into every reflection.
In painting software, many artists keep a small set of highlight brushes, but it's more reliable to paint each highlight as a distorted copy of the light source you decided on.

Common mistakes

  • Highlights in random places. On a sphere lit from the upper left, the highlight sits on the upper left, between the center and the light, roughly where the surface faces halfway between the light and your eye. Not on the shadow side, not on the outline.
  • The same white dot on everything. Glass, skin, metal and cloth get identical little stars. Size, sharpness and shape must follow the roughness of each material and the shape of the light.
  • Highlights in the object's color. On non-metals they take the light's color (section 6.2); metals are different (next section).

6.4 Metals and non-metals

Metals have no diffuse reflection

Metals work differently.
Light doesn't go into a metal and come back out scattered: practically all the light that isn't absorbed is reflected at the surface.
So a metal has (almost) no diffuse reflection at all; everything you see on it is specular reflection.
And unlike non-metals, the reflection of a metal is strong (from about half to almost all of the light) and, for some metals, colored: gold reflects red and yellow light better than blue, copper reflects reds best, while silver, aluminum, steel and chrome reflect all colors about equally.

Four spheres: yellow plastic with a yellow diffuse body and white highlights; gold with yellow reflections of the room and no matte body; chrome as a nearly perfect mirror of the room; rough copper with blurred, orange-tinted reflections

Compare the yellow plastic and the gold, which have the same roughness.
The plastic has a yellow body (diffuse) with white highlights (specular).
The gold has no body color at all: it's a yellow-tinted picture of the room, with yellow highlights.
Where the room is dark (the upper half, which reflects the dark ceiling), the gold is dark; where it reflects the bright floor, the gold is bright.

That gives the first rule of painting metal: a metal is as light or dark as what it reflects.
There's no light side and shadow side in the usual sense; a chrome ball turned away from the lamp can still be bright if it reflects a bright wall, and a side facing the lamp can be black if it reflects a black ceiling.
So when you paint chrome, you don't shade it; you paint a distorted picture of the world around it: the horizon line bent into a curve, the sky above it, the ground below, the light source as a sharp highlight, and nearby objects stretched around the form.
Look at the chrome ball: its bottom half is the floor, its top half is the dark room, and the two meet at a curved horizon.
An exact reflection matters less than a clear, high-contrast one with sharp edges; on a rough metal like the copper, everything is the same but blurred.
Gold, copper and brass get colored highlights; silver, steel, aluminum and chrome white ones.

Practice

Draw a spoon, a metal bottle or a chrome faucet from life, about 20 minutes.
Squint first: find the big dark and light shapes of the reflections, and draw them as shapes, not as shading.
Then draw an imaginary chrome sphere on a checkerboard floor under a blue sky: the lower half is a bent checkerboard, the upper half is sky, and the horizon line between them curves.

In your tools

In 3D, the metallic input (金属度, メタリック) is a switch between the two behaviors: 0 means non-metal (diffuse body plus a weak, white specular), 1 means metal (no diffuse, strong specular tinted by the base color).
In Blender's Principled BSDF, for example, the manual describes Metallic as blending between a dielectric and a metallic model, with a fully metallic surface having no diffuse reflection and a specular reflection tinted by the base color.
Real materials are either metal or not, so metallic is normally 0 or 1; values in between are mostly for transitions such as dust or rust on metal.
For a metal, the base color is the color of its reflection, so it's always fairly light: gold is a light yellow, not an ochre.

6.5 Fresnel: more reflection at grazing angles

Stand at the edge of a lake.
Looking straight down, you see through the water to the stones on the bottom.
Looking far across it, you see a mirror of the sky and the far shore.
The water hasn't changed; only the angle at which you look has.

This is the Fresnel effect (フレネル効果), named after the French physicist Augustin-Jean Fresnel.
Every surface reflects more light at grazing angles than when you look at it straight on.
For glass, plastic and water the reflection goes from a few percent straight on to nearly 100 percent when the view just skims the surface.

A dark glossy floor with an orange sphere and a teal box: from above, the floor looks dark and reflects little; from a low viewpoint, it mirrors the sky and the objects. Then a black glossy ball, which gets a light rim at its edge, and the same ball computed without the Fresnel effect, which looks flatter

Seen from above, the floor reflects only a few percent of the sky and looks almost black; seen low, it's a mirror.
The black ball on the right was computed with the same reflection everywhere, which no real material does; the real one has a brighter rim where the surface turns away from you.

Fresnel explains several things painters have always painted:

  • Tables, floors and roads seen low reflect their surroundings; a wet road at night reflects the street lamps in long streaks.
  • Water is transparent near you and a mirror in the distance.
  • A glossy sphere's edge is lighter, because there it reflects the environment more strongly; on a dark object this rim makes the form turn.

Metals already reflect strongly, so for them the effect is weaker, but it's there: the reflection gets closer to white at grazing angles.

Practice

Look at a dark glossy table or a phone screen (switched off) from straight above and then from very low, and draw both views in 5 minutes each.
Then paint a dark glossy ball and make its edge slightly lighter than its middle where it faces a bright sky, but keep this rim narrow and darker than the highlight.

In your tools

Physically based 3D materials apply Fresnel automatically; you don't set it per material (the IOR input of a non-metal decides how strong the reflection is straight on, and the rest follows).
In painting software, a rim of slightly lighter color along the edge of a dark glossy object, on a separate layer, does the same job; keep it subtle and on the side that faces a bright environment.

6.6 Transparency, refraction and translucency

Glass and water: light that goes through

In glass and clear water, most of the light that enters goes straight through instead of being scattered.
But it bends where it crosses the surface, in and out.
This bending is refraction (屈折), and how strongly a material bends light is its index of refraction (屈折率, IOR): about 1.33 for water and about 1.5 for ordinary glass.
A glass sphere bends light like a strong lens.

A clear glass sphere on a checkerboard floor in front of a wall with a red stripe above the sphere. Labels point to the lamp&

Everything in this picture comes from exact refraction and reflection, and it shows the clues of glass:

  • The background is seen through it, bent and upside down. The red stripe on the wall is above the sphere, but inside the glass it appears near the bottom; the floor appears at the top. The diagram below shows why.
  • The edges are dark (or, against a dark background, bright). Near the edge, rays are bent so strongly that they come from somewhere else entirely, often from a dark part of the room, and more of the light is reflected (Fresnel), so the edge rarely shows the background behind it.
  • A sharp highlight and faint reflections sit on the surface, like on any glossy material.
  • The shadow is not simply dark. The sphere gathers the lamp's light into a bright spot inside its shadow, a caustic (コースティクス). The bright, wavy lines at the bottom of a swimming pool are caustics too.

Diagram: horizontal rays from the top and bottom of a background enter a glass sphere, bend, cross behind it and continue to the viewer with top and bottom swapped; where they cross, light gathers. A ray near the edge bends strongly and is partly reflected

The rays from the top of the background come out going downwards, the rays from the bottom going upwards, and they cross just behind the sphere.
Seen from the right, top and bottom are swapped: that's the upside-down picture.
Where the rays cross, light is concentrated: that's the caustic in the shadow.
(These rays are computed with Snell's law, the law of refraction; Graphics Theory chapter 22 has the physics, but you don't need it to paint glass.)

To paint glass, paint the background through it (distorted, compressed, maybe flipped), then the edges, then the reflections and the highlight on top.
Clear glass has hardly any color of its own; a thick piece is slightly greenish at its edges, where light travels through the most glass.

Translucency: light that goes in and comes back out

Many materials are neither opaque nor clear.
In wax, skin, marble, milk, jade, leaves and many plastics, light goes into the material, scatters around inside for a while, and comes out again somewhere else.
That's subsurface scattering (表面下散乱, サブサーフェス・スキャタリング), and it gives these materials their soft, glowing look.

The same sphere and thin oval disc, opaque and translucent, under side light and under light from behind. The translucent version has a softer, warmer terminator and, lit from behind, the thin disc glows orange while the opaque one stays dark

An honest note: this figure is approximate. Real subsurface scattering means following light inside the material; here the renderer uses a common shortcut instead: the light is allowed to "wrap" a little past the terminator (more in red than in blue), and light passing through an object is weakened according to how thick the object is along the light's direction. It shows the right clues, but it isn't a measurement.

The clues for translucent materials:

  • A soft terminator. Light leaks across the boundary inside the material, so the transition from light to shadow is softer than on an opaque object of the same shape.
  • A warmer, more saturated color near the terminator. In skin, red light travels farther inside than blue and green, so the edge of the light side often looks reddish.
  • Glow in thin parts against the light. Ears, fingers and nostrils with light behind them, a leaf against the sun, the thin edge of a candle: they light up from inside in a warm color.
  • Shadows that are lighter and more colored than on an opaque object.

Don't mix up the terms: transparent (透明) means you can see clearly through it (glass, water), translucent (半透明) means light goes through but scattered, so you can't see shapes through it (frosted glass, wax, skin), and opaque (不透明) means no light comes through.

Practice

Draw a glass of water in front of a striped or checked cloth, about 20 minutes: draw the stripes behind it first, then where they're bent, shifted or flipped inside the glass, then the dark and light edges, and the highlights last.
For translucency, hold your hand in front of a strong lamp or a sunny window and look at the edges of your fingers, and draw a candle or a bar of soap lit from behind in 10 minutes, keeping the thin parts warm and light.

In your tools

3D materials have separate inputs for these effects.
In Blender's Principled BSDF, at the time of writing, glass is a material with a Transmission weight of 1, low roughness and the right IOR, and translucency is controlled in the Subsurface panel (a Weight, a Radius per color that says how far each color travels inside, and a Scale).
Glass and subsurface effects need a renderer that can follow light inside the object; real-time engines usually approximate them.
In painting software, you paint glass as background plus edges plus highlights, often on separate layers, and translucency with a warm, saturated color near the terminator and in the thin parts.

Common mistakes

  • Glass painted as a gray or white object. Paint what's behind it, distorted, plus the edges and reflections.
  • Glass edges that show the background. The edges are where the background is most bent or replaced by reflections.
  • Glowing everything. Only thin parts against the light glow; thick parts stay dark.
  • Gray, dead terminators on skin. A soft, slightly warmer and more saturated band at the terminator makes skin look alive.

6.7 Texture and scale

From form to micro roughness

In everyday language "texture" can mean the feel of a material, a pattern, or a picture mapped on a 3D model.
Here I mean the surface detail of an object, and it helps to think of it at four scales.

Four panels zooming into one surface: the form, a big curve; large texture, such as planks with grooves; fine texture, small irregular bumps; and micro roughness, tiny facets that reflect light in many directions. Under each: how it is usually made in 3D

  • Form: the big shapes, from chapter 2. In 3D, the model itself.
  • Large texture: detail you can see as shapes, such as bricks, planks, folds of leather, knitted stitches. In 3D, a height or normal map, or modeled.
  • Fine texture: small grain, pores, the weave of cloth, the tooth of stone. In 3D, a normal map or a textured brush in painting.
  • Micro roughness: bumps far too small to see, which you only notice as the blur of the reflections (section 6.3). In 3D, the roughness value.

Each level needs the one above it to be right first: perfect bricks on a wall in the wrong perspective still make a wrong wall.

Texture shows where the light grazes

A surface bump changes the direction a tiny piece of surface faces.
In chapter 4 we saw that value follows the direction a surface faces, but not evenly: where the light hits a surface straight on, tilting it a little hardly changes its value; near the terminator, where the light grazes it, the same small tilt changes the value a lot.

A bumpy sphere lit from the front and with three-quarter light. From the front the texture is weak and shows mainly at the outline. With three-quarter light, numbered markers show the bright light side, where texture is weak, the terminator, where it is strongest, and the shadow side, where it disappears

So texture is most visible along the terminator and in the halftones, and it disappears in two places:

  • in the brightest light and the highlight, where the surface faces the light and everything is near maximum brightness;
  • in the shadow, where there is no direct light to make bumps cast little shadows, only the soft light of the surroundings.

This is also why side light and three-quarter light (and low evening sun) show texture, and front light (a camera flash) hides it.

For painting, this gives the most useful rule of the chapter: paint texture where light reveals it, and leave it out elsewhere.
Paint the bricks, the bark, the skin pores along the terminator and in the halftone; let them fade towards the light and drown in the shadow.
You don't have to outline every brick of a wall or every hair of a head: show a few clearly where the light grazes, suggest some more, and let the viewer fill in the rest.
A picture where every brick is drawn with equal care looks like a pattern, not like a lit wall.

Practice

Draw an orange or a rough stone under side light, about 20 minutes: shade the form as if it were smooth, then add texture only around the terminator and a little in the halftone.
Then draw a brick wall from your own photo, drawing only about a third of the bricks fully.

In your tools

Painting software usually has textured brushes (brushes with a paper, grain or pattern texture) and the possibility to apply a texture to a layer; use them inside the halftone band, not over the whole object.
In 3D the four scales are separate inputs: the mesh, a height or normal map, finer detail in the same maps, and roughness.
Renderers show texture exactly as described above, so a normal map that looks impressive in the material preview may disappear in flat front lighting: test with a side light.

6.8 Common materials as checklists

Here are short checklists of clues for materials you'll paint often.
They're tendencies, not laws: a varnished floor is glossy and a metal can be rough.
How cloth folds and hangs is a subject of its own; here it's only about how the material looks.

Material Diffuse and color Specular Other clues
Wood Local color with a grain pattern that follows the growth of the tree Raw wood is matte; varnished wood has a sharp reflection on top Grain runs along the length of planks; end grain is darker and rougher
Stone Mottled color, low saturation Mostly matte; polished marble or granite is glossy Texture shows strongly at the terminator; marble is slightly translucent
Fabric Often deep, saturated color Very rough; velvet has a soft light sheen at grazing angles; satin and silk have stretched, glossy highlights Soft terminators; the weave shows only near the terminator
Hair Strands grouped into big masses A shine band across the mass, across the direction of the strands Real hair often has a second, weaker and more colored highlight, shifted towards the tips
Skin Warm, varies over the face and body Low gloss, broken by pores; stronger on nose, forehead and lips Translucent: soft, warmer terminator, red glow in thin parts
Leather Medium to dark, slightly varied Medium roughness, sharper on worn, polished areas Fine grain; creases at bends
Rubber Dark, low saturation Rough, a broad, dim highlight Soft, rounded edges; collects dust
Water Almost none; the color is mostly what's below and above Mirror-like, with strong Fresnel Transparent near you, reflective far away; ripples break up reflections into streaks

Hair deserves a word more.
Don't paint hair strand by strand; paint it as a few large masses with light sides and shadow sides, like any form, then add the shine band (in Japanese illustration often called 天使の輪, "angel ring") following the round shape of the mass, and only at the end a few strands at the edges and where the masses part.
Hair and brushed metal have anisotropic highlights (異方性): because the surface is made of fine parallel lines, the highlight stretches across those lines instead of being round.

In your tools

Ready-made material libraries in 3D and texturing software are a good way to study these clues: open a material, look at its maps, and see which clue each map produces.
Blender's Principled BSDF has, at the time of writing, a Sheen panel for the grazing sheen of cloth and an Anisotropic input (Cycles only) for brushed metal.

6.9 Wear and history

Real objects are used.
They get bumped, touched, rained on, dusted and polished by hands, and the marks of that use are not random: they follow where things touch and where dirt can stay.
Painting them is the fastest way to make an object believable, and it tells a story (useful for the props of chapter 10).

The same painted metal box, new and after years of use. On the used one, labels point to edges where the paint is worn to bare metal, scratches on the lid where it is handled, dirt in the crevice under the lid, rust running down from a chip, and dirt and wear at the base

The wear on the right box was computed from the shape of the box, the same way texturing software does it:

  • Edges wear first. Sharp, exposed edges and corners get bumped; paint chips off and bare material shows (here, metal). Bare metal edges are often lighter and shinier than the rest, because handling polishes them.
  • Dirt collects in crevices. Corners, seams, the gap under a lid, the base where it meets the floor: places that are hard to reach and clean. Dust collects on top surfaces.
  • Use leaves marks where things touch. Scratches on a lid that's opened every day, a polished spot on a door handle, worn steps in the middle of a staircase, a shiny patch on jeans at the knees.
  • Water runs down. Rust and dirt streaks run downwards from where they start: under a chip, a bolt or a window sill.

Before adding wear, ask what the object is, how old it is, and who uses it and how; too much random wear is as unconvincing as none.

Practice

Draw three used objects at home (a mug, shoes, a tool) in 10 minutes each, marking where the wear and dirt are.
Then draw one box from imagination twice: new, and after twenty years in a garage.

In your tools

Texturing software automates exactly these rules.
In Substance 3D Painter, for example, smart materials are saved layer stacks that adapt to each model, and generators such as Metal Edge Wear and Dirt create masks from maps baked from the mesh (curvature, ambient occlusion, position, world space normals): curvature finds the edges, ambient occlusion finds the crevices.
Blender can build similar masks with shader nodes.
Generators are a good start, but they don't know the story: paint over them where the object is really touched and used.

6.10 From painting to PBR materials

The four maps

Almost all modern 3D software, game engines and texturing tools describe materials in the same way, called physically based rendering (PBR, 物理ベースレンダリング).
Each of its main inputs is one of the ideas of this chapter, and each can be a single value or an image (a map) that varies over the surface:

The worn box from the previous figure as its material maps: base color with paint, bare metal, rust and dirt; roughness, where lighter is rougher; metallic, white only where bare metal shows; the normal map in mostly blue-violet colors with scratches and edges; and the lit result

  • Base color (ベースカラー): the local color of the diffuse part for non-metals, and the color of the reflection for metals. No light, no shadow, no highlights (chapter 5).
  • Roughness (ラフネス): section 6.3. Black is a mirror, white is matte. Here the bare metal edges are darker (smoother) than the paint, and the rust and dirt lighter.
  • Metallic (メタリック): section 6.4. White for metal, black for everything else, which is why the map is almost entirely black or white.
  • Normal (法線マップ): the small bumps of section 6.7 (scratches, chips, dents), stored as the direction each pixel of the surface faces. Its colors are directions, not colors to look at; a flat surface is the light blue-violet you see on most of the box. A height map stores the same detail as a grayscale height and is often converted to a normal map.

At the time of writing, Substance 3D Painter's documentation describes the base color channel as surface color "without any lighting or depth information", and its export presets include "PBR Metallic Roughness" and "PBR Specular Glossiness" (where a glossiness map, the inverse of roughness, and a specular color map replace roughness and metallic).
Blender's Principled BSDF has inputs with the same names (Base Color, Metallic, Roughness, IOR, Normal and more).

Painting versus texturing

The big difference between painting a picture and painting a texture is now clear.
In a picture, you are the renderer: you paint the result of light on a material, so the highlight, the reflection and the shadow are all on the canvas.
In a texture you paint only the material's properties, and the renderer adds the light.
So a texture artist paints a highlight as low roughness, chrome as metallic with a light base color, and edge wear as a change in all four maps at once, like the box above.
You still need to know the clues of a material to set the maps that produce them.

In your tools

Painting software has layer blend modes that look like they could do the renderer's job: Multiply for shadows, Overlay or Screen for light.
They're useful, but a blend mode doesn't know about materials or light: a Multiply shadow over a saturated color usually makes it darker and more saturated, and over everything else muddy and gray, while real shadows change hue and saturation according to the light that fills them (chapter 5).
Use them as a start, then check the colors by eye.
If you want the full physics of PBR, Graphics Theory chapter 22 explains it for programmers; it's optional reading.

Common mistakes

  • Lighting painted into the base color. Shadows, highlights and reflections in a base color map fight with the renderer (chapter 5).
  • Metallic values in between everywhere. A material is metal or it isn't; gray metallic maps make everything look like dull plastic.
  • A dark base color for metals. Metals reflect a lot; their base color is light.
  • One roughness for the whole object. Real surfaces vary: edges are polished, crevices are rough with dirt, fingerprints are smoother or rougher. A roughness map with variation is often the most important map for realism.

6.11 Summary

  • A material is a set of visual clues: how a surface scatters, reflects, colors and transmits light.
  • Non-metals reflect in two parts: diffuse (scattered inside, in the local color, the same from every viewpoint) and specular (a mirror image of the light, in the light's color, about 2 to 5 percent straight on).
  • Roughness blurs the specular reflection into a larger, dimmer, softer highlight. A highlight is a picture of its light source, bent by the form.
  • Metals have no diffuse reflection; they reflect strongly, sometimes in color, and are as light or dark as what they reflect.
  • Fresnel: every surface reflects more at grazing angles; water is clear near you and a mirror far away, and glossy objects get a lighter rim.
  • Glass and water refract light: the background is bent and often flipped, edges are dark or bright, caustics gather light in shadows. Translucent materials (wax, skin, leaves) have soft, warm terminators and glow in thin parts.
  • Texture shows most along the terminator and in the halftone and disappears in the brightest light and in the shadow; paint it only where light reveals it.
  • Wear follows use: edges wear, crevices collect dirt, touched places change, water runs down.
  • PBR materials describe the same ideas as maps: base color, roughness, metallic and normal (or height). In a texture you paint the properties of a material, not the light.

6.12 Key terms

English 日本語
material 質感、素材(マテリアル)
diffuse reflection 拡散反射
specular reflection 鏡面反射
highlight ハイライト
roughness / glossiness ラフネス(粗さ)/グロス(光沢度)
environment reflection 環境の映り込み
metal / non-metal (dielectric) 金属/非金属(誘電体)
metallic (input) メタリック(金属度)
Fresnel effect フレネル効果
transparent / translucent / opaque 透明/半透明/不透明
refraction 屈折
index of refraction (IOR) 屈折率(IOR)
caustic コースティクス(集光模様)
subsurface scattering サブサーフェス・スキャタリング(表面下散乱)
texture (surface detail) テクスチャ(表面の細部)
sheen シーン(布の光沢)
shine band (of hair) 髪のつやの帯(天使の輪)
anisotropic highlight 異方性のハイライト
wear, edge wear 摩耗、エッジの摩耗
physically based rendering (PBR) 物理ベースレンダリング(PBR)
base color ベースカラー
normal map / height map 法線マップ(ノーマルマップ)/ハイトマップ
smart material / generator スマートマテリアル/ジェネレーター

6.13 Challenges

  1. ★ Find five objects at home and sort them by roughness from mirror-like to matte, judging only by their highlights.
  2. ★ Draw a highlight on a glossy sphere for four different lights: a bulb, a window with four panes, a long tube light, and the sky above a flat horizon.
  3. ★ Look at a dark glossy table from above and from very low, and write down what you see reflected each time and why.
  4. ★★ Paint a yellow plastic ball and a gold ball side by side under the same light and explain in one sentence each where their color comes from.
  5. ★★ Draw a glass of water in front of a striped background and mark where the stripes are shifted, bent or flipped.
  6. ★★ Draw a tree trunk or a brick wall under side light, adding texture only in the band around the terminator.
  7. ★★★ Choose an object you use every day and draw it as it looked new and as it will look in ten years, with every mark of wear justified by how it's used.
  8. ★★★ For a material of your choice (for example, a worn leather bag), describe what its base color, roughness, metallic and normal maps would look like, without drawing them.

6.14 Practical assignment

Four materials under one light.
Paint four spheres (or four copies of one simple object, such as an egg shape or a cup) under the same light: matte clay, glossy plastic, polished metal and clear glass.
The form and the light stay the same; only the clues change, so this is the cleanest way to practice them.
Here is a computed reference of the same set-up, in color and in grayscale; use it to check your result after you paint, not to copy before.

Four spheres in a row under one light from the upper left, in color and in grayscale: matte clay, glossy red plastic, polished metal reflecting its neighbors, and clear glass with a caustic in its shadow

Materials: pencil and paper (graphite or charcoal for the grayscale version), or any painting software.
Color is optional; do the grayscale version first.
Time: about 2 to 3 hours.

  1. Plan (15 min). Decide on one light: direction (upper left is easiest), shape (a window or a softbox) and size, and a simple environment (a light floor, a darker room above). Sketch the light's shape and an arrow in the corner.
  2. Draw (15 min). Draw four equal circles in a row on a floor line, the terminators lightly and the cast shadows in one direction.
  3. Clay (20 min). Shade it fully matte: light side, halftone, core shadow, reflected light, cast shadow. No highlight, or only a very broad, faint brightening.
  4. Plastic (25 min). Shade the diffuse part exactly like the clay, in the plastic's darker or lighter local value. Add a small, sharp highlight in the shape of your light, plus a faint reflection of the floor near the bottom and a slightly lighter rim (Fresnel).
  5. Metal (30 min). Don't shade it. Paint a distorted picture of the world: the floor in the lower half, the dark room or sky in the upper half, a curved horizon between them, your light as a sharp, bright shape, and the neighboring sphere as a small stretched reflection. Keep the contrast high.
  6. Glass (30 min). Paint the background through it, compressed and upside down, then dark or bright edges, then the highlight and faint reflections. Inside its cast shadow, add a bright caustic spot.
  7. Check (15 min). Compare with the reference above, then view your painting in grayscale or squint.

Self-check, a successful result shows:

  • The four materials are recognizable without labels, even in grayscale.
  • All four highlights have the shape of the same light and sit in consistent places; the clay's is broad or absent, the plastic's small and sharp, the metal's sharp and brightest.
  • The metal has no ordinary light side and shadow side: its values come from the reflected environment.
  • The plastic and the glass have a slightly lighter rim than their centers where they face a bright environment.
  • The glass shows a flipped, bent background with dark or bright edges, and a caustic in its shadow.
  • All cast shadows point the same way; the glass's shadow is lighter and has a bright spot.
  • Typical problems to look for: the same white dot on every sphere, a "metal" shaded like gray clay, glass painted as a gray ball, and highlights on the shadow side.


コメント(0)

まだコメントはありません。