Repo containing many mini projects for very simple rendering with cpp
To run any of the projects, you need to download SDL and put the .dll
and .lib
files into a lib
folder in the root and all the include files into the inc
folder
This project's aim is to create and render 3d scenes made of spheres using raytracing
This program is the draft for other projects, as it contains all the boilerplate
This program creates a window drawing a emissionColor palette pixel by pixel
On the top side it's just a linear RGB palette. On the bottom side it's a gamma adjusted sRGB palette
This program creates a window drawing a Cornell box with ray tracing and simple spheres logic
This is an extension of the previous program, this time each pixel bounces till it finds a light source. This render has 128 rays per pixel
This is an extension of the previous program, this time the ball also reflects what's arount it
Starting from Raytracing 2 this applies a post process antialiasing matching near pixels. The window is 4 times bigger (2 * Width, 2 * Height) the process is way faster and produces a cleaner image
The ray tracing also supports textures, which can emit and diffuse their colors