I’ve always loved computer graphics. It is a mind-blowing blend of history of art and pure mathematics, two worlds everybody usually consider to be apart.
So, here is my first 3D ray tracer. I coded it in plain C for didactic purposes. It uses a basic, open source graphic library developed by Epitech/42 teacher Olivier Cruzet.
Once compiled and linked, the program takes as parameter the custom scene description that is to be rendered. At the moment no GPU optimization is performed (using OpenGL API was not the purpose of this project. But if you’re interested in OpenGL 4 you can check my hydrodynamic simulator).
The ray tracer implements basic 3D objects, limited objects, custom camera view and resolution, multi colored spotlight effects, ambience light, reflection, refraction and transparency.