Skip to content

jinjinhe2001/RayTracer

Repository files navigation

RayTracing-in-OneWeekend

This repo is my implementation of RayTracing in One Weekend book.
final

Platform


  • macOS, Linux, windows

Dependency


  • g++ std=c++11

How to run


  • you can simply build with build.sh
./build.sh
  • and you can get the result image image.ppm

Feature


A simple raytracer from scratch, starting from a output of a pure color image, I built a simple vector computation library, defined classes for ray, hittable objects, materials(lambertian, dielectric, metal), etc.

Result


  • red sphere
    a red sphere
  • normal-color sphere
    normal color sphere
  • after sampled
    sampled normal sphere
  • diffuse sphere
    diffuse sphere gamma diffuse
  • metal sphere
    metal sphere
    fuzzier
    metal fuzz
  • dielecticShperes
    dielectic
  • depth of field
    DOF zoom in
  • final
    final

About

Implementation of RayTracing in One Weekend series

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors