RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
1.01k stars 182 forks source link

Possibility to combine clipped and non-clipped geometry on the same scene. #512

Closed NadirRoGue closed 2 years ago

NadirRoGue commented 2 years ago

Hello,

Going through the documentation, I read this on the OSPGroup definition:

All geometries and volumes assigned to geometry or volume will be clipped. All clipping geometries from all groups and Instances will be combined together – a union of these areas will be applied to all other objects in the world.

I made a test scene to confirm the statement so that, even though I added the clipping geometry to a group, other group instances are clipped as well.

In our visualization tool, based on OSPRay, some of the use cases that we have require that some geometry is clipped, while other remains non clipped at all.

Is there a way to achieve this in the current version of OSPRay (2.8.0) or is it possible to have it?

Currently, to bypass this limitation, we have to implement our own renderers, adding a custom parameter to the material so that when we hit a primitive, depending on the aforementioned parameter and the clipping planes on the scene, we clip the geometry or not.

We are on the process of updating the version of OSPRay we use to the latest release, and this is the only bit that prevent us from using OSPRay out of the box.

Kind regards.

NadirRoGue commented 2 years ago

I just saw it is already a WIP feature at #504

Apologies for the double posting.