Basic CUDA path tracer with triangle mesh support
Cuda C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Update README.md Dec 1, 2015
cutil_math.h Update cutil_math.h Jan 25, 2016
tutorial2_cuda_pathtracer.cu Update tutorial2_cuda_pathtracer.cu Mar 3, 2016

README.md

GPU-path-tracing-tutorial-2

Basic CUDA path tracer with triangle mesh support (based on CUDA raytracer from http://cg.alexandra.dk/?p=278) Sam Lapere, 2015

In order to keep the code to a minimum, there are lots of hardcoded values at the moment. The comments should clarify most of what's happening but let me know if something isn't clear.

The code probably contains some bugs as I haven't had much time to do many testing. It will probably be revised for the next tutorial.

The executable needs glew32.dll and glut32.dll to run and the triangle meshes (bunny and teapot) should be stored in folder named "data" that resides in the project folder.

For screenshots produced with this code, see http://raytracey.blogspot.co.nz

Stanford Bunny mesh from https://graphics.stanford.edu/~mdfisher/Data/Meshes/bunny.obj Berkeley teapot mesh from http://inst.eecs.berkeley.edu/~cs184/sp09/assignments/teapot.obj