Raytracer

Description

For whatever reason, ray tracers have always fascinated me... I think it was probably due to the awful art on my gradeschool Trapper Keeper:

trapperkeeper

In any case, I decided to code a simple one on my own to better understand how they work. It was a fun project and caused me to revisit my 'prim' library which deals with primitives like vectors, quaternions, etc. Dealing with 3D rays and intersections is also a good math refresher and cleared out a good amount of cobwebs.

My naive implementation could definitely be sped up, but even in its current form it ran slower than I was hoping. In the future I may try to offload some of the calculation to the GPU, but for now I am just fine with 1 FPS ;)

Downloads

source: here

Screenshots