Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.

Filter functions by scene

Patrick_S_4
Beginner
168 Views

Hi, 

I'm wondering if there's a way to set the filter function for all geometries in a given scene at once. I have two types of filters I'd like to use for different ray_fires, but I don't want to have to track the number of geometries in each scene and reset them for each geometry when I switch between the two. 

I've considered using the Occlusion intersection function for one of the cases to avoid this switch, but it doesn't return enough information about the ray hit for me to use it I'm afraid.

Any suggestions?

Cheers, 

Patrick

0 Kudos
1 Reply
SvenW_Intel
Moderator
168 Views

You can workaround this limitation by setting a master filter function to all geometries, that by itself switches between the two filter functions you want to use. 

Reply