My very first ray tracer implementation.
My implementation of Peter Shirley's Ray Tracing in one weekend.
This code follows the steps of Peter Shirley's mini book series.
Cmake support
Multithreaded implementation with OpenMP
Supported output formats: PNG with STB image library and PPM
SDL2 for real-time display support + keyboard movement support
CUDA support
Open Image Denoise support
Implementation of all features included in Peter Shirley's Ray Tracing In One Weekend
Implementation of the following features included in Peter Shirley's Ray Tracing: The Next Week
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The basic requirements for building the executable are:
Other requirements:
sudo apt-get install build-essentials cmake
sudo apt-get install libsdl2-dev
This program have been tested on Ubuntu 16.04 but should work under any systems that fulfills the aforementioned requirements.
If you succesfully cloned the source files and you are currently in the project directory, you can generate the Makefile using the following command:
mkdir build
cd build/
cmake ..
Now you can build the binary by running:
make
Now, you should see the executable in the build folder. Examples for the final images are:
Some screenshots along the way of developing: