Modelcore
Gooch shading
Also called Gooch tone shading, cool-to-warm shading.
A non-photorealistic shading model for technical illustration that varies hue from cool to warm with the surface orientation instead of brightness.
Gooch shading is a lighting model for technical illustration, published by Amy Gooch, Bruce Gooch, Peter Shirley and Elaine Cohen in 1998. Technical illustrators draw edge lines in black and highlights in white, so the shading between them must stay in the middle tones. Lambertian shading cannot do this: half of a lit object goes to black, where the black silhouettes disappear. Gooch shading keeps the brightness in a narrow range and shows the orientation of the surface by a change of hue instead, from a cool color (blue) on the side away from the light to a warm color (yellow) on the side toward it. The object color is mixed into both ends, so a red part still looks red. In the form of Real-Time Rendering, with ,
The machine
Quantities. is the unit surface normal, the unit vector toward the light and the RGB diffuse color of the object, with channels in . is an RGB display color, not a radiance.
Parameters. is the strength of the blue, the strength of the yellow, and and the parts of the object color in the cool and the warm end. The paper shows Figure 7 with , , , , and Figure 8 with , , , , to show that the exact values are not crucial. All four are visual tuning.
Equation 1, the reference. Traditional diffuse shading is with an ambient color . With , every point with is black.
Equation 2, the blend. The paper blends two colors with the full range of , so the side away from the light also changes color. As printed, Equation 2 is
which gives where the surface faces the light. The text of the paper and the two-light form of Section 4.4 put the warm color toward the light. This page uses the form of Real-Time Rendering above, with at .
Equation 3, the two ends. and , with and . A blue-to-yellow blend alone gives a strong sense of shape but colors unrelated to the object; a black-to-object-color blend alone is close to diffuse shading. The sum is a compromise between the two.
Assumptions. One light, placed so that is perpendicular to the gaze direction, which shows the full range of . The paper puts it up and to the right and keeps it fixed. No shadows. Edge lines are drawn in black and highlights use the Phong term in white.
Metal (Section 4.3). For a metal part the paper maps twenty stripes of random intensity between 0 and 0.5 along the axis of largest curvature, makes the stripe nearest the light white and interpolates linearly between the stripe centers. This imitates the banded look that illustrators use for milled metal.
What it counts
is the color to display at a point, as a function of the angle between the normal and the light. It is not a reflectance and has no energy meaning; the model aims at legibility of shape, not at a match with a real material.
Example. A pure red object, , with the constants of Figure 7:
| Gooch | Lambert | ||
|---|---|---|---|
| -1 | 0 | (0.2, 0, 0.4) | (0, 0, 0) |
| -0.5 | 0.25 | (0.4, 0.1, 0.3) | (0, 0, 0) |
| 0 | 0.5 | (0.6, 0.2, 0.2) | (0, 0, 0) |
| 0.5 | 0.75 | (0.8, 0.3, 0.1) | (0.5, 0, 0) |
| 1 | 1 | (1, 0.4, 0) | (1, 0, 0) |
The Gooch colors go from a red-violet to an orange and are never black, so a black edge line is visible everywhere. The Lambert colors are black on half of the surface.
Relation to other models
- Lambertian reflectance. With and , the blend is . The paper notes that this looks much like diffuse shading, but it changes over the whole object, also where .
- Blinn-Phong and the Phong reflection model. Gooch shading replaces the diffuse term and keeps a Phong highlight. Section 4.4 builds the diffuse part from two Phong lights so that it runs in graphics packages such as OpenGL.
- Toon shading. Another non-photorealistic method. Toon shading quantizes the diffuse term into flat bands; Gooch shading keeps a smooth blend and moves the hue. Both are drawn with black silhouette edges.
- Physically based shading. The opposite goal: Gooch shading gives up any relation to reflected energy to make shape easy to read.
Known results in the model
- The sign of Equation 2 (proved). At the printed Equation 2 gives , and at it gives . The two-light form of Section 4.4 gives the reverse (next item). So the printed equation and the rest of the paper disagree, and the form with and at is the one that matches the text.
- Two lights give the blend (proved). Section 4.4 uses a light in direction with intensity , a light in direction with intensity , an ambient term and a white object. With , the sum is for and for , which is exactly . It needs lights with negative colors, and the paper turns off the highlight because the negative blue light gives artifacts.
- Mid-tones (proved). Each channel of lies between the same channel of and , because is a convex blend. So if both ends are kept away from black and white, all of the shading is too.
- Hue as a depth cue (heuristic). That cool colors recede and warm colors advance, and that hue shifts can carry shape information, come from art practice and the perception literature that the paper cites, and from its own figures. The paper reports no user study.
- The constants (tuning). , , , and the light position are chosen by eye.
References
- Amy Gooch, Bruce Gooch, Peter Shirley and Elaine Cohen, A non-photorealistic lighting model for automatic technical illustration, SIGGRAPH 98, 1998, 447 to 452, Section 3 (illustration techniques), Section 4.1 (traditional diffuse shading, Equation 1), Section 4.2 (tone-based shading, Equations 2 and 3, Figures 7 and 8), Section 4.3 (metal objects) and Section 4.4 (the approximation with two lights)
- Tomas Akenine-Möller, Eric Haines, Naty Hoffman, Angelo Pesce, Michał Iwanicki and Sébastien Hillaire, Real-Time Rendering, fourth edition, CRC Press, 2018, Chapter 5, Shading Basics (the Gooch model as an example of a shading model, with t = (n·l + 1) / 2) (general locator)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag Q8VPTZ Edit this page History Report an error Markdown