I spent part of last week writing a raytracer from scratch in C++.
Here's my account of it, including screenshots and code.