Skip to content

XiaoyiHu1998/ReSTIR_DI_Raytracer

Repository files navigation

ReSTIR DI Raytracer

A simple CPU ReSTIR DI raytracer application based on the paper by Bitterli et. al. built during a few courses at Utrecht University.

The program is built in C++ in an early version of TheCherno's Hazel Engine and uses Jacco Bikker's tinybvh.
It is currently capable of running a 32M triangle scene at 5.1 fps vs a 400K triangles scene at 6 fps on a Ryzen 5 5600X.

Features:

  • ReSTIR Direct Illumination
  • Rigid Animations
  • OBJ Mesh Importing
  • Fast BVH Traversal

Warning: The build system uses the .\vendor\bin\premake\premake5.exe executable included in the repository to build a visual studio solution.
Download and replace it with the executable from the official site if you want to be sure its safe!

Build Instructions:

  1. Clone Repository.
  2. Edit GenerateProject.bat to generate a solution for your version of Visual Studio (vs2022 or vs2019).
  3. Run GenerateProject.bat.
  4. Open hazel.sln and set to Release configuration
  5. Build and run program.

Requirements:

  • Windows 10 or higher.
  • Visual Studio 2019 or higher.
  • C++17

About

A simple raytracing renderer implementing ReSTIR DI

Topics

Resources

Stars

Watchers

Forks

Contributors