0
$\begingroup$

I am trying to derive the material reflectance values from a color picker tool(say MS Paint). My understanding is to first gamma decode(raise to the power of 2.2) the RGB values from the color picker, so to bring it back to linear space, and then use it in Radiance mat definition.

However in the “Rendering with Radiance” book by Greg Ward section 5.1.4 "Estimating Surface Color"

page 294 and page 295, the rgb values from the color picker are raised to the power of inverse of gamma (1/2.2) and then used as in the material definition.

Here is a cropped snapshot of the formula from the above links to the scan copied of the two pages.

enter image description here

My question is, should the sRGB values from the color picker not be raised to the power of 2.2(decoding) rather than 1/2.2(encoding)?

For example for BS4800 “18-B-25 Dark admiralty grey / Merlin” colour sample, this webpage shows sRGB=104,112,116 and LRV value as approx. 16%. This matches closely to my understanding of (112/256) ^ 2.2 = 0.16 (just for the green component).

enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

Yes, I think you're right. The values from a typical color picker would be in a gamma encoding or sRGB encoding and would need to be converted to linear to use as reflectance. This is probably just a mistake in the book.

(BTW, in case you're not aware, sRGB isn't actually gamma 2.2 but a more complicated transfer function.)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.