Skip to content

JamesGriffin/Path-Tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Tracer

Simple monte carlo path tracer in C++.

Features

  • Mesh Rendering
  • Obj Model Import
  • Textures (PNG only at the moment)
  • Simple naive KD tree for meshes.
  • Diffuse, specular, and emission material types

Compiling and Running

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.

Sample Images

Dabrovic Sponza

Dabrovic Sponza - http://hdri.cgtechniques.com/~sponza/files/

Stanford Dragon

Stanford Dragon - http://graphics.stanford.edu/data/3Dscanrep

Stanford Lucy

Stanford Lucy - http://graphics.stanford.edu/data/3Dscanrep

Cornell Box

Cornell Box

About

Simple monte carlo path tracer in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published