RayTracing/raytracing.github.io

Unable to replicate image for Book 3.9.2

Closed this issue · 2 comments

I am following the instructions from Book 3 of Ray Tracing in One Weekend (thanks for creating it!). However, I am unable to replicate the image shown in Chapter 9.2. The expected image, is shown below:
Original image with top light spray

To avoid potential issues with my own implementation I copied to new code from book 3 to book 2. The resulting image looks like this:
Image

The original image was changed in 07b339c (previously matching my result), but there was no accompanying code change, maybe the image was accidentally swapped out? Or did I overlook something?

Found the issue, in Chapter 6.3, the scattering_pdf function is changed, but due to how the chapter is structured and that the change is later on reverted, I must have missed it, sorry.

Thanks for following up!