RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization

Home Page:http://ospray.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change zfar?

bhowmickarka opened this issue · comments

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

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.

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.