Embree provides a collection of high-performance ray tracing kernels that target modern Intel multicore microprocessors. In addition, Embree includes an example photo-realistic rendering engine. If you want to learn how ray tracing kernels are used in practice and how to optimize multithreaded code with Advanced Vector Extensions (AVX), you will find valuable examples by taking a look at Embree's code. Intel Labs has made Embree available as an open source project under the Apache 2.0 License.
Embree is a multiplatform project and it runs on Windows, Linux, and MacOSX. It is available in both 32-bit and 64-bit modes, and thus provides the ability to measure the performance of the kernels in the different platforms and with the two modes.
You can use GCC, Microsoft C++ Compiler, or the Intel Compiler to build Embree and its sample path tracing renderer, which uses the kernels and provides a few test scenes. However, Embree achieves better performance when you use the Intel Compiler because Embree coordinates with the optimization features found in it. In addition, Embree takes advantage of the highly optimized performance libraries that are included with the Intel compiler. Thus, Embree works as a nice example for benchmarking the results provided by different compilers on diverse platforms for a highly parallelized algorithm with extended use of modern SIMD instruction sets.
Embree has been optimized to take advantage of modern Intel CPUs that support the following SIMD instructions:
- SSSE3: Supplemental Streaming SIMD Extensions 3
- SSE4.1: Streaming SIMD Extensions 4.1
- SSE4.2: Streaming SIMD Extensions 4.2
- AVX: Advanced Vector eXtensions
Embree implements the Monte Carlo ray tracing method. This method is capable of generating photo-realistic rendering and supports physically accurate rendering. The ray tracing algorithm is very popular for professional applications, such as architectural visualization and movie production.
You can download the source code for Embree here. But before you can run the application in any version of Windows, you have to perform some steps after building Embree.
It is necessary to copy the GLUT library included in the app\freeglut folder. The folder includes two sub-folders, Win32 (32-bit vesion) and x64 (64-bit version). You must copy each freeglut.dll into the corresponding Debug or Release folders. For example, you must copy the freeglut.dll file found in app\freeglut\Win32 into the Win32\Release folder, and the freeglut.dll file found in app\freeglut\x64 into the x64\Release folder.
Once you have copied the freeglut.dll file according to your needs, you will be able to run the embree.exe command-line application to test the kernels with the sample scenes found in the models folder. You will find all the necessary information to run the examples and understand Embree's structure in the Embree User's Guide. The PDF file name is "embree_users_guide.pdf" and it is located in the doc folder. I mention this user's guide because you won't find references about it in the README.TXT file located in Embree's root folder.