Author Topic: Color picker not working properly  (Read 2936 times)

2017-11-20, 09:32:47

Tok_Tok

  • Active Users
  • **
  • Posts: 121
    • View Profile
Hello,

I've been struggling with this for while now and I have the feeling the problem I'm having is something basic, but I can't seem to figure out what it is. Whenever I want to pick a really dark grey color (something inbetween 0 - 21 value) the color picker always switches back to either 0 or to 21 (depending on the value). This also goes for other colors which are very slightly saturated, they flip back to completely dark or just another sat value. Which means I cannot choose some colors that I need. This also happens with unchecking the sRGB tick. Whenever I do this and click Oke, and then go back in the color picker, the checkbox is checked again.

I now solve this with a Color correction node but that is inaccurate. So what causes this?

Btw I'm using the Corona color picker.

-J

2017-11-20, 10:37:20
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13675
  • Marcin
    • View Profile
Looks like this is already answered here:
https://forum.corona-renderer.com/index.php?topic=15792.0


Quote
I'm afraid that we would have to file this under "we would really love to make this work, but we can't because of 3ds Max".

When the color picker dialog is launched, it receives the original color only as its 8-bit (0-255) representation in the linear color space, which is then converted internally to the sRGB in the Corona dialog. Since this mapping is non-linear, sRGB values below 15 are mapped to the linear value 0 and there is no way to reconstruct the original sRGB values from the limited information provided by Max.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us