CPU Pathtracer

May 15, 2023·
Ben Ahlbrand
Ben Ahlbrand
· 1 min read
Image credit: Unsplash

I wrote a monte carlo path tracer based on ray tracing in a weekend series as a stress test for my vector / matrix math library in C++.

Here’s some raw output:

raw

Here’s a basic non-local means denoiser I wrote

nlm

Then here’s the difference visualized:

residual