Adding Fog Using VRayZDepth Render Pass

Adding Fog Using VRayZDepth Render Pass

0
January 20, 2010 |  by  |  Tips, Tutorials

Here’s a quick and flexible way to emulate the look of fog in the background of an image. I recently used this technique in the visualization of the Agami House in Yaffo. It’s true it might not look real enough but for most cases this really looks good enough and you have the added bonus of fast render and flexible edit inside Photoshop if the client ask for tweaks.

Adding the fog layer

You’ll start with the original render without any fog in it as you see below

agami house fog 0 528x352 Adding Fog Using VRayZDepth Render Pass

Render without any fog

On top of this image you’ll add the fog layer – Full frame of pure white color masked out by the VRayZDepth render pass.

agami house zDepth 528x352 Adding Fog Using VRayZDepth Render Pass

VRayZDepth Render Pass

If you need to adjust the fog location relative to the camera you can play with the ZDepth image levels, instead of re-rendering the image after changing the VRayZDepth parameters, This way you can quicky move the fog in and out as i did in the example below.

agami house zDepth 2 528x352 Adding Fog Using VRayZDepth Render Pass

Getting the fog near camera with levels edit

agami house fog 100 full 528x352 Adding Fog Using VRayZDepth Render Pass

White layer masked out using VRayZDepth on top

But this is not that good since the beautiful sky is now covered with white color. In order to get this right, and actually more true to the way fog behaves in reality, you need to change the pure white layer to a gradient with pure white at the bottom that shifts to transparency as you move up… this way the fog will be limited to near ground areas.

agami house fog 100 528x352 Adding Fog Using VRayZDepth Render Pass

Fog using a gradient instead of pure white layer

You can see above the end result with the fog layer at 100%. You can decrease the impact of this layer to fine tune the general effect, or even mask out specific areas to emphasize exactly what you like.

agami house fog 80 528x352 Adding Fog Using VRayZDepth Render Pass

80% of fog layer

agami house fog 60 528x352 Adding Fog Using VRayZDepth Render Pass

60% of fog layer

agami house fog 40 528x352 Adding Fog Using VRayZDepth Render Pass

40% of fog layer

10 comments
whitebirchstudios
whitebirchstudios

I am still confused about the "ZDepth image levels", and I don't see mention of it in the provided link. So, we are able to adjust the zdepth without rendering it again? How is this possible?

Ahmed ebrahim
Ahmed ebrahim

i'm sry but i don't know how i can masked out the zdepth map on the real photo

farrokh
farrokh

Thanks for your sharing. But I'm not familiar with VRayZDepth parameters, is there any good tutorial for this parameter?

Thanks again.

Galaites
Galaites

Thanks Ronen for the tutorial... glad you put it on your own web. I like the color saturation that makes the image very rich.
Btw can i link this from my website?

ronenbekerman
ronenbekerman moderator

@whitebirchstud When I mention levels, I refer to tweaking these in Photoshop for example. For actual ZDepth made to fit a specific range re-render is needed. To avoid that I usually have 2-3 ZDepth Passes with different distances input... to cover more than one base ;)

Recent Posts
PETER GUTHRIE HDRI Skies Submitted Image Winner / Maciej Kozlowski

PETER GUTHRIE HDRI Skies Submitted Image Winner / Maciej Kozlowski

10/18/2014  |  No Comments

Congratulations to Maciej Kozlowski for winning the second stage of the August 2014 PETER GUTHRIE HDRi Skies giveaway! During the month of... more

Designconnected Submitted Image Winner / Alexander Nozadze

Designconnected Submitted Image Winner / Alexander Nozadze

10/14/2014  |  2 Comments

Congratulations to Alexander Nozadze for winning the second stage of the August 2014 DesignConnected giveaway! During the month of August... more

SOA #AcademyDay5 - Interview with MIR

SOA #AcademyDay5 – Interview with MIR

10/13/2014  |  21 Comments

I first interviewed Trond Greve Andersen & Mats Andersen, co-founders of Norway based architectural visualization studio MIR, back in March... more

SOA Academy Day #5 - The Gathering

SOA Academy Day #5 – The Gathering

10/07/2014  |  6 Comments

I'm seating at SOA's studio, as I write these lines, going over the recorded interviews with Roberto and and thinking... more

Venice, Round Number 5!

Venice, Round Number 5!

10/02/2014  |  2 Comments

October is here and so is the State of Art Academy Day #5. Years fly by fast for sure... it... more

Free Venice Loft's Dresser by Patric Verstraete

Free Venice Loft’s Dresser by Patric Verstraete

10/01/2014  |  6 Comments

In anticipation for SOA's Academy Day #5 taking place this weekend, Patric Verstraete embarked on a personal project titled "The... more