Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

RTCORE_RAY_MASK vs. __USE_RAY_MASK__

Pierre_L_5
Beginner
132 Views


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
132 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

Reply