2009

Table Of Contents
directionalLight -intensity 1;
Certain commands require that you to refer to the light by name.
3 Rename the selected light to main_light by typing the following:
rename main_light;
4 Enable the main light to cast shadows by typing the following:
setAttr "main_lightShape.useDepthMapShadows" 1;
The setAttr command allows you to set attributes of a node. In the above
command, you are enabling depth map shadows on the main light.
5 Adjust the resolution of the shadow maps so that the shadows appear
sharper by typing the following:
setAttr "main_lightShape.dmapResolution" 2048;
In the above command, you are increasing the resolution of the depth
map shadows to 2048.
6 Position and aim the main light by typing the following:
move 0 3 0;
rotate -30 0 0;
Next, you create a rim light for the scene to help differentiate the torus from
its background.
To create the rim light
1 Create a point light by typing the following:
pointLight -intensity 2 -rgb 0.9 0.9 1;
The intensity flag has been used to set the brightness of the light. The
-rgb flag sets the color and takes three values: red, green and blue. The
red and green values are less than the blue value, so the light has a blue
tint.
2 Rename the light by typing the following:
rename back_light;
3 Reposition the light behind the torus by typing the following:
move -relative -1.5 1 -1.5;
Next, you create a fill light for the scene to soften the main lighting, fill the
shadowed part of the torus and decrease the overall contrast of the lighting
in the scene.
Recording the script history | 609