Adding Light

From Valve Developer Community
Revision as of 18:27, 16 December 2006 by Giles (talk | contribs) (See also: Linked Advanced Lighting)
Jump to: navigation, search

Now we’ll add some lighting to the room. If no lights are placed, the map will automatically be evenly lit when it is loaded in the game, but setting the lighting will look more realistic.

Pick the light entity from the entity list.

Lights are entities too.

Pick the light entity from the entity drop-down list in the Object Toolbar.

This is the most basic lighting entity.

Place the light entity in the center area of the ceiling by clicking there in the 3D view.

Place the light.
Double-click an object in the 3D View to open the Object Properties dialog.

We are now going to edit the characteristics of this light.

Switch back to the Selection Tool, and then double-click on the light entity in the 3D View to open the Object Properties dialog containing its properties.

Select the Brightness field, then click the Pick color button.
  1. To bring up the setting for the Brightness property of the light, click on the Brightness field in this dialog.
  2. To open up the dialog for picking a color, click the Pick color button just beneath the settings values.



Change the hue and luminance of the light, then click OK.

The Color dialog will now appear, letting us change the color of the light:

  1. Change the hue color by clicking on the desired color in the large color spectrum area to the right.
  2. Because the luminance is set to max, the color will still be white, so we'll need to lower the luminance to change the color from bright white to the hue value you picked. You can see how the color changes in the preview square at the bottom of the dialog to something more colorful, instead of white.
  3. Then Click the OK button to confirm your color choice.
Raise the brightness of the light by increasing this number, then click Apply.

We have now set the color of the light, described by the first three numbers in the Brightness setting, so what's left is to increase its intensity—how bright it will shine. This is altered manually, through changing the fourth value in the setting.

  1. Mark this number (saying 200) with the mouse, and enter 800 instead, to have the light shine four times as intense.
  2. Also if you wish to add an HDR value toward the light copy the Brightness field and paste it at the HDR Brightness field.
  3. Now that we’ve made changes to the parameters, we need to apply them to the light entity. Hit the Apply button to commit the changes.

The color of the bulb will change to the color you have selected for it.

We are done with these properties now, so close the property dialog by clicking the closing button in the upper right corner.

See also

Types of light entities: