Render an ambient occlusion (Dirt) render pass in Maya – Vray

Render an ambient occlusion (Dirt) render pass in Maya – Vray

Render an ambient occlusion pass in Maya and V-ray with a few simple steps. The ambient occlusion when using V-ray is called Dirt pass.

Ambient occlusion is a technique used to simulate subtle shadows that occur between nearby objects. Basically, is a grayscale image that we can use as a render pass in Editing Software to enhance our final image or video.

The image below is an ambient occlusion render pass from Maya-Vray. Actually is from the project we will be working on, to demonstrate the ambient occlusion technique.

ambient occlusion render pass in Maya, example
ambient occlusion render pass in Maya, example

It could definitely give some extra realism to our 3D scenes. By rendering an ambient occlusion pass, we have more control over the final output in Editing Software such as Photoshop. For example, we can lower or increase the opacity of our Ambient occlusion layer, we can change the blending mode, color, etc.

Note: If we deal with 3D animation instead of a single image, we can still render an ambient occlusion render pass. But instead of using Photoshop for the final composition, we need to use Video Editing software, such as After Effects.

In this article, we will find out, how we can render an ambient occlusion render pass in Maya with V-ray renderer. Additionally, we will make the final composition (with ambient occlusion pass) in Photoshop.

We can see the final result (with ambient occlusion pass) in the image below:

ambient occlusion with and without (comparison)

All steps:

  • Prepare the scene for the V-ray renderer
  • Add an ambient occlusion pass
  • The setting of the VRay Dirt node
  • Render an ambient occlusion in Maya
  • Final composition in Photoshop

Relevant articles:

Prepare the scene for the V-ray renderer:

Before we add the ambient occlusion render pass in V-ray, we should probably change the Renderer in Maya to a V-ray renderer, from the Render Setting window.

change the renderer to Vray renderer from the Render Settings window
change the renderer to Vray renderer from the Render Settings window

I am not going into details, about what the right V-ray settings are, since every scene is different, and something that would work for me, could not work for your scene. To give you and idea, the setting I used is below:

If you are not familiar with the V-ray renderer inside Maya, feel free to take a look at their official documentation for that matter.

We will be working on the following scene:

working on this scene
working on this scene

Add an ambient occlusion pass:

Adding an ambient occlusion render pass is a two-step process. First, we add the render element itself (Extra Tex) and then connect it with the right node (VRay Dirt).

  1. To add an ambient occlusion render pass go to the Render Elements section in the Render Settings window. In the Availabe render elements (left column) locate the Extra Tex node and click on it. After that, it will appear in the right column.
  2. Select that new vrayRE_Extra_Tex node and open up the Attribute Editor. Go to Extra VRay Attributes section and expand it. In the Texture option, click on the little checkerboard on the right. The Create Render Node window appears. Locate and select the VRay Dirt node.
add an ambient occlusion in Maya
add an ambient occlusion in Maya

The setting of the VRay Dirt node:

Now we have selected the VRay Dirt node, and since the Attribute Editor is open, change some settings, such as Radius and Subdivs.

Vray dirt node settings
Vray dirt node settings

The most important settings are Radius and Subdivision. But since this node has a lot of features to play with, feel free to take a look here, for more information, about that node in general.

Note: We can have access to the VRay Dirt node, from two places. From Shadergraph – Textures tab, and from Render Elements window.

Render an ambient occlusion in Maya:

Now we have set our ambient occlusion, let’s get a quick render through the Vray frame buffer, in order to verify if everything is ok.

Note: In order to see the ambient occlusion render pass, we have to switch from the upper left corner (dropdown) to the correct render pass, in this case, to the “extraTex_VRayDirt1”

quick render with Vray frame buffer
quick render with Vray frame buffer

If we are not happy, with the results of ambient occlusion we are getting, we can play with the VRay Dirt settings. In my case, I am quite happy with these results, so I call it a day.

Final Render:

So after we render our scene with the V-Ray frame buffer, go to the save icon and press hold, and choose the Save all images channels to separate files. Select the destination of the folder, in which the files will be saved, give it a name, and we are done. After that, Maya will automatically save all render passes in that folder, for later use in Photoshop, in our case.

final render, save all images
final render, save all images

Final composition in Photoshop:

Open up Photoshop and drag and drop the render image (master). Also, drag and drop the ambient occlusion render pass, above the master layer. Lastly set the ambient occlusion (the above layer) to multiply blending mode.

final image in Photoshop
the final image in Photoshop

If for any reason your ambient occlusion is strong, feel free to lower the opacity of that layer, in order to minimize the effect. On the other hand, if your effect is not strong enough, you could duplicate your ambient occlusion layer, as many times as you need, in order to get the result you expect.

Here is a comparison of ambient occlusion and without:

ambient occlusion with and without (comparison)

Popular posts

inspire others:

Picture of Vladi Dan

Vladi Dan

Hey there. I am an experienced 3D Artist - Graphic Designer for over 7 years. Of course, the learning process doesn't really end. I am more than happy to share my personal knowledge with you guys. Let's create and learn some cool stuff together. I hope you join me on this creative trip.

3 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest Posts