RenderKit/embree

Embree ray tracing kernels repository.

What it solves

Rendering realistic images (like those in movies or product visualizations) requires computing how light rays bounce off surfaces. Doing this for millions of rays per frame is extremely slow. Intel Embree is a library that provides ready-to-use, highly optimized ray tracing routines, so application developers don't have to write their own from scratch. It's built for production rendering workloads, focusing on fast handling of random (incoherent) rays, building high-quality spatial acceleration structures, and keeping memory usage low.

How it works

Embree works as a set of core kernels that you link into your renderer. It supports a wide range of geometric primitives—triangles, quadrilaterals, grids, subdivision surfaces, curves, spheres, and procedural user-defined shapes. It also handles advanced features like instancing (reusing the same geometry many times), motion blur (including multi-segment and deformation blur), ray masking, and filter callbacks that fire on any ray hit. The library uses runtime code selection to choose the best instruction set (SSE, AVX, AVX2, AVX-512) for the CPU you're running on, so it extracts maximum performance from x86 processors. For Intel GPUs, Embree provides a SYCL interface, allowing you to write a single C++ source that runs on both CPUs and GPUs, leveraging hardware-accelerated ray tracing on Xe HPG and Xe HPC architectures. It also integrates with the Intel ISPC compiler for automatic vectorization.

Who it’s for

Graphics application developers—especially those building photo-realistic renderers for film, games, or visual effects—who need high performance and a rich feature set without writing low-level ray tracing kernels themselves. It's also useful for developers targeting Intel GPUs, as the SYCL support lets them maintain one codebase for CPU and GPU implementations.

Highlights

  • Supports many primitive types: triangles, quads, grids, Catmull-Clark subdivision surfaces, multiple curve types, spheres, and user-defined geometries.
  • Handles advanced effects: multi-level instancing, motion blur (multi-segment, deformation, quaternion), filter callbacks, and ray masking.
  • Optimized for both incoherent rays (Monte Carlo path tracing) and coherent rays (primary visibility, hard shadows) with runtime code selection for SSE, AVX, AVX2, AVX-512.
  • Two-level spatial index structures enable efficient handling of dynamic scenes.
  • Cross-platform: Windows, Linux, macOS; x86 CPUs everywhere, ARM (including Apple M1) on Linux/macOS; Intel GPUs on Linux and Windows.
  • Provides SYCL interface for GPU support, plus an ISPC interface for automatic vectorization.
  • Built on Intel Threading Building Blocks (TBB) for parallel tasking, but can optionally disable it.
  • Includes tutorials and CMake integration for easy adoption.

Related

  • Dispatch
  • Dispatch
  • Project
  • Project
  • Project