Originally posted by giraffe
View Post
Announcement
Collapse
No announcement yet.
Getting an exact RGB value
Collapse
This is a sticky topic.
X
X
-
-
Ask
Originally posted by vlado View PostI 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
p What are representatives?
Comment
-
PR
Proposed
Real
Or that is how I saw it.Bobby Parker
www.bobby-parker.com
e-mail: info@bobby-parker.com
phone: 2188206812
My current hardware setup:- Ryzen 9 5900x CPU
- 128gb Vengeance RGB Pro RAM
- NVIDIA GeForce RTX 4090 X2
- ​Windows 11 Pro
Comment
-
-
Just make sure that desired base colors are more more saturated than the measured values.
Example: With an ISO of 100 R G B
Measured: 128 128 128
Desired 255 255 255
WB= 128 128 128 (Same as measured)
New ISO= 199.2188
Makes sense?
For all colors less saturated, the WB=measured Colors and leave the ISO alone; I think..., maybe not!
Comment
-
Is auto white balance in V-Ray 6 do all this job automatically?Best regards,
Jackie Teh
--
3ds Max 2023, V-Ray 7 Hotfix 1 [7.00.05 build 32872]
AMD Ryzen 9 7950X 16-Core Processor@4.50 GHz | 64GB RAM | Nvidia RTX 4090
Website: https://www.sporadicstudio.com
Email: info@sporadicstudio.com
YouTube: https://www.youtube.com/c/SporadicStudio
Comment
Comment