Jump to content
  • Advertisement
Sign in to follow this  
Alundra

Color Picker should show color in sRGB or Linear space ?

This topic is 567 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!