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.
Failed to load latest commit information. Update Dec 1, 2015
cutil_math.h Update cutil_math.h Jan 25, 2016 Update Mar 3, 2016


Basic CUDA path tracer with triangle mesh support (based on CUDA raytracer from 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

Stanford Bunny mesh from Berkeley teapot mesh from