In the previous posting of this blog, we looked at a few ways of manipulating light in a Maya scene, focusing on the mental ray renderer. We looked at global illumination and final gathering, caustics, and irradiance. Now, we look at another way of fine tuning light effects with the mental ray renderer on Maya.
A sample model.
In this lesson, we will use a scene built by Dreamlight. It is called La Piazza Realistic Mediterranean Town, and was originally built for Daz3d. I exported it out of Daz3d as an FBX file and then imported it into Maya. I then replaced the materials on the central tower in the scene with a mia_material that is colored a light tan. We will only look at a piece of the scene.
The mia_material has a special setting called Ambient Occlusion:
Without ambient occlusion.
Here is the rendered scene, using mental ray, and with Ambient Occlusion on the mia_material settings not checked off:
Note that the left face of the tower is hidden in shadow.
With ambient occlusion.
Here is the same scene with ambient occlusion turned on:
Note that now, we can seem much of the detail on the left face of the tower.
Importantly, remember that ambient occlusion is a property of the material that is on the tower. The rest of the scene does not have a mia_material on it. By turning on ambient occlusion, we are telling the mental ray renderer to not let the strong spotlight that falls on the right side of the building wash out the right side and cast the left side into shadow. Importantly, there is a second light in the scene, an ambient light. When we turn on ambient occlusion, we are telling Maya to pay less attention to the spotlight and to let the effects of ambient light effect the material.
With only ambient light and without ambient occlusion.
Now, here is a rendering where the spotlight has been turned off and ambient occlusion on the mia_material is turned off. Left click to enlarge it:
Wow! it turns out that the mia_material, without ambient occlusion, will not accept the effects of ambient light.
With only ambient light and with ambient occlusion.
Now, with only the ambient light turned on, but with ambient occlusion turn on in the attribute editor for the mia_material, we get the following. Please note that the ambient light had to be made much stronger in order to light up the tower by itself:
With ambient occlusion turned on, and with the spotlight turned on, mental ray accepts the effects of ambient light and so the ambient light created by the spotlight and the ambient light illuminates the tower, making the detailed light and shadow of the tower more visible.
With ambient occlusion turned on, and with only the ambient light turned on, the ambient light by itself lights up the tower.
A proper rendering.
Because my manipulation of this scene does not do the artist’s work justice, here is a rendering of the center of the original scene, created by the Daz3D renderer. Left click on the image to enlarge it: