Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: dj_buckley on 2018-06-06, 22:49:42

Title: Pink Plane Lights
Post by: dj_buckley on 2018-06-06, 22:49:42
So I'm just running some basic test with the Corona Sky compared with a just a plane light.

And I've noticed plane lights are tinted pink.

If you look at the image below the left side is Corona Sky/Portal and the right is Plane Light.

Both were set to 3% Noise Limit.

Tonemapping settings in frame buffer were the same for both setups (WB was at 6500).

The plane light was to set to Kelvin 6500.

The CoronaSky has been run through a Colour Correction Node with saturation set to -100.

The original idea behind the test was to see if I could get similar results to a plane at the window, using just the sky/portals and adjusting horizon blur/ground colour, and subsequently which would be quicker

With the two setups, I'd expect them to both be a shade of grey as they have an grey override material on.

But ... the plane lights are tinting pink even though everything is set to 6500 6500.

Why is this?  I tested it by opening them both in Photoshop and cracking saturation up to 100.

Also, although the results differ slightly, light levels are roughly the same, light falloffs etc look a bit different.  Why would the plane light be so much quicker? 3 times quicker?  And why are they pink?

I actually prefer the lighting from the Corona Sky/Portal method as it gives a nicer contrast, better falloff from light/dark and generally more definition to everything.  But does the difference really warrant a 3 fold increase in render time?  I'd rather suffer the slight drop in quality than such a huge render time increase.  I can only imagine this increases dramatically on a complex scene.

But first things first, why the magenta tint?

I should add, on numerous scenes in the past, lit with plane lights, I've found myself battling a magenta hue to renders, and always blamed my monitor or WB ....

Title: Re: Pink Plane Lights
Post by: pokoy on 2018-06-06, 23:28:23
This came up before and the official answer was that according to the CIE specification (or whatever else it was), 6500K have a slight shift towards yellow/orange (extreme saturation in PS turns it pink). Can't find the post right now, will look for it and post back here if found.

Found it, the answer is in this post by Ondra:
https://forum.corona-renderer.com/index.php?topic=15026.msg95934#msg95934 (https://forum.corona-renderer.com/index.php?topic=15026.msg95934#msg95934)
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-06-06, 23:33:18
Even so, setting the light to 6500K and the WB to 6500K should return white/grey though right as they cancel each other out?

I'm assuming the problem lies in the Plane Light as the WB is set to 6500K for both setups and the desaturated Corona Sky works fine as expected.
Title: Re: Pink Plane Lights
Post by: pokoy on 2018-06-06, 23:39:46
I guess 6500K for WB means 'no change' as in completely neutral. I guess that setting WB to 6500*(1.438/1.4388) = 6496,385... would neutralize the slight color shift in 6500K (which is  ~6503.6 K in reality). I took the formula from the Wikipedia section linked in Ondra's response.
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-06-06, 23:42:53
Although it's not neutralizing it :)

I'll comment on the other thread
Title: Re: Pink Plane Lights
Post by: pokoy on 2018-06-06, 23:45:28
What happens if you use a Color Map set to 6500K nested in a Corona Output map and desaturated as you did with the Sky map in the light's color texture slot? Same pink tone?
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-06-06, 23:55:53
Nope, you get the fully neutral grey when sampling pixels.

Corona Colour on it's own - Pink Tint

Corona Colour in Output map - Pink Tint

Corona Colour in Output map desaturated - NO Pink Tint

The change/tint is so obvious in Interactive to just by changing the Saturation in the Output Map
Title: Re: Pink Plane Lights
Post by: agentdark45 on 2018-06-07, 01:01:41
Interesting! I often find myself knocking out some red of the curves in the VFB in scenes with lots of interior lighting. I guess this explains why!
Title: Re: Pink Plane Lights
Post by: maru on 2018-07-16, 15:00:09
Well, here is my test with a plane light. :D

dj_buckley, can I have your original scene? (see uploader in my signature)
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-07-19, 09:45:47
Just uploaded it, all you need to do to see the effect, is select the plane light, then switch from Direct Input to Kelvin Value whilst in IR
Title: Re: Pink Plane Lights
Post by: maru on 2018-07-19, 16:59:31
Thanks, I'll take a look.
Title: Re: Pink Plane Lights
Post by: TomG on 2018-07-19, 20:38:29
The Saturation of 0.5 in the VFB does greatly exaggerate colors - with a lower setting, the light appears white. With that same setting, using Direct Input with a color of 255,254,255 also results in a noticeable pink (that is, even a tiny shift in color will be greatly amplified with a Saturation of 0.5 in the VFB).
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-07-19, 22:50:43
I set the sat to 0.5 on purpose to make it obvious.  When set to 0 there is still a noticeable to change when you just switch between direct input and kelvin.
Title: Re: Pink Plane Lights
Post by: agentdark45 on 2018-07-19, 23:05:50
I set the sat to 0.5 on purpose to make it obvious.  When set to 0 there is still a noticeable to change when you just switch between direct input and kelvin.

Another thing is using kelvin values for spot lights e.t.c comes out a lot "redder" than real life. For example a disk light set to 3200k in corona has a noticeable red/dirty burnt orange hue to it compared to various bulbs around my house of similar kelvin values. Not sure if it's fair to make this comparison...but I assume kelvin values in Corona lights should mimic their IRL counterparts.

So far I'm getting better results either knocking out some red in the curves VFB window or using custom RGB light temperature values.
Title: Re: Pink Plane Lights
Post by: TomG on 2018-07-20, 13:27:19
A screen grab and swap between the two with Sat 0 does show there is a difference, ty! For me the question is, "How come Kelvin is never pure white?" as there doesn't seem to be any value that gives a totally neutral color. Whether this is expected / intended, I don't know, I'll leave that for the developers :) But it does seem that there is no value that is completely neutral in color (using the inverse Color Tint seems to be the only way to neutralize that).
Title: Re: Pink Plane Lights
Post by: dj_buckley on 2018-07-20, 13:42:44
Which was my original question :)

If the all materials are white/grey completely desaturated.

Camera WB is set to 6500K

Only 1 light in the scene set to 6500K then the result should be white/grey.

And it isn't.  Why haha.

There was a post earlier up the thread about something to do with 6500 actually being slightly less, but even so, that should be the same with the WB, in which case it would cancel each other out again to return neutral
Title: Re: Pink Plane Lights
Post by: maru on 2018-07-23, 13:55:03
(Reported in our secret internal tracker id=256544854)
Title: Re: Pink Plane Lights
Post by: Aram Avetisyan on 2023-10-04, 15:23:21
Duplicate to: https://forum.corona-renderer.com/index.php?topic=15026

Explanation: https://en.wikipedia.org/wiki/Illuminant_D65#Why_6504_K.3F

Note: we still have this reported. If it is a serious problem for big number of users, we will try to elevate it.
Simple "workaround" is to use Color mode in CoronaLight and set it to 6500 using CoronaColorPicker.