Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 920 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 920 Bytes

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