I've spent about five hours on my raytracer and I must say, it's been a blast. It's the most fun you can have while programming. Seriously, if you're not writing a raytracer at this very moment, please stop whatever you're doing and start writing one right now.
So far I've been writing doing most of the invisible stuff, like world and camera setup, ray collision detection and so on, but I have already some pictures. I did some kind of mistake and I couldn't figure what. The pictures should have a couple spheres on them, but it looks more like stripes and chaos. However if I wanted, I wouldn't be probably able to create such nice pictures :)



Finally I found out where the bug was, I forgot to normalize the vector giving the direction of the casted ray. Since I was counting with the length of the vector being one in the ray collision detection code, the results have been quite strange. After fixing the results finally looks like spheres. There is no occlusion code yet, but I have naive lighting finished.

The next step is to write exporter for Blender, write a parser and render some my of my models.




