Blog

Fast Ambient Occlusion in 3ds Max (MR)

Ambient occlusion adds great realism to your renders, but can be bit cumbersome to setup in Max, particular if you’re using a mix of Mental Ray shaders and standard shaders. You could create an ambient occlusion effect by using lights, but it can be slow to render and tricky get the right look. So if you want to skip all that, you can simply use a material override in your render options to get the job done, it’s super fast and gives you the added bonus of having the ambient occlusion in a separate pass. As a separate pass you can adjust and manipulate to your hearts desire without affecting the rest of your render. Note: This method is not 100% accurate, but makes up for it by being fast and easy.

This tutorial uses 3ds Max 2011 and Photoshop CS5, earlier versions should work too, but there might be slight differences in interface.

Step 1: Create a Mental Ray material.

First you have to make sure you have assigned Mental Ray in your Render Setup menu (press F10).


Then you open your Material Editor (press m) and select an empty material slot.

Give it a new name, like “AO material” and click the Standard button to select the “mental ray” shader in the Matrial/Map Browser.


You should now see the mental ray shader, and under Basic Shaders you click the Surface parameter and select Ambient/Reflective Occlusion in the Material/Map Browser.


The shader should look something like this now.



Step 2: Assign to Render

Open the Render Setup menu (F10), then click the Processing tab, find the Material Override option and click Enable. You can now drag and drop the material you just created onto the Material:None button. Chose Instance to make sure the material updates when you change the settings.


Click Render!


And you will probably see a more or less completely white render. The default values assigned to the material are not optimal for what we want to do. Note: if your render is black, try to set your exposure control to “No Exposure Control” in the “Rendering>Exposure Control” menu.

Find the Max Distance value and increase to let say 100. And the render again,.


Keep playing around with the values to get the quality you need. Add higher samples value to reduce grain, just keep in mind this increases render time. (increase to 32, 64 or even 128). When you’re happy with the result save the image and open i Photoshop.

Step 3: Add AO layer in Photoshop.

To avoid the Ambient occlusion layer darkens your image in general, you might want to adjust the image levels (Ctrl+L) before you apply it to your picture. A quick auto adjust should do the trick.


Now all you have to do is to drag the Ambient Occlution Layer on top of your final render and choose Multiply. And voilà, you have Ambient Occlusion that was super quick to render with the added advantage of being easy to tweak and adjust.

Final Result:


And for comparison, the render before Ambient Occlusion layer was applied.


Thanks for reading, leave a comment if you have questions or suggestions.

  1. brainstormbrainstorm02-28-2011

    after a couple of frustrated trials of working with occlusion in other tutorials i could finally make it work here! Thanks a lot for you clear explanation!!

  2. nam nguyennam nguyen10-06-2011

    wowow, it really really useful for me, thanks

  3. FeliciaFelicia05-18-2012

    I too have tried other tutorials and they have never worked for me. This one is absolutely the best! Thank you so much for helping me out! Definitely referring friends to this tutorial when they are having trouble. Thank you again!!

  4. syedsyed05-23-2012

    Thank You, for the clear explanation.
    very simple yet effective….

  5. MahaMaha06-23-2012

    Thanks soooo much, I heard an hour and half tutorial and didn’t understand anything
    and here u did it just like that XD

  6. MarcoMarco12-08-2012

    Thank you very much. Very usefull to me^^

  7. emem06-22-2013

    nice
    but how do you handle alpha maps like leafs with this method?
    pls tel if you khnow: merey021@yahoo.com

    • Tom IsaksenTom Isaksen06-29-2013

      Yeah, sorry… this does not work with transparent objects and or alpha maps.

Leave a Reply