Three Ways to Generate Ambient Occlusion in 3ds Max
1. AO with Mental Ray
Step 1
Ihave made a very simple scene for this demonstration. This scene contains ateapot, a box and a sphere. I have also applied some materials and set therendering engine to Mental Ray.
Step 2
I have also added and positioned several Omni lights in the scene.
Step 3
Ihave chosen Mental Ray Shadow Map as the shadow type. And in the Mental Ray Shadow Maprollout, I have set the MapSize to 2048 and the Samples to 24.
Step 4
Press the F10 key to open the Render Setup window.In the Renderer tab, set the Minimum value to 4 and the Maximum value to 16. And select Mitchell for the Filter Type.
Step 5
Now render the scene. It looks nice, but the depth is still missing. However the shadows are soft. We can enhance the overall look byadding an Ambient Occlusion pass while compositing.
Step 6
In general words, AmbientOcclusion (AO) is a method of creating soft shadows around the cornerswhere objects meet. It gives an extra sense of depth and realism. Look at theimage below for a before and after comparison.
Step 7
Let’s see how we can generate an Ambient Occlusion pass using MentalRay. Press M to open the Material Editor. Pick an emptyslot and click on Standard, then choose Mental Ray from the list.
Step 8
Click on the Surface map slot and select Ambient/ Reflective Occlusionfrom the list.
Step 9
Set the Samples to 128, Spread to 1 and the Max Distance to 20. You can play with thesevalues in your case.
Step 10
Press F10 to openthe Render Setup. Go to the Processing tab and enable the Material Override option. Thenselect the Ambient Occlusion material slotand drag and drop it onto the Material Overridechannel.
Step 11
Now press F9 to render the frame. This is the rendered frame with the Ambient Occlusion pass. You can see the soft shadows around the corners where the objects meet.
2. AO with the Scanline Renderer
Step 1
Ifyou want Ambient Occlusion using the Scanline renderer, then you need to use a trick. First, disableall the lights in the scene. To do this, go to Tools> Light Lister.
Step 2
This opens the LightLister window. Here turn off all the lights by unchecking the boxes under On.
Step 3
Goto Lights >Standard Lights andgenerate a Skylight in the scene by clicking and dragging in the viewport. Turnon its Cast Shadow option.
Step 4
PressM to open the Material Editor. Pick an emptyslot and select a pure white for the Diffuse color. And then apply thiswhite material to all the objects in the scene.
Step 5
PressF9 to render the frame, and you'll get the Ambient Occlusion map.
3. AO through MAXScript
Step 1
MicheleMarcelli has written a very useful script for creating Ambient Occlusion. Youcan go to www.scriptspot.com to get thescript. The best thing about it is that the script is FREE to use.
Step 2
Download and install the script. Normally you have to putthe script into the Scripts folder of the 3ds Max root directory. Now back in 3ds Max, go to MAXScript > Run Script. This opens the browser, here select the script and click onOpen.
Step 3
The script window opens with a warning message. It says thatyou need to change the renderer from Scanlineto Mental Ray. Click on OK. It will automatically change therendering engine to Mental Ray.
Step 4
With the default values selected, click on the Preview AO button.It will immediately show the preview in the small window.
Step 5
Ifyou are satisfied with the preview, click on the Render VFB button. This will showyou the final result. The output resultlooks good, but is a bit grainy. So we need to tweak some values.
Step 6
Increasethe Sample rate to 256. Now, firstclick on Preview and then click on the Render VFB button. The rendered frameis much clearer and smoother than it was before.
Step 7
Previously this script was only capable of rendering a single frame, but with the updated version, you can now render all of the active timelineframes.
Conclusion
I hopeyou have enjoyed these three ways to create Ambient Occlusion in 3ds Max. Thescript written by Michele Marcelli is the fastest way to get the AmbientOcclusion. The script is totally FREE to use, however if you find it useful,you can donate an amount to the creator of the script as a return gesture.This is only a matter of choice.
From: http://cgi.tutsplus.com/tutorials/three-ways-to-generate-ambient-occlusion-in-3ds-max--cms-21612
You must Sign up as a member of Effecthub to view the content.
A PHP Error was encountered
Severity: Notice
Message: Undefined index: HTTP_ACCEPT_LANGUAGE
Filename: helpers/time_helper.php
Line Number: 22
1640 views 0 comments
You must Sign up as a member of Effecthub to join the conversation.