Page 1 of 1

[2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly

Posted: Wed Feb 05, 2025 9:36 pm
by Cyren777
I suspect the cause is that coloured lamps emit an RGB light value, and if an area is in range of multiple lamps the RGB values are added separately, and anything over 255 is clamped - for instance, (0,250,100) + (0,250,100) = (0,300,200) -> (0,255,200), which is a much bluer shade of green. An ideal fix would preserve the hues of coloured lighting regardless of how many lamps are illuminating the same area :D

I'm using coloured lamps to colour-code areas of my Aquilo base (as in FFF-432), and noticed that when multiple pink (255,140,255) lamps were in the same area, they ended up emitting white light with just the outer lit region retaining the pink colour.

Monochrome R, G, B, and C, Y, M lights don't have this issue (because they only use values of 0 and 255), and when testing by placing 12 almost-red (255,20,0) lights together, they end up emitting yellow with a red border, as I'd expect from 12*(255,20,0) = (3060,240,0) -> (255,240,0)

Re: [2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly

Posted: Thu Feb 06, 2025 12:12 pm
by Rseding91
Thanks for the report however this will not be changing.

Re: [2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly

Posted: Thu Feb 06, 2025 2:15 pm
by Cyren777
Rseding91 wrote: Thu Feb 06, 2025 12:12 pm Thanks for the report however this will not be changing.
Interesting, can I ask why? I assume it isn't intended so would it just be too much of a pain to fix? No prob if so, just curious is all

Re: [2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly

Posted: Thu Feb 06, 2025 3:55 pm
by Rseding91
As far as I understand; the rendering logic just isn't setup to handle this and trying to make it work differently would be too much complication and or reduce performance.

Re: [2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly

Posted: Thu Feb 06, 2025 4:15 pm
by Hares
Let's just assume it's too bright so you a blinded with brightness and are no longer able to distinct colors.