Here’s a quick tip I use almost all the time now, mostly because I really like the look and it’s easy and quick to setup, but the main advantage of an AO (ambient occlusion) pass is spotting problem areas in the geometry – especially holes and flipped normals you might have missed
Setting up the AO pass with VRayLightMtl & VRayDirt is real easy and fast. You don’t need to turn on GI or use a VRay Physical Camera for this (if you do, make sure to tick off the exposure option). After I import the model into 3d Studio Max, or just finished modeling inside 3dsmax, I run this quick pass to check the model for geometry bugs such holes and flipped normals i might have missed.
In the image below you’ll see how those problem areas will show in such a pass. This will only work if the Emit light on back side option in the VRayLightMtl is off allowing for all those problem areas to appear pure black since they are not emitting any light.
The material settings
Using VRayDirt map as color, making sure Emit on back side is off.
Setting pure white and pure black for colors and radius to 200cm gives me good result, but you can play with it.
Check out Peter Guthrie’s VRay Dirt Tutorial at his blog for more cool uses for this great VRay map.
Join the blog’s RSS Feed and be notified when new posts like this are published. You can also share with others using the ShareThis button below.
Most Popular Posts
13 Comments
Trackbacks
Leave a Reply
Recent Posts
Winner Announced: DesignConnected Giveaway
Last of the giveaways is here! DesignConnected will give one of you lucky followers their chance to pick 15 models more
13 Free Models by DesignConnected
The DesignConnected Giveaway will start soon but as a prelude to it, the good people at DesignConnected added this free more
House M Visualization by Bertrand Benoit
Bertrand posted two new personal visualization projects he recently finished at the forums. This one is House M by Titus more
Winners Announced: MindMeister Giveaway
The second of the blog's birthday giveaways is here! I'll be giving away 2 months of free premium MindMeister account more












I’m using render elements VRay_ExtraTex_Map with VRayDirt. I think it is faster, but there is a problem with the loft objects.
great tip, I was looking for some way to do AO in vray for quite some time now, this is great, thanks for the tip!
good result very quickly!!
thanks
I cannot seem to get this to work, when i render I get a fully white frame, can you please provide more details?
I get a fully white frame too, any explaination for more detail…? I really need this.
Might be the radius value is not fitting to the scale of your model… resulting in very small black in the light mat.
My scene is setup in metric centimeters, my object is a car model with a size approximately 480cm X 185cm. Then I set the AO material, just like the tutorial above, and adjust the VRayDirt radius with variant range from 200cm to 10000cm, the render result is still the same “all white flat image”. I use 3ds max 2009 with VRay 1.5 SP2.
Any further explanation will help. Thanks!
I think there’s a small problem with this tut. Where it says use pure white and pure black… it’s never a good idea to use pure white or black for any material or VRrayDirt, it’s not physically possible and would result in strange GI calculation, for example if you use a pure white and there are lots of lights and GI you might end up with a totally burnt image (because light bounces 100% off pure white which is not possible for any physically correct material) and if you use pure black it will absorb all light falling on it, etc…
@ sansamuel: is your light setup set for a physical camera? if so, did you try to render your AO pass through your physical camera?
You are correct about the pure black / white issue with render… but this is true for the normal render and not this AO pass – this is not intended to be real in any way so it’s no problem.
The thing I try to get from this pass is catching errors and a general feel of the geometry before I move on. You might also use this pass in post to enhance shadows.
I use a physical camera but with exposure off – so it acts like a regular camera this way. I use the VRay camera since when I advance with the scene i can use the same on with exposure set to ON.
Hope this helps
Hallo, I read this powerfull mini tutorial and i find it very helpfull but can anyone help with the position we put this VRayLightMtl? In the environment of max may be?
You put this inside a material and then use it as a global material override in the VRay global settings. It replaces all other materials in render time.
Hey Ronen,
Gongrats on the great blog! My comment has nothing to do with this post (Even though its gratifying that I have been using the same technique). Just wanted to comment on the carpet, it looks great.. How did you make it and how do you get such an object to not flicker when animating? Especially in the AO pass?
Thanks Shano!
I used 3ds Max Hair & Fur modifier for this carpet… and I wouldn’t know about the flicker since I did not animate such thing ever before.