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.
265 Discussions

enable EMBREE_BACKFACE_CULLING without using CMake

Aguerre__Jose
Beginner
510 Views

Hi, 

 

I was wondering if it is possible to enable backface culling without using CMake. I already have my VS2013 project working with a bunch of other libraries. I need to add this option to the already existing project.

 

Thank you,

Jose

0 Kudos
3 Replies
SvenW_Intel
Moderator
510 Views

Just enable the EMBREE_BACKFACE_CULLING define in embree/kernels/config.h

Aguerre__Jose
Beginner
510 Views

Hi Sven,

I don't think I made myself clear in the question. The thing is that my VS2013 project is a standalone project, I dont have any kernels folder, nor config.h file. I just built a VS project and included <embree3/rtcore.h>. Hence, I do not know how to enable backface culling.

Thanks 

Jose

SvenW_Intel
Moderator
510 Views

As you use the precompiled binaries there is no way to enable the backface culling. Backface culling can only get enabled at compile time.

However, you could implement an intersection filter callback that achieves the same result, but at slightly lower performance.

Reply