I agree with Dan, its the same as I do it. Although a script that helps would be nice!?
Announcement
Collapse
No announcement yet.
rgb values and LWF
Collapse
X
-
I get the same result without all of the extra steps :
1. Set the VRayColor to Specify, Gamma to 2.2, then input your RGB value. Just leave this in the diffuse slot, top level or not.
If you use the other method for more than one color in a session, you will have to set the Gamma back to 1.0 before putting in your next RGB value. This is because it seems that the VRayColor map is smart and will make the .4545 adjustment to all existing VRayColor maps as well as any subsequently created...which leads me to believe that it has further use than as a simple color calculator.Ben Steinert
pb2ae.com
Comment
-
I just tried this again as it definitely did not work in the past, the specify value would not return up the stack. it appears this is working in the latest release, happy days.
Maxer here is the script, I don't remember where I got it from.
fn calculate_gamma inColSpn outColSpn gammaVal = (
outColSpn.color.r = 255.0 * ((inColSpn.color.r/ 255.0) ^ gammaVal)
outColSpn.color.g = 255.0 * ((inColSpn.color.g/ 255.0) ^ gammaVal)
outColSpn.color.b = 255.0 * ((inColSpn.color.b/ 255.0) ^ gammaVal)
)
rollout gamma_corrector "Gamma Color Corrector" width:340 height:40
(
colorPicker cp1 "Pick RGB" pos:[8,8] height:24 fieldWidth:48 colorrange modal:false
spinner spn1 "Gamma" pos:[110,12] height:16 range:[0,100,2.2] fieldwidth:48
colorPicker cp2 "Corrected RGB" pos:[210,8] height:24 enabled:true fieldWidth:48 modal:false
on gamma_corrector open do
(
calculate_gamma cp1 cp2 spn1.value
)
on cp1 changed col do
(
calculate_gamma cp1 cp2 spn1.value
)
on spn1 changed val do
(
calculate_gamma cp1 cp2 spn1.value
)
on cp2 changed col do
(
calculate_gamma cp1 cp2 spn1.value
)
)
createdialog gamma_corrector
Comment
-
very interesting thread. thanks for the ideas and scripts.
best regards
themaxxerPixelschmiede GmbH
www.pixelschmiede.ch
Comment
-
Originally posted by gilpoI wrote this little app to do just what your asking:
http://www.six4one.com/index.php?opt...fileinfo&id=38
Just feed it the rgb values and it converts them to gamma 2.2.
Comment
Comment