Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => Topic started by: 3dwannab on 2016-11-30, 16:15:23

Title: Corona Colour Picker resets to 0,0,0 on exit or val above 0,0,15 but not between
Post by: 3dwannab on 2016-11-30, 16:15:23
I'm trying to pick say 0,0,3 on sRGB and the values don't stick.

Selecting other combinations below also don't work.


Only when I pick a value above sRGB 0,0,15 + it works but jumps to 0,0,21 on re-open of the pallette.


Hue or saturation don't seem to affect this.


Also percent is affected and value 0-1.
Title: Re: Corona Colour Picker resets to 0,0,0 on exit or val above 0,0,15 but not between
Post by: Ryuu on 2016-12-07, 18:00:12
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.