Graphics Programs Reference
In-Depth Information
7. To get to the Wood texture's placement node, open the Hypershade. Drag the Wood
shader to the Hypershade work area (bottom half). Right-click the wood, and choose
Graph Network from the shortcut menu. You can also select it and click the Input
Connections button ( ) at the top of the Hypershade. Figure 7.21 shows the shader
nodes for the Wood Shader network in the Hypershade work area. The place3d-
Texture2 node connects to the wood2 node and gives it position information. The
wood2 node then connects to the phong3 material node as a Color texture map.
Figure 7.21
The Wood
Shader network
8. Double-click the place3dTexture node to
open its Attribute Editor.
9. Click the Fit to Group BBox button to
position the placement node for the wood
around the handle automatically. In your
viewport, you see the green placement node
around the handle, as shown in Figure 7.22.
10. Rendering a frame reveals that the wood
still doesn't look quite right. Select the
placement node in the viewport, and rotate
it in Z to 90. Click the Fit to Group BBox
button again to rescale it to fit the handle.
This doesn't rotate it back to the way it was;
it only scales it to fit the extent of the object
to which it's assigned.
11. Render another frame, and you see the wood
veins running the length of the handle. It
looks more like wood now, but it still repeats
too much.
Instead of moving and scaling the texture
placement node and rendering multiple
times to get the wood placement just right,
Figure 7.22
The wood's placement node
Search WWH ::




Custom Search