Ambient Occlusion in Maya
Posted Temmuz 12, 2009on:
Ambient occlusion in any 3d software is an easy way of faking global illumination it also gives 3d renderings an extra look of realism. This tutorial is a quick glance of setting up an occlusion shader in Autodesk Maya.
Now open Maya’s render settings by going to Window > Rendering Editors > Render Settings.
Ambient occlusion is a Mental Ray shader so select MentalRay renderer which can be found in the common tab as long as the plugin is enabled.
To create the shader open the Hypershade and create a new Lambert material. Then change the Lambert color to white. In the hypershade menu go to Create > Mental Ray Textures > Mib _Amb _Occlusion.
In the hypershade work area connect the Output Value of the occlusion texture to the Ambient Color of the Lambert material.
Then select the Ambient Occlusion Texture and open the attribute Editor to edit the parameters.
Here the Samples control the amount of points to be occluded. I always set it to 48 as a standard but if the image is grainy then increase the sample value. One thing to remember is higher the samples, longer the rendering time will be.
The Spread attribute is the mix between the light and dark values so a values between .6 and .8 are good.
The Max_Distance value is dependent on the scale of the model. The main aim is to have a nice contrast in the edges and details so the bigger the distance value the less contrast there will be.