A short course on pathtracing for Stamatics Projects '21.
The path-based formulation has been implemented, with paths being built incrementally. Sampling is now over a hemisphere since we're not really doing transparency right now, every material now has its own BRDF.
The current implementation samples camera rays uniformly from a circlular region inside the active pixel. Implement stratified sampling which subdivides this pixel and selects samples uniformly within those subdivisions.
These images were generated with 4 bounces and samples-per-pixel 16, 128, 512 and 1024 respectively. These results were with no stratified sampling.
Requirements:
- C++ compiler
- CMake (get this via
pip
and notapt
if you're on Ubuntu)
Build:
mkdir build
cd build
cmake ..
cmake --build .
You should now have an executable in build/bin
or build/bin/Debug