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/

 

Checkpoint 7

Tone Reproductions added!

Ward’s operator, 10 nits

perceptual_10

Ward’s operator, 100 nits

perceptual_100

Ward’s operator, 1000 nits

perceptual_1000

Reinhard’s operator, 10 nits

photo_10

Reinhard’s operator, 100 nits

photo_100

Reinhard’s operator, 1000 nits

photo_1000