3D animation tutorials

Adjusting the Resolution attribute of a Directional light in Maya.

Shadows as roots.

In the video tutorials on 3DbyBuzz we took several looks at shadows and how they root objects in a scene so that they don’t seem to be floating in the air.

Shadow resolution.

Here, we look at adjusting the resolution of a shadow. First, we create a Directional light by going to Window on the top menu, choosing Rendering Editors, and selecting Hypershade.  Then, inside the Hypershade window, we choose Create, then Lights, then Directional Light. Directional lights are meant to model sunlight, i.e., light that is moving in parallel rays across the scene. With the light selected, we then hit control-a once or twice, until the Attribute Editor of the light appears. We set the shadow Resolution to 512 and choose Depth Map shadows:

resolution512-2013-03-2-22-10.jpg

  Then we render our scene, which consists of a glass bottle sitting on a countertop:

light512-2013-03-2-22-10.jpg

We see that the shadow of the bottle is quite jagged.
So, we change the resolution to 4096:

4096-2013-03-2-22-10.jpg

We render the scene again:

light4096-2013-03-2-22-10.jpg

The shadow is much smoother now.


Notes.
The renderings were made with the Mental Ray renderer within Maya.
Depth map shadows, as we have seen in the video tutorials on 3DbyBuzz, are sharper than the alternative, Ray Trace shadows.
Finally, it’s important to note that a Directional light, because it is spread across the entire scene, usually needs a higher shadow resolution than other lights in Maya.