For more information about double-sided
surfaces, see
Double-sided shaded surfaces.
To create a double-sided shaded surface
- In the Hypershade,
create one of each of the following:
- Material (this procedure uses a Phong material).
- A
Sampler Info utility.
The Sampler Info utility provides
access to camera and surface information that you can pipe into
your shading networks during rendering.
- A
Condition utility.
The Condition utility lets you
specify which texture is mapped to each side of the surface.
- Checker texture.
- Crater texture.
- Assign the Phong material
to the surface.
- In the Hypershade,
middle-drag the Checker texture onto the Condition utility
to open the Connection Editor.
- In the Connection Editor,
connect the Checker’s Out
Color attribute to the condition utility’s Color
If True attribute (click the Out Color attribute
in the Checker column, then click Color
If True in the Condition column).
- In the Hypershade,
middle-drag the Crater texture onto the Condition swatch,
and in the Connection Editor, connect
the Crater’s Out
Color to the Condition’s Color
if False attribute.
- Middle-drag the SamplerInfo swatch
over the Condition swatch to open the Connection
Editor.
- In the Connection
Editor, click the Flipped Normal attribute
then click the Condition’s First
Term or Second Term attribute.
- In the Hypershade,
middle-drag the Condition swatch onto the Phong material
swatch and select color to connect it to the Phong’s Color attribute.
- Perform a test render.
Maya shades each side
of the surface with a different texture.
NoteYou must set the Second
Term to 0 and the Operation to Equal or Not Equal if
you are using the mental ray for Maya renderer.
Swapping the textures on
the surfaces
For
more information about double-sided surfaces, see
Double-sided shaded surfaces.
You can use the Condition utility
to specify which texture is applied to the front and back sides
of the surface. For more information about the condition utility,
see
Condition.
To swap texture mapping for double-sided
shading
- Double-click the Condition swatch
in Hypershade to open its Attribute Editor.
- In the Condition Attributes section,
change the Operation attribute to Not Equal (or
if it is set to Not Equal, change it to Equal).
- Perform a test render. The following
shows the result.
NoteYou can apply more
than one material to polygonal models at the face level.