Skip to content

i-yam-jeremy/path-tracer

Repository files navigation

OpenCL Path Tracer

test scene test scene

Overview

  • Supports Metallic and Lambertian BRDFs
  • Uses an OpenCL kernel to render samples in parallel
  • Simulates millions of light rays along many bounces, accounting for random reflectance, absorbtion, and more.

Running

  1. Build with CMake
  2. Run PathTracer --listDevices to list the OpenCL devices available and obtain clPlatformIndex and clDeviceIndex for the selected device.
  3. Create a scene configuration file (instructions here).
  4. Run PathTracer width height samplesPerPixel clPlatformIndex clDeviceIndex imageOutputFrequency sceneConfigFilename outputImageName where the output image is a PPM file.

Testing

  1. Build with CMake
  2. Run PathTracer_test

Releases

No releases published

Packages

No packages published