Tutorial: Dark Outdoor Maps Last edited 1 year ago2022-09-01 11:20:01 UTC

Download attachment

Dark/Night Outdoor Maps

Not all of the maps in the original HL were daylight bright, but most of the outdoor maps were. Counter-Strike has enabled the player to use "Nightvision goggles" for the first time, and there is no point in running around with them on, in full daylight. Here we will try to cover the easiest method of adding darkness to your level.

Here we will try to cover the easiest method of adding darkness to your map. With your outdoor area open in Hammer go to the tool bar and select Map and then Map properties... you should be presented with the Worldspawn Object Properties box below.
WorldSpawn PropertiesWorldSpawn Properties
Change the environment map (cl_skyname) to a suitable night type sky. The darker defaults in HL are: You could use a day time sky texture, but it will look really odd, because the texture is not actually lit by the light_environment. It will be bright and visible regardless of the settings you change.

Changing the Default Light Level in the Worldspawn does not seem to do anything regardless of the figure entered.


Add a light_environment or a light_spot with FLAG Is Sky checked to your map. If you compile your map now, you will get something that looks like this:
Doesn't look like night time :(Doesn't look like night time :(
This is because the light environment has a default brightness of 200, which is too high for a dark map. Open the properties for the light_environment and adjust the 4th number in the sequence to a lower figure. The example map is set to 2. If you change it to 0 it won't go black, it will actually appear like a medium lit map. The other three numbers in the sequence are Red, Green, Blue identifiers. Using the Pick Color option will change these figures, but will not change the 4th number.
Set it lower...Set it lower...
You can change the Pick Color option to add atmosphere but you will notice that the actual brightness of the map is not effected by the Luminosity of the colour chosen. Changing the colour to a deep blue or red will give the map some more feel, if it is a bit lighter than the example map.
....and you can see nothing!....and you can see nothing!
Great, Now we have a dark outdoor map just waiting for some action. I added a small texture light just to give the map some perspective, and something to look at.
Now you can see an exciting corner!Now you can see an exciting corner!
If you have the SKY texture in other areas of your map, they will appear the same as this area. You only need one light_environment in a single map regardless of where the sky textures are, however if you are using modern compile tools then you can make use of the -noskyfix line for your RAD compile to make use of multiple light_environments. You have the option of adding -ambient to your hlrad compile. Figures like: -ambient 0.0040 0.0040 0.0040 will add a small amount of ambient light to your shadows. The figures are very sensitive, so tweak them until they are suitable for your needs.

There is a lot more you can do with the light_environment and skies, but this is just a really basic starter tutorial. For more information on environments check out Atom's tutorial, Environment.


Commented 12 years ago2011-06-23 16:13:20 UTC Comment #100567
This is a very simple and good tutorial.
Commented 11 years ago2013-03-30 01:17:58 UTC Comment #100568
Good stuff, good stuff.

You must log in to post a comment. You can login or register a new account.