[2.0.32] Multiple coloured lights in close proximity combine RGB values incorrectly
Posted: Wed Feb 05, 2025 9:36 pm
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
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)

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)