Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.19 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.19 KB

CG-Ray-Tracer

A Basic Ray-Tracer implemented with C++.

Homework for Graduate Student Computer Graphics Course in ZJU.

Results

cbox

diningroom

veach_mis

room

Features

  • Monte-Carlo Path Tracing
    • Diffuse
    • Perfect & Imperfect(Glossy) Reflection
    • Reflection & Refraction
  • Spatial Accelerating
    • KD-tree
  • Direct Light Sampling
    • Rectangle Light
    • Sphere Light
  • Camera
    • Perspective Camera

System & Language & Tools

Build & Run

Open with Clion, set working directory as project root directory, build and run~

Or:

cd cg-ray-tracer
cmake CMakeList.txt
make
./cg-ray-tracer

Config including model path, spp and recursive depth can be specified in src/config.h