This repository contains my implementation of the ray tracing techniques outlined in the book "Ray Tracing in One Weekend" by Peter Shirley. I followed the tutorial in the book to create a simple ray tracer from scratch.
Ray tracing is a rendering technique used to generate realistic images by tracing the path of light as pixels in an image plane and simulating the way it interacts with the objects in a scene.
Below is the result of following the tutorial:
To run the code:
- Clone the repository.
cd RayTracer
mkdir build
cd build
cmake ..
cmake --build .
./RayTracer > image.ppm
Please note that this ray tracer runs on the CPU, which can be slow for complex scenes. In the future, parallelization techniques or a GPU implementation could be explored to improve performance.