Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)
279 Discussions

enable EMBREE_BACKFACE_CULLING without using CMake

Aguerre__Jose
Beginner
1,080 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
1,080 Views

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

0 Kudos
Aguerre__Jose
Beginner
1,080 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

0 Kudos
SvenW_Intel
Moderator
1,080 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.

0 Kudos
Reply