Kai Huang

Home

Blog

Portfolio

KHRay

A multi-threaded ray tracer based on Physically Based Rendering by Matt Pharr.

KHRay

KHRay is a CPU based multithreaded path tracing renderer written in C++, based on the book Physically Based Rendering: From Theory to Implementation by Greg Humphreys and Matt Pharr. The purpose of this project to teach myself the theory behind many aspects of physically based rendering such as the Light Transport Equation, Sampling Theory, and Monte Carlo Integration before resume working on my DXR Path Tracer

Features

  • Ambient occlusion integrator
  • Simple path integrator
  • Intel's embree3 library for accelerated ray tracing
  • Multi-threaded rendering
  • DXR-like acceleration structure (BLAS and TLAS)

Goals

  • Implement full path tracing
  • Implement spectral path tracing
  • Implement importance sampling
  • Implement multiple importance sampling
  • Implement materials
  • Implement various samplers

1

2

3

4

5