Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Pierre_L_5
Beginner
36 Views

RTCORE_RAY_MASK vs. __USE_RAY_MASK__


Hi everyone!

I have a small question regarding Embree compilation configuration. 

I am playing around with Embree subdivision surfaces (which work great btw) and when trying out ray masks with them, it turns out the macro __USE_RAY_MASK__ is left undefined.
I did define the more official RTCORE_RAY_MASK macro when buiding Embree with Cmake, but it does not seem to trigger the definition of __USE_RAY_MASK__.

I basically had to add its definition at the end of the generated config.h header.
I suppose it is an ugly workaround and that __USE_RAY_MASK__ is meant to stay private, but I could not find a better way to get ray masks to work with subdivision surfaces.

Could someone knowledgeable help me with this? 
Many thanks!
    Pierre.

0 Kudos
1 Reply
BenthinC_Intel
Employee
36 Views

Hi Pierre,

thanks for reporting the issue. It seems the subdiv intersectors in 2.7.1 do not correctly handle ray masks. We'll fix this in the next release.

Thanks,

Carsten