Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tony_M_2
Beginner
57 Views

One sided triangle intersection only

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
57 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.
SvennW_Intel
Moderator
57 Views

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