Advancement Assignment 1

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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s