Simple monte carlo path tracer in C++.
- Mesh Rendering
- Obj Model Import
- Textures (PNG only at the moment)
- Simple naive KD tree for meshes.
- Diffuse, specular, and emission material types
Requires cmake and OpenMP for multithreading.
Compile:
$ mkdir build
$ cd build
$ cmake ..
$ make
Run:
$ ./pathtracer <number of samples>
This will render the Stanford Dragon scene which is included. Take a look at src/main.cpp to see how to create a scene and import objs.
Dabrovic Sponza - http://hdri.cgtechniques.com/~sponza/files/
Stanford Dragon - http://graphics.stanford.edu/data/3Dscanrep
Stanford Lucy - http://graphics.stanford.edu/data/3Dscanrep
Cornell Box