Raytracing exercise includes distributed ray tracing and Phong lighting:
- Distributed ray tracing
- Monte Carlo method.
- sampled reflected ray.
- sampled light.
- Phong lighting
- ambient.
- diffuse.
- specular
It contains:
- Three models
- Sphere.
- Triangle.
- Parallelogram.
- Supported output image
- ppm (The portable pixmap format.)
- CMake 2.8.12 or the newer.
- C++ compiler with c++11 supported.
For Windows users, use the MinGW to build:
mkdir build
cd build
cmake -G "MinGW Makefiles" ..
mingw32-make
For Unix users:
mkdir build
cd build
cmake ..
make
Then, run the execute along with the model.txt file at the same path.
http://en.wikipedia.org/wiki/Ray_tracing_(graphics)