You can't change the lighting directly, but you can change the fog, auto-exposure and color correction to simulate different lighting conditions.

I did some testing on my campaign a long time ago, and could get some fairly passable results with relatively little effort.
http://steamcommunity.com/sharedfiles/filedetails/?id=154379594
http://steamcommunity.com/sharedfiles/filedetails/?id=154379583


The skybox is likely changed with a cvar, I'm not sure if there is any way to change it from within a map. There is an other option for this as well; you can fade out the skybox into fog the same way it's done during the storms in Hard Rain. I'd suggest decompiling the map and looking how Valve did it.


Alexis H skrev 2013-06-21 14:46:
Hello everyone,

I need advice and help.
I'm currently working on a campaign set in a snowy country. I'd like to
include some dynamic weather. Basically, this means that one runthrough,
map will have a certain type of weather and the other runthrough it will
have another type of weather.

For example, map 1: this one takes place in the afternoon. One scenario
would be that it's slightly cloudy with still some sun. The other scenario
has it more cloudy with some snowfall and a slightly thicker fog. It would
also be a little darker, but since it has to keep it's afternoon-feeling,
it must not be too dark.

Map 2 takes place at dusk. One scenario is cloudy with no snow. The other
scenario is more menacingly cloudy, snowfall, thicker fog and slightly
darker than scenario 1 but here again: the dusk feeling must be preserved
so it has to be dark enough, but not too dark (it's dusk, not night)

I know how to handle the fog and precipitation changes with a logic_case
entity. That's a non-issue. But if you have a look at the Weather Control
Plugin ( http://forums.alliedmods.net/showthread.php?t=184890 ) apparently
they managed to change the skybox and global lighting too... how the hell
did they do that?

Anyone has an idea?

-Alex
_______________________________________________
L4Dmapper mailing list
L4Dmapper@list.valvesoftware.com
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/l4dmapper


_______________________________________________
L4Dmapper mailing list
L4Dmapper@list.valvesoftware.com
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/l4dmapper

Reply via email to