Announcement

Collapse
No announcement yet.

Z-Depth render element Setting Near distance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #2
    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.

    Nikoleta Garkova | chaos.com

    Comment


    • #3
      Originally posted by nikoleta.garkova View Post
      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.

      Attached Files

      Comment

      Working...
      X