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)

bunny

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).

Screenshot_2016-05-17_22-33-46

Note: code for ray triangle intersection and triangle box overlap based on Tomas Akenine-Möller implementations, available at

http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/

Note: code for reading ply files based on implementations available at

http://paulbourke.net/dataformats/ply/

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s