ospray icon indicating copy to clipboard operation
ospray copied to clipboard

How to change zfar?

Open bhowmickarka opened this issue 2 years ago • 2 comments

Hello, I have a very beginner level question. Is there a way to adapt zfar for the cameras?

bhowmickarka avatar Jan 11 '23 13:01 bhowmickarka

In ray tracing it is usually not needed to set a zfar. Depending on the use case there are some possibilities:

  • You can set a map_maxDepth texture on the Renderer (can be just 1x1 texel large), which is intended to facilitate compositing with other render passes (using it's z-buffer).
  • Alternatively you can use a Plane (or any other) Geometry as clippingGeometry at a Group.

johguenther avatar Jan 11 '23 14:01 johguenther

Did any of the alternatives work?

Can you briefly describe the usecase – we can see it as feature request to add a farClip parameter to cameras.

johguenther avatar Mar 09 '23 13:03 johguenther