Skip to content

Comments

[WIP] Lighting#118

Open
Strogoo wants to merge 2 commits intoFAForever:masterfrom
Strogoo:LightingTest
Open

[WIP] Lighting#118
Strogoo wants to merge 2 commits intoFAForever:masterfrom
Strogoo:LightingTest

Conversation

@Strogoo
Copy link

@Strogoo Strogoo commented May 13, 2025

This pr won't be merged in current state. As we discussed in Zulip giving that much control over sun color/position to UI may have some consequences. E.g. too many "fancy" clownlike presets shared via UI mods and then showed on streams, that may scare away new players and also upset mapmakers. So best thing we can do is make 4-5 presets (early morning, noontime, sunset, cloudy weather etc.) hardcoded in engine and then let user to switch between them.

For now all functions are available in UI, so we can find best values for presets which looks ok on common maps (like Setons, Gap etc). Ui functions:

    SetTerrainLightingMultiplier(float)  #Default value is usually 1.5-1.6
    
    SetSunColorRGB(r, g, b)
    
    SetSunPositionXYZ(x, y, z)         #Description below

изображение

Some examples on seton:

# Early morning

SetTerrainLightingMultiplier(1.8)
SetSunPositionXYZ(-80, 20, 10)
SetSunColorRGB(255, 255, 128)

123

# Sunset

SetTerrainLightingMultiplier(1.8)
SetSunPositionXYZ(60, 20, -20)
SetSunColorRGB(212, 64, 38)

изображение

@Strogoo Strogoo changed the title Lighting WIP [WIP] Lighting May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant