Advancement assignment 1: Kdtree and Stanford bunny.
First advancement assignment was implemented on the ray tracer. When using the complete bunny model some errors show up, but still here are the results.
Time to build tree: 3.394 secs
Time to render scene: 491.510 secs
Time to render without Kdtree: over 1 hour (gave up after 1hr)
Above is the picture with the whole model. Some spots show no triangles, not really sure why. However, simpler models work just fine. Check below the same model but with half the triangles (file bunny_res2).
Note: code for ray triangle intersection and triangle box overlap based on Tomas Akenine-Möller implementations, available at
Note: code for reading ply files based on implementations available at