Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)
Announcements
Important Update: Community Platform Migration​. Learn more​>

One sided triangle intersection only

Tony_M_2
Beginner
1,686 Views

Is there a flag to tell Embree to only return hit intersections for "one sided" triangles

I.E. If the triangle's normal was pointing away from the casting ray, opposed to if they were in opposite directions.

0 Kudos
2 Replies
Al_N_
Beginner
1,686 Views
I don't believe so. You need to use the filter function and test which side of the triangle was hit and discard those hitting the wrong side.
0 Kudos
SvenW_Intel
Moderator
1,686 Views

Compile Embree with the RTCORE_BACKFACE_CULLING cmake option enabled, and all back-facing triangle will be ignored.

0 Kudos
Reply