Skip to content

yxia0/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#
# Ray Tracer 
#


To compile the code:

cd path/to/RayTracer
mkdir build
cd build
cmake ..
make


This compiles both the raytracer and the example programs, executables of which can be found in build/ folder.

To run the examples, do:

1. for the json parsing example:

./jsonexample ../examples/example.json

2. for the vector library example:

./vectorexample

3. for the raytracer provided:

./raytracer ../examples/ex_sphere.json <path_to_output_img>/testout.ppm

About

Custom Ray Tracer for Computer Graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published