Writing another pathtracer in C.
- Download the devel-mingw version of SDL3
- Extract the
SDL3folder containing headers to the include folder - Create a
/bindirectory (in the main directory) and extractSDL3.dllinto it - Create a
/libdirectory (also in the main directory) and extractlibSDL3.dll.ainto it - Download the latest release of chelp and extract
libchelp.ainto the/libdirectory (the headers for chelp are already included in this repo) - Run
make,pathtracer.exeshould be generated in the/binfolder
Chapter 1
In this section, I created a camera and generated rays for each pixel (ray directions represented as colors).
Chapter 3
In this section, I upscaled the render output, flipped the vertical axis right-side-up, and implemented configurable subpixel rays for antialiasing.
Chapter 5
In this section, I refactored the intersection tests and material properties into separate classes. Shapes and materials ought to be more extendable.
Chapter 6
Successful render of multiple spheres, though light does not appear to be behaving as expected.
Chapter 7
Fixed some mistaken math and made rays sort objects better. Now it is kind of rendering, though I believe the green sphere should not be that flat.
Chapter 8
Fixed sphere normals and some vec3 random functions. Now things are rendering more correctly.





