Most of the code modifications occurred in the Scene class. I chose to do this since it seemed logical that different scenes be rendered using different filters and samplings. Also, the Scene class is where the rays are created, so it was a simple change in code.
The code changes had two parts. One which allowed additional samples to be calculated at different points based on the filter, and another part of the code, which calculated the weight of each sampling. I chose the Gaussian filter to implement as it seemed simple and provide okay results, although not too much better then the actual triangle filter.
The function provided in the homework assignment
A scene of random spheres and five different material types
The function provided in the homework assignment
The function provided in the homework assignment
A scene of random spheres and five different material types
Code: project8.tar.bz2
No comments:
Post a Comment