VRayLightMtl + VRayDirt for Quick AO Render Checkup

VRayLightMtl + VRayDirt for Quick AO Render Checkup

0
October 7, 2009 |  by  |  Tips, Tutorials
83 Flares Facebook 64

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.

Subscribe to the Blog

18 comments
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?

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.

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?

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.

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?

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

sansamuel
sansamuel

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

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.

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!

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.

maxdaiber
maxdaiber

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

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
RailClone2 by iToo Software Released

RailClone2 by iToo Software Released

05/20/2013  |  No Comments

RailClone2 is being released today by iToo Software, the makers of Forest Pack. It is a completely revamped version of... more

Making of House in Giannitsa

Making of House in Giannitsa

05/13/2013  |  No Comments

Vasilis Koutlis from studio xDream3D, recently shared on the forums their work on the Giannitsa House Interiors which I really... more

Making of 'Viking Pavilion' NPR / Daytime Basketball Game

Making of ‘Viking Pavilion’ NPR / Daytime Basketball Game

05/08/2013  |  No Comments

Here's the continuation to Scott Baumberger's Non-Photorealistic Rendering (NPR) Approach to Architectural Visualization workflow article. In the previous article, Scott... more

Hurst House by John Pardey Architects + Ström Architects

Hurst House by John Pardey Architects + Ström Architects

05/03/2013  |  No Comments

The Hurst House by John Pardey Architects + Ström Architects is simple, clean and beautiful. That hovering box thing has... more

XfrogPlants April (and May) Sale

XfrogPlants April (and May) Sale

04/29/2013  |  No Comments

You can never have enough 3d trees & plants. Keeping your scenes greenies nice and fresh is important, so here's... more

48 Free Old White Wood Planks Textures

48 Free Old White Wood Planks Textures

04/26/2013  |  No Comments

Mário Nogueira follows up with one more great share of 48 Old White Wood Planks Textures that you can use... more