Ray tracing is a fascinating algorithm used for image synthesis. I have written a rudimentary ray tracer consisting of more then 5000 lines of code. The video below shows it render a high resolution triangle mesh representation of the Stanford dragon: Fast implementations depend on binary trees to reduce the number …