Could someone help me with something that's bugging me about Chapter 7 assignment?
Even using the same recipe of the book my image is quite brighter than the one on the book (cf. attachment)!
I thought the image in the book could serve as a reference (it could be a nice extra content by the way, unless the author already uploaded reference images somewhere and I just missed them... ).
Is this supposed to happen, or is my renderer off somehow? It would be strange with all the tests green, but still...
Mind you, I'm not expecting a solution, I'll do my homework if the case: but I'd really like to know whether I'm going on a goose chase so I can move on.
Oh, and not less important: thanks Jamis for the wonderful book! I do TDD both at work and in my own project already, but seeing someone's else take on it, and doing that on image data is proving a great ride so far.
I think your image looks exactly right. (Congrats!) I've attached the render used in the book so you can compare.
The images in the print version of the book all turned out significantly darker than the digital version. (I have to admit, I'm kind of disappointed about the colors in the print version of the book.) If you ever would like me to post a reference image, just let me know!
Weird that the book images are so darker in the digital version: I expected this kind of issues only when ink and paper are involved, but it's not that important (the darker images do look good, though!).
If it's just for me, don't bother about the reference images, really: I thought it was a neat idea to complement the tests, but as far as I'm concerned I'm fine now.
Onward to chapter 8, then!
PS: looking forward to finishing your "Mazes for programmers": I had to interrupt it because it was too good and tinkering with mazes was consuming all my spare time (which is a big plus of "Ray Tracer Challenge": there are set objectives pulling you forward).
Maybe it's related to gamma correction? The renderer works in linear color space and if the output images are not corrected they will display darker and "constrasty" (on a monitor too). Same is true for "imported" colors BTW, image textures or e.g. CSS RGB values need to be converted to linear space or they won't look right in the renderer.
FYI, as a very experienced graphic designer, the reason the images in the book are darker is likely the conversion from RGB (which is mixed with light) to CYMK (which is mixed with pigments). Try opening your rendered image in an image editor and change the color space to from RGB to CMYK and see what happens.
It's a very common issue in graphic design because there is no exact color conversion from RGB to CMYK.