A basic Ray tracer made from Peter Shirley's Ray tracing in one weekend series
In order to compile the project, C++17 or greater must be installed, along with the GNU compiler
Clone the project
git clone https://github.com/ahmadadil950/RayTracer.gitGo to the project directory
cd rayRun program using GNU compiler
g++ ray.cpp -o ray -fopenacc -O3 -fopt-info-optimized-omp -march=nativeFinally in order to render the image, output the file stream to a ppm image format
./ray > "filename".ppmThen to view image, use online ppm file viewer https://www.cs.rhodes.edu/welshc/COMP141_F16/ppmReader.html
On the release tab download the ray binary
Once downloaded, move binary to a folder location of your choice and open the command line of your choice within that location
Within the command line run
./ray > "filname.ppm" to convert the file to a ppm image
The image should be rendered in the location where the binary is located and to view it you can use https://www.cs.rhodes.edu/welshc/COMP141_F16/ppmReader.html