This is where I built my rasterizer and raytracer. The raytracer was modelled off of a book titled Raytracing in One Weekend (it took longer than one weekend).
I built the rasterizer from first principles in camera projection physics, with no external references (except for loading OBJ files) or libraries other than a linear algebra utility.