Author Topic: Corona Colour Picker  (Read 5006 times)

2017-04-19, 10:53:08

mrpixels

  • Active Users
  • **
  • Posts: 7
    • View Profile
1.6 Candidate 7 - Max 2017...

When choosing a colour (simple diffuse colour) using the corona improved picker; a dark black value for instance 17 and pressing OK. The colour will not be the same when clicking the swatch to go back to the picker.
Values under 20 seem to be changed to 21 and anything above seems to change very randomly. Not only 'blacks' but various values change when picking a saturated colour.

2017-04-19, 11:29:06
Reply #1

Ryuu

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 654
  • Michal
    • View Profile

2017-04-19, 11:35:40
Reply #2

mrpixels

  • Active Users
  • **
  • Posts: 7
    • View Profile
This does indeed describe the problem.

However, turning OFF the corona improved picker and using the default MAX picker. the issue does not present itself.

2017-04-19, 11:50:12
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
This is because of the difference between linear and sRGB color value representation. If you hover your mouse over the "sRGB" checkbox in the Corona Color Picker, you will be able to see a good explanation of what is going on under the hood.
You will always get the same value as input if you:
-disable the sRGB checkbox
-use the RGB sliders instead of the "value" slider in the color picker
-after clicking in the swatch again, you will need to disable the sRGB checkbox again - the color values will be then always consistent

Further info is available here: https://forum.corona-renderer.com/index.php/topic,13833
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-04-19, 12:09:19
Reply #4

mrpixels

  • Active Users
  • **
  • Posts: 7
    • View Profile
1.6 Candidate 7.

Ok a test:
Set the value to 30, sets the RGB to 30, 30, 30

Uncheck the sRGB box, OK the dialogue.

Open the picker again, the value and RGB are now set to 28 and the sRGB box is checked again. Unchecking the box keeps the value at 28 and the RGB as 2, 2, 2.

If you say this is the way Max carries the colour over, then fine. It just seems a little strange to me that the colour that is set in a corona material cannot be absolute in some way.

2019-02-27, 18:39:08
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)