# ZDepth & Enable Filtering

**URL:** <https://forums.chaos.com/t/zdepth-enable-filtering/52476>\
**Category:** Issues\
**Created:** [January 30, 2015, 2:09pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476 "2015-01-30T14:09:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingus](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pingus/32/31581_2.png) [@pingus](https://forums.chaos.com/u/pingus)\
**Post date:** [January 30, 2015, 2:09pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/1 "2015-01-30T14:09:08Z")

</div>

We’ve just noticed a damn bug today.

When disable filtering in ZDepth Render Element, background becaume white, instead of black like all previous version / all other render elements.  
This is hardly blocking because we queued about 500 jobs in Deadline with this and we absolutly needed.

Is it a knowed bug ? is there’s a quick workaround ?

Thanks !

 ![Z_bug_vray2.4.JPG](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/a/2a6aaad13e51470e5952ddc4d45f902083a25fa7.jpeg)  
 ![Z_bug_vray3.JPG](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/2/22e20298ce50639a1cfa4fa716a8ac39e777f45a.jpeg)

---

<div class="post-metadata">

**Author:** ![Brendan\_Coyle](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@Brendan\_Coyle](https://forums.chaos.com/u/Brendan_Coyle)\
**Post date:** [January 30, 2015, 8:01pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/2 "2015-01-30T20:01:08Z")

</div>

I just tested and I don’t have this issue. Are you using the latest version of vray?

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [January 30, 2015, 10:17pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/3 "2015-01-30T22:17:58Z")

</div>

It’s because of the option to invert the z-buffer and some changes that were needed to make it work with transparency. One solution is to not invert the z-buffer and do any such transformation in post.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![pingus](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pingus/32/31581_2.png) [@pingus](https://forums.chaos.com/u/pingus)\
**Post date:** [February 2, 2015, 8:14am UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/4 "2015-02-02T08:14:14Z")

</div>

No we can’t, because when invert is untick, now the background is black.  
So furthers objects are at the opposite color of the background witch make results.

This is pretty urgent, i’ll take any workaround or nightly 😛

@Cherrioboy : did you uncheck “enable filtering” ?

---

<div class="post-metadata">

**Author:** ![Margarita.Stoeva](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/margarita.stoeva/32/15122_2.png) [@Margarita.Stoeva](https://forums.chaos.com/u/Margarita.Stoeva)\
**Post date:** [February 2, 2015, 9:44am UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/5 "2015-02-02T09:44:38Z")

</div>

Could you test your scene with placing a higher value in the zdepth min field? This may fix it if it’s currently 0.  
Please, inform us how it went.

---

<div class="post-metadata">

**Author:** ![pingus](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pingus/32/31581_2.png) [@pingus](https://forums.chaos.com/u/pingus)\
**Post date:** [February 2, 2015, 10:09am UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/6 "2015-02-02T10:09:34Z")

</div>

Woot you made my day !!

Indeed, when minimum value is u pa little bit, then background is OK.

Thanks so munch, that’s a easy workaround.

---

<div class="post-metadata">

**Author:** ![Margarita.Stoeva](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/margarita.stoeva/32/15122_2.png) [@Margarita.Stoeva](https://forums.chaos.com/u/Margarita.Stoeva)\
**Post date:** [February 2, 2015, 11:08am UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/7 "2015-02-02T11:08:58Z")

</div>

Great to hear that!

---

<div class="post-metadata">

**Author:** ![pingus](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pingus/32/31581_2.png) [@pingus](https://forums.chaos.com/u/pingus)\
**Post date:** [February 18, 2015, 5:15pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/8 "2015-02-18T17:15:39Z")

</div>

Hello !

We tried to used the “minimum value” tricks, but we lately saw that didn’t really worked.  
Something isn’t good in Zdepth & After effect had some trouble to use it properly.

BTW we found another workaround that i wanted to share, to see if it can help.

We still use 0 has minimum value but to avoid white background, we force a vraycolor white in 3dsmax environment.  
That result a grey in diffuse alpha, but now Z is on black background witch is better for compositing.

We worked all the week to solve this Z problem and it looks like this is the proper workaround at the moment.

Any update we should expect on this particular ZDpeth render element ?

Thanks !

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [February 19, 2015, 4:09pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/9 "2015-02-19T16:09:59Z")

</div>

No unfortunately - the bug is not fixed yet.

---

<div class="post-metadata">

**Author:** ![smashley](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@smashley](https://forums.chaos.com/u/smashley)\
**Post date:** [March 12, 2015, 3:20pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/10 "2015-03-12T15:20:11Z")

</div>

We really hope this bug gets sorted out. The loss of DOF samples in V-Ray 3.0 means we are doing more DOF in post. Without a proper zpass, this is very difficult.

thanks,

-chad

---

<div class="post-metadata">

**Author:** ![pingus](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pingus/32/31581_2.png) [@pingus](https://forums.chaos.com/u/pingus)\
**Post date:** [May 27, 2016, 7:38am UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/11 "2016-05-27T07:38:08Z")

</div>

Up !

Any news of this bug in next release ?

Thanks  
-p-

---

<div class="post-metadata">

**Author:** ![Laserschwert](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@Laserschwert](https://forums.chaos.com/u/Laserschwert)\
**Post date:** [May 30, 2016, 3:51pm UTC](https://forums.chaos.com/t/zdepth-enable-filtering/52476/12 "2016-05-30T15:51:47Z")

</div>

It’s pretty easy to fix this issue in AfterEffects though, by simply pre-comping the Z-buffer and keying out the white background with a linear color key set to 0% tolerance. Since white would only appear at a distance of 0 (i.e. never), only the background will get removed. Then add a black background with the Channels → Solid Composite effect and you’re good to go.
