Trying to learn ray tracing in one weekend.
I hope you know how to do the obvious -
$ git clone https://github.com/Suvansarkar/raytracer
$ cd raytracer
Next generate make files using cmake
$ mkdir build
$ cmake -B build
Now build the project
$ cmake --build build
Run the project
$ ./build/raytracer > output.ppm
Note: This ray tracer only outputs to ppm format. You can use
convert
command to convert it to other formats.
$ convert output.ppm output.png
Add your own shapes to the main.cc file along with their materials. More shapes and materials are to be added later.
- Add a plane shape
- Add a cube shape
- Add dielectric materials (glass, water, etc)
- Add light sources using Phong Lighting model