Repository navigation
Anomalies
There are some differences between the books downloadable images and the images that my code produces. This is to be expected as Java and C++ use different PRNGs and we expect noise details to vary a bit, however there are some differences that could be a bug this code base.
Note that the diff images in this section are calculated by DiffColor[channel] = 127+(Original[channel]-NewImage[channel)/2 This creates an image that is middle gray where there is no difference, brighter where the original is brighter and darker where the new image is brighter.
-
The first problem I noticed was that there's an unusual specular highlight in my figure 28.15(a).
This was the original image
.jpg)
This is the new image
.png)
This is the diff
_diff.png)
Notice the bright highlight in the new image on the top of the outermost yellow sphere, and the lack of a highlight on the innermost sphere, the diff image shows a dark spot and bright spot respectively.
This could be caused by an error in the Phong class, the Dielectric class, or any of their associated BRDFs or BTDFs. This needs further testing to figure out, but does not seem to be too serious which makes it low priority.
The slight color tint in the diff indicates that my Dielectric class is not producing identical results to the book's tracer, this could be due to a bug or possibly the lossy compression of the books JPEG format.
The other differences are mainly noise details that don't matter.