An OpenCL based Real-time Path Tracer
by Shikang DU and Mingyu ZHANG
- Real-time ray tracing
- Progressive rendering
- Reflection and refraction material
- Movement of objects and interactive camara control.
The compilation can be done using CMAKE
. Tested in Windows 10 with VS2019.
The library has one external dependency:
- GLFW which can be installed through standard packages in Linux/MacOS (see the provided detailed tutorials).
- OpenCL, above v1.2, which is provided by CUDA or AMD equivalant.
- WARNING: Intel is not supported. (specially for Linux)
- If
cl.hpp
is not provided by your OpenCL SDK, please download it from Khronos website. - If
FindOpenCL.cmake
does not work, please setOpenCL_INCLUDE_DIRS
andOpenCL_LIBRARY
manually, as showed inCMakeList.txt
Instructions could be found here:
- Command lines to compile in Linux/MacOS
- Detailed tutorials to set up your system and compile on
- Put the kerenl files in the right directory
- CL kernel:
../../../cl_kernels/simple_fbo.cl
from the working dir. - HDR image:
../../../data/Mans_Outside_2k.hdr
from the working dir.
- CL kernel:
- Execute program
- Indicate OpenCL platform and device
- Try the program, control your camara with keyboard