8
96 Chapter 17: Rendering
Model rendered withou t contours
Model with contours added to the rendering
Simple contour shader
You add contour rendering by assign ing one of the
contour shaders to the Contour component of a
material. (This component is found on the
mental
ray Connection rollout (page 2–1305)
and on the
mental ray material’s
Advanced Shaders rollout
(page 2–1388)
). Then when you render, use the
Camera Effects rollout (page 3–100)
to enable
contours.
On the Camera Effects rollout, additional shaders
can modify the contours, or con trol how they are
rendered. For example, if you assign a C ontour
Only shader to the Contour Output component,
the rendering consists of just the contours, and not
the shaded model.
Rendering of the model’s contours only
Contours Only output shader, background set to white
Note: Contour shading does not work with
distributed bucket rendering.
Procedure
To add contours to a mental ray rendering:
1.
Choose Customize > Preferences. Go to the
mental ray panel, and turn on Enable Mental
Ray Ex tensions.
2. On the Render toolbar, click Re nder
Scene.
If the active renderer is not already the mental
ray renderer, go to the Common panel, and
on the Assign Renderer rollout, click the “...”
button for the Production renderer. A Choose
Renderer dialog is displayed. High light “mental
ray Renderer” in the list, and then click OK.
Leave the Render Scene dialog open, or
minimize it.
3. Open the Materia l Editor. For the
materials of objects you want to render w ith
contours, use the
mental ray Connection
rollout (page 2–1305)
to assign a shader to the
Contour component.