Sign in to follow this  
Alundra

Color Picker should show color in sRGB or Linear space ?

Recommended Posts

Hi,
Color picker in an editor should show color in sRGB or Linear Space to be correct ?
The property should show the sRGB color since the rendering is in sRGB so is it correct to also show color in sRGB in the color picker ?
The color picker should output sRGB color ?
Thanks

Edited by Alundra

Share this post


Link to post
Share on other sites
If you are implementing a color picker, don't perform any conversions.
Output the raw RGB value.

The monitor will apply its own gamma curve and the artist will select colors based on the final result. This will be a value in sRGB space, which you would convert to linear for shader operations.
At the end of your render you convert back from linear to sRGB, and if nothing special was done with the color the artist chose then this will undo the conversion to linear you made and result in the same color the artist chose—the correct color.


L. Spiro

Share this post


Link to post
Share on other sites

Although I agree with L. Spiro, Blender has a toggle that allows you to switch between them (and converts the numbers being displayed); which is very convenient for us programmers when we need a value in linear space (such as for example the clear colour to pass to glClearColor).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this