Mark Christensen van Langeveld

 

Program Assignment Three

CS6620 Spring 2006

 

Output Images:

 

 

 

 

 

My design choices were simple. I’m still choosing to have a one-file program to make it easier for me to understand and to make it easier to transport between different systems. I followed the structure/architecture suggested in the notes. I choose two places to optimize the code. First, I used the box intersection code to check the bounding box for the height field (hf) and second, within the hf intersection I checked if the discriminate was zero before marching on. For numerical precision, I chose to only consider intersections were t > than .00001, it seemed to give the best results for the hf. My creative image is an abstract image that includes Winter Olympic symbols. This project took me over 50 hours, which was long, but again, I am learning more than just the ray tracing concepts. I am learning to code in c++ using all of the benefits of the language. So far the three projects have helped me to learn more than most classes in general. I am presently working on a geo hf for extra credit, if I get it finished before midnight it will be here:

 

                                                                            

Here is my code.

Here is my actual output ppm image.