The Ray Tracer Challenge

Hello,

There is a nice, language-agnostic book about ray tracing called “The Ray Tracer Challenge”
https://pragprog.com/book/jbtracer/the-ray-tracer-challenge
I think it makes good case for learning a new language, so I share what I got so far in OCaml:

Hope it’s helpful to someone,
Przemek

5 Likes

Hi, thanks, this is a cool idea!
In case it is of interest to you, I recently published an old implementation of a toy raytracer here (in lib_test): https://github.com/igarnier/bih
It uses an acceleration structure called the bounding interval hierarchy, that had its moment circa ~2007 and which could be of independent interest.

2 Likes

Will check this out, thanks.