By P Web Design Company

Command Line - Occlusion Preset

There are many ways to create an ambient occlusion render in Maya. The fastest and easiest way I like to do this is by using the command line and skip manually creating all the nodes in hypershade. Using the command line is a quicker way because it creates the ambient occlusion shader and applies it to the geometry automatically. This tutorial describe the steps in order to apply occlusion to your objects in a render layer.

Creating and Ambient Occlusion Layer

1) Create a new Render Layer

2) Select the geometry that you want to apply the occlusion to and add it to the new Render Layer

3) In the command line enter: renderLayerBuiltinPreset occlusion layer1;

4) Press Enter and it should apply the occlusion to your objects in layer1

5) Now make a test render and your ambiet occlusoin should be rendered out!


If your occlusion layer does not seem to be rendering properly you will have to make adjustments to the mib_amb_occlusion1. The settings will vary between all scenes depending on how big or small your scene size is, you will have to adjust the Samples, Spread and Max Distance in the Parameters of the mib_amb_occlusion1. To get to this tab Click on surfaceShader1 in your Hypershade and go to the Attribute Editor (ctrl + a) and there will be a tab named mib_amb_occlusion1.

- - - - - - - - - - - - - - - - - - -

linkedin twitter flickr

- - - - - - - - - - - - - - - - - - -