Problems encountered

Problems encountered:

This section will go through some of the problems encountered during the implementation of anti-aliasing. How it was implemented can be read about under "Implementation and how it works".

Bad shadows:

This was caused by using the wrong index within a nested for-loop for an array that was holding the color-values.

Aliasing in the shadow:

Click the images for better resolution
When first implementing the anti-aliasing, illumination was not taken into consideration. Every extra ray sent was just picking up what color it hit, not position or distance. This caused the illumination model to not function properly as it needed information such as distance and intersection-coordinates to function. To fix this problem all intersection data was collected from every extra ray that was sent.