Skip to content

brickmaker/cg_ray_tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Basic Ray-Tracer implemented with C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages