Simple Ray Tracer

Simple Ray Tracer was developed to understand ray tracing. Two header files, and a main file were developed. Ray tracing calculations have been learnt from the internet tutorials. The program, and its source code were developed on my own.

Simple Ray Tracer contains only spheres shaped objects. The user can use example scene or write his/her own scene into the text file. Number of objects, their position, and radii, colors, transparency etc. are written into the file. The program reads, and constructs the scene respect to these values. After calculations are done, output image are saved into a .ppm file.

Vec3.h file contains vector class declaration, its basic operations, and operator overloading. Sphere.h file contains sphere class declaration, and its basic operations. Main.cpp controls both program flow, and ray tracing calculations.

Screenshot:

Simple Ray Tracing