VRayLightMtl + VRayDirt for Quick AO Render Checkup

VRayLightMtl + VRayDirt for Quick AO Render Checkup

0
October 7, 2009 |  by  |  Tips, Tutorials

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.

vraylightmtl vraydirt ambient occlusion render bugs 528x297 VRayLightMtl + VRayDirt for Quick AO Render Checkup

An example of how flipped normals will look

The material settings

Using VRayDirt map as color, making sure Emit on back side is off.

vraylightmtl settings VRayLightMtl + VRayDirt for Quick AO Render Checkup

VRayLightMtl Settings

Setting pure white and pure black for colors and radius to 200cm gives me good result, but you can play with it.

vraydirt settings VRayLightMtl + VRayDirt for Quick AO Render Checkup

VRayDirt Settings

Check out Peter Guthrie’s VRay Dirt Tutorial at his blog for more cool uses for this great VRay map.

19 comments
PaulKevinManinang
PaulKevinManinang

master,what is fast to be rendered? vramtrl it self or vraydirt?

Kat
Kat

Hi,
I am getting the objects rendered black and only few objects in the scene are getting the effect.......... please help
I have unchecked exposure in camera, used vray lightmtl with vraydirt.

Hims3lf
Hims3lf

Hey guys,

I had the same problem with it rendering a white photo. This is something I discovered while playing with the settings:

I have found that (at least in my case) unticking the "ignore for GI" option in the VrayDirt Parameters seems to make it work. It renders just fine with this option unchecked.

Hope I helped you.

videep
videep

Hi,

I am working on an interior scene in decimal feets. Using a vray camera and light setup for the same. But whenever I render, i just get a white image with only a few lines of black on the central AC put just next to the camera.

using the same settings. exposure to off... no GI... I tried with lights on and off, default lights on and off, no change.

Please help!!!

tristan
tristan

thanks for the tip. I've been using this technique for mental ray, although the exposure is turned off in the environment slot. i forgot that vray's camera has its own exposure, and this is where you need to turn off so your image will not turn black.

Shano
Shano

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?

xdream3d
xdream3d

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?

Architect Ahmed Fathi
Architect Ahmed Fathi

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?

sansamuel
sansamuel

I get a fully white frame too, any explaination for more detail...? I really need this.

aberreondo
aberreondo

I cannot seem to get this to work, when i render I get a fully white frame, can you please provide more details?

Peprgb
Peprgb

good result very quickly!!

thanks

arthur
arthur

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!

bitrateqz
bitrateqz

I'm using render elements VRay_ExtraTex_Map with VRayDirt. I think it is faster, but there is a problem with the loft objects.

Ronen Bekerman
Ronen Bekerman

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.

Ronen Bekerman
Ronen Bekerman

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.

Ronen Bekerman
Ronen Bekerman

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 :-)

Ronen Bekerman
Ronen Bekerman

Might be the radius value is not fitting to the scale of your model... resulting in very small black in the light mat.

maxdaiber
maxdaiber

HiWhere do I put the material for de  VRay_ExtraTex_Map, I can't seem to find it anywhere

sansamuel
sansamuel

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!

Trackbacks

  1. [...] VRayLightMtl + VRayDirt for Quick AO Render Checkup – 3D Architectural Visualization Rendering Blo… (tags: architecture 3dsmax rendering tutorial tutorials vray visualization 3d) [...]

  2. [...] vynález v digitální postprodukci fotek. Dokonce mám pocit, že by mohla nahradit i metodu AO pass (ambient oclusion pass), kdy se kontrast vypočítá pomocí metody ambient oclusion. Nicméně tady je pár odkazů, kde [...]

  3. [...] 2.: HDRI Image based lighting from RonenBekerman.com 3.: VRayDirt from VRayGuide.com 4.: Ambient Occlusion Render from RonenBekerman.com 5.: Render Passes in [...]

Recent Posts
Winner Announced: Laubwerk Giveaway

Winner Announced: Laubwerk Giveaway

08/29/2014  |  41 Comments

The 6TH 2014 blog birthday giveaway is here! Laubwerk will give one of you lucky followers the plants kit of choice... more

Winner Announced: iToo Software Giveaway - Forest Pack and RailClone 2

Winner Announced: iToo Software Giveaway – Forest Pack and RailClone 2

08/28/2014  |  6 Comments

The 5th 2014 blog birthday giveaway is here! iToo Software will give one of you lucky followers a chance to... more

Making of Nordic House

Making of Nordic House

08/25/2014  |  13 Comments

I found the Nordic House visuals by Héctor Javier Diez Valladares during my routine browse on Behance. My eye landed... more

Winner Announced: Grant Warwick's Mastering CGi Giveaway and Discounts

Winner Announced: Grant Warwick’s Mastering CGi Giveaway and Discounts

08/25/2014  |  90 Comments

The 4th 2014 blog birthday giveaway is here! Welcoming Grant Warwick who will give one of you lucky followers full access... more

Winner Announced: model+model Giveaway

Winner Announced: model+model Giveaway

08/21/2014  |  3 Comments

The 3rd 2014 blog birthday giveaway is here! model+model will give one of you lucky followers the volume of your... more

Unreal Engine 4 + ArchVIZ by Koola

Unreal Engine 4 + ArchVIZ by Koola

08/21/2014  |  45 Comments

Today I stumbled upon these Drop Dead Gorgeous Unreal Engine 4 Architectural Visualization tests by koola which immediately reminds one... more