This is a basic raytracer built in C++. Built by following the tutorial by Peter Shirley in his book “Ray Tracing in One Weekend”.
Render time for that image: ~1 hour
Building the project
-
Make sure you have the following installed:
- gcc/g++
-
Building the project:
g++ -Wall -std=c++20 ./main.cpp
- Running the project:
./a > output.ppm
- View ppm on: https://www.cs.rhodes.edu/welshc/COMP141_F16/ppmReader.html or if you have gnome then
loupe output.ppm