Skip to content

laurelkeys/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-tracer

An implementation of Peter Shirley's Ray Tracing in One Weekend book series:

Check out many 200 x 100 rendered images here (inside the i/ folder). These images with few objects take less than a second to render (even with 100 samples per pixel).

Below are some 1200 x 800 images with 10 samples per pixel, which take over a minute to render:
























(more at i/large/).

obs.: If you have ImageMagick installed, you can convert the generated .ppm file to .png with:

$ g++ -o main main.cc && .\main > [file_name].ppm && magick convert [file_name].ppm [file_name].png.

Or simply run $ python render.py [file_name] -O (add --watch to see the rendering progress).

About

A simple recursive ray tracer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published