Z-Depth render element Setting Near distance

In Vray 3.6 i could set the far And the near distance for the Z-depth render elements, but with vray next i seem to be able to set just the far distance? I’d really like to set both.. if anyone can tell me if i’m wrong i would really be helped. Thanks!

Hi @twan_vandijk ,

We are currently looking into reintroducing Z Depth’s Near Distance parameter. Meanwhile, as a workaround, the following code snippet can be used in SketchUp’s Ruby Console (Window > Ruby Console):

VRay::LiveScene.active[“/Z Depth”][:depth_white] = 0
VRay::LiveScene.active[“/Z Depth”][:depth_black] = 500
VRay.refresh_ui

Keep in mind that:

  • depth values are calculated in inches
  • depth_white refers to near distance
  • depth_black refers to far distance

You can change the values as you see fit.

Tried this, but looks it does not work for me. Measured distance with DoF (pick distance from scene) and measured with tape and converted cm to inch. What I am doing wrong? I want to render displacement map with VrayZdepth render element.



zdepth.zip (131 KB)