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

Things that we don't consider worth fixing at this moment.
Cyren777
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Feb 05, 2025 9:07 pm
Contact:

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

Post 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)
Attachments
One red light, (255,20,0)
One red light, (255,20,0)
image_2025-02-05_213255269.png (3.11 MiB) Viewed 402 times
12 red lights, (255,240,0)
12 red lights, (255,240,0)
image_2025-02-05_213046887.png (3.45 MiB) Viewed 402 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15707
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report however this will not be changing.
If you want to get ahold of me I'm almost always on Discord.
Cyren777
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Feb 05, 2025 9:07 pm
Contact:

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

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 15707
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 848
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

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

Post by Hares »

Let's just assume it's too bright so you a blinded with brightness and are no longer able to distinct colors.
Fulgora is the best planet. Vulcanus needs rework. Feel free to prove me wrong.
Post Reply

Return to “Won't fix.”