I had to deal with this recently, so I thought it may be useful.
The problem:
We want to obtain an exact RGB value for some (small) surface in our image. Let's say the RGB value is xr, xg, xb which range from 0 to 255.
The solution:
1) Render the scene in any way you want with any settings you want, but make sure you use Linear color mapping with 1.0 for both Bright and Dark multipliers and the "Clamp output" option is off, and you are using the V-Ray camera "Exposure" setting. It would also be handy if you render to the V-Ray VFB.
2) Measure the RGB value at the pixel you need to match. If the values are, let's say (pr, pg, pb) again from 0 to 255, adjust the V-Ray camera "White balance" to be (pr*255/xr, pg*255/xg, pb*255/xb) and multiply the camera ISO setting by (xr+xg+xb)/(pr+pg+pb).
Note that this works only for Linear color mapping. In principle it can be done for any color mapping, but the numbers are hard to find by hand.
Best regards,
Vlado
The problem:
We want to obtain an exact RGB value for some (small) surface in our image. Let's say the RGB value is xr, xg, xb which range from 0 to 255.
The solution:
1) Render the scene in any way you want with any settings you want, but make sure you use Linear color mapping with 1.0 for both Bright and Dark multipliers and the "Clamp output" option is off, and you are using the V-Ray camera "Exposure" setting. It would also be handy if you render to the V-Ray VFB.
2) Measure the RGB value at the pixel you need to match. If the values are, let's say (pr, pg, pb) again from 0 to 255, adjust the V-Ray camera "White balance" to be (pr*255/xr, pg*255/xg, pb*255/xb) and multiply the camera ISO setting by (xr+xg+xb)/(pr+pg+pb).
Note that this works only for Linear color mapping. In principle it can be done for any color mapping, but the numbers are hard to find by hand.
Best regards,
Vlado
Comment