Skip to content

Conversation

@Jrius
Copy link
Collaborator

@Jrius Jrius commented Sep 14, 2025

As described on discord the other day. Realtime light color must be converted to sRGB, otherwise they will be much darker than in Blender and suffer from hue shift/oversaturation.

This is still not perfect. Maybe because Blender does all light calculation in linear space, whereas Plasma likely doesn't - or maybe there's still something else that I have missed. But at least it's much closer now.

Animated light color may still be slightly incorrect if the interpolation is done in the wrong color space. Not much that can be done without adding more keyframes.

Blender:
image
Plasma with fix (notice the middle row is still not as bright as it should be):
image

Test file:
LightTest.zip

Ages exported with previous versions of Korman will likely see their realtime lighting be brighter, and manual adjustment will be necessary.

@Hoikas Hoikas added the defect label Sep 14, 2025
@Hoikas
Copy link
Member

Hoikas commented Sep 14, 2025

This looks good to me. For my reference, could you make an image similar to the one labelled "Plasma with the fix" that shows the current in-game behavior so we can have a good before/after comparison?

@Jrius
Copy link
Collaborator Author

Jrius commented Sep 17, 2025

Yep, here it is.
Before.
image

After.
image

@Hoikas
Copy link
Member

Hoikas commented Sep 17, 2025

Oh, yeah, that's a huge improvement.

@Hoikas Hoikas merged commit e4886e6 into H-uru:master Sep 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants