Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: Jpjapers on 2023-03-03, 13:17:28

Title: Corona Picker values changing, resetting and showing wrong preview
Post by: Jpjapers on 2023-03-03, 13:17:28
Im not sure if its been fixed in a newer version but whenever i try and type any values into the 0-100 rgb sliders in the corona picker, it just resets back to either 0.0 or 0.1.
If i drag the sider to the desired value and edit it to remove trailing decimals, the same thing happens.
If i try to drag the spinners, the values jump around wildly and always reset to 0 as soon as i let go.

This only happens with the Linear 0-100 sliders and no others.

Any ideas why this is happening?

Max 2022 and Corona 8
Unable to update currently as im mid-project.

EDIT: Also noticing that during interactive, if i am playing with the rgb sliders, sometimes IR doesnt update until the number reaches a certain threshold. For instance if i want to add 5 into the red slider when its at zero. If i type 5 and press enter it stays. But if i click ok, then reopen the colour swatch its back at zero.
Title: Re: Linear Colour sliders keep resetting
Post by: Aram Avetisyan on 2023-03-03, 19:31:02
Hi,

I have just tried doing what you are describing and everything works as expected.
Using Corona 9 HF 1 and 3ds Max 2022.

Hopefully you can soon upgrade to the latest version and see if you are still experiencing the same issue(s).

Another idea: what decimal and grouping symbols you have set in Regional settings?
There was a known and already fixed bug when users were now able to enter values after decimal point, I thought it may be related.▬
Title: Re: Linear Colour sliders keep resetting
Post by: romullus on 2023-03-03, 19:51:23
Are you talking about 0-100%, or 0-1 range? Corona color picker does not allow more than one digit after decimal point in 0-100% range.
Title: Re: Linear Colour sliders keep resetting
Post by: Jpjapers on 2023-03-06, 17:36:31
Hi,

I have just tried doing what you are describing and everything works as expected.
Using Corona 9 HF 1 and 3ds Max 2022.

Hopefully you can soon upgrade to the latest version and see if you are still experiencing the same issue(s).

Another idea: what decimal and grouping symbols you have set in Regional settings?
There was a known and already fixed bug when users were now able to enter values after decimal point, I thought it may be related.▬

I was only trying to enter whole numbers so there was no decimal places in my attempt. Ive attached a short video showing the issue but as you say hopefully its not an issue in newer versions.
In the video i am trying to enter a value of 13 into the Red,green and blue channels but as soon as i click away or press enter to accept the value it moves back to 0.0 or 0.1 on its own.
Title: Re: Linear Colour sliders keep resetting
Post by: Aram Avetisyan on 2023-03-06, 21:17:19
Just tried exactly what you do in the video, everything words fine in Corona 9.

Hopefully you can upgrade to it soon.
Title: Re: Linear Colour sliders keep resetting
Post by: Jpjapers on 2023-03-07, 18:58:26
So ive jumped on to corona 9 as i ran out of ideas how to achieve what i needed to and it all seems to be fine with the linear sliders.
Title: Re: Linear Colour sliders keep resetting
Post by: Jpjapers on 2023-03-08, 12:34:40
Theres still weird stuff happening in V9.

1. If i enter values in the R,G,B Fields they change themselves once i leave the picker.

19,39,39 changes to 21,39,39
16,27,29 changes to 21,28,28

2. The colours shown in the node preview window are not accurate to the values that have been entered. If you picker the preview window with the corona picker, the displayed colours RGB values are out by one or two points. This is also proven by taking a screenshot of the colour and checking the RGB values in MS Paint.

3. Even when you do change the values, the preview doesnt always update to reflect them.

I can load in an image from photoshop with the values i want, picker the image preview with the corona picker and the picker will change the values.

Videos attached.

Title: Re: Linear Colour sliders keep resetting
Post by: Aram Avetisyan on 2023-03-08, 19:03:55
Theres still weird stuff happening in V9.

1. If i enter values in the R,G,B Fields they change themselves once i leave the picker.

19,39,39 changes to 21,39,39
16,27,29 changes to 21,28,28

2. The colours shown in the node preview window are not accurate to the values that have been entered. If you picker the preview window with the corona picker, the displayed colours RGB values are out by one or two points. This is also proven by taking a screenshot of the colour and checking the RGB values in MS Paint.

3. Even when you do change the values, the preview doesnt always update to reflect them.

I can load in an image from photoshop with the values i want, picker the image preview with the corona picker and the picker will change the values.

Videos attached.

This is reported now, thank you.

(Internal ID=1072813787)
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Aram Avetisyan on 2023-03-14, 15:22:06
Apparently this is related to a known limitation coming from 3ds Max, which unfortunately Corona has no control over:
https://forum.corona-renderer.com/index.php?topic=14123.0
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Jpjapers on 2023-03-15, 15:00:56
Apparently this is related to a known limitation coming from 3ds Max, which unfortunately Corona has no control over:
https://forum.corona-renderer.com/index.php?topic=14123.0

If i was to report this directly to the Max developers, any idea what i should cite as the potential issue and solution?
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: maru on 2023-03-15, 16:13:16
As far as I understand the root cause is that 3ds Max is not color managed, so we are converting between RGB with gamma 2.2 (or sRGB?) and linear. Linear has many "dark" values, but 2.2/sRGB doesn't. So if you pick a value close to the dark end of the gradient, then this cannot be converted and is instead crushed into pure black (or a slightly different value).

Image for visualization of the problem: https://www.mathworks.com/help/examples/images/win64/PlotTheGammaCurveOfSRGBAndAdobeRGBExample_02.png

If you were to report this to Autodesk, then I think the feature request would be "Make 3ds Max color-managed".
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Jpjapers on 2023-03-15, 16:17:01
As far as I understand the root cause is that 3ds Max is not color managed, so we are converting between RGB with gamma 2.2 (or sRGB?) and linear. Linear has many "dark" values, but 2.2/sRGB doesn't. So if you pick a value close to the dark end of the gradient, then this cannot be converted and is instead crushed into pure black (or a slightly different value).

Image for visualization of the problem: https://www.mathworks.com/help/examples/images/win64/PlotTheGammaCurveOfSRGBAndAdobeRGBExample_02.png

If you were to report this to Autodesk, then I think the feature request would be "Make 3ds Max color-managed".

That picture genuinely is the best way ive ever seen the differences in spaces illustrated and now it makes sense why this happens. Thanks Maru.
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Juraj on 2023-03-15, 16:59:44
Getting precise sub <50 RGB values is indeed hassle, it's funny that it is hardcoded so that it doesn't matter what kind of conversion is displayed on top by Corona.
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Jpjapers on 2023-03-15, 17:19:47
Getting precise sub <50 RGB values is indeed hassle, it's funny that it is hardcoded so that it doesn't matter what kind of conversion is displayed on top by Corona.

Thankfully im seeing that in the current max beta,colour management is a thing. So hopefully in a few versions time we might see it in corona.
https://makeanything.autodesk.com/3dsmax/public-roadmap--dynamic-2597-6483XN.html#rendering-future
Title: Re: Corona Picker values changing, resetting and showing wrong preview
Post by: Juraj on 2023-03-15, 20:58:05
I've heard a rumor too ;- )