Skip to content

changle0703/DaileleRT

Repository files navigation

INF443: 3D Computer Graphics Project

An OpenCL based Real-time Path Tracer

by Shikang DU and Mingyu ZHANG

Features

  • Real-time ray tracing
  • Progressive rendering
  • Reflection and refraction material
  • Movement of objects and interactive camara control.

Compilation

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 set OpenCL_INCLUDE_DIRS and OpenCL_LIBRARY manually, as showed in CMakeList.txt

Instructions could be found here:

Run

  • 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.
  • Execute program
  • Indicate OpenCL platform and device
  • Try the program, control your camara with keyboard

Reference

About

DaileleRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published