Call of Duty 4: Lighting

From COD Modding & Mapping Wiki
Revision as of 17:43, 18 October 2008 by Zeroy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Nutshell.png This tutorial will explain how to add simple lighting to a map, lighting from 'indoor' source such as LightBulb, Lamp, etc ...

Adding the Light Entity

  • In radiant, righ-click on the 2D view in Z axis and select light, as shown below, you will see a white diamond shaped entity showing up:


  • Now place the light just underneath the Lamp Shade model (in this example)

Lighting 1.png

  • Note the red circle around the Light Entity, this is the Radius of the light. The radius is one of the properties that you can control on each Light Entity. We wont review all these properties here but note the following used in my example:

Lighting 3.png

_color    : this is to colorize the light, using Red Green Blue values
classname : light of course!
def       : not covered here but covered in advanced lighting
intensity : this is the strenght of the light, quite important.
origin    : X,Y,Z location of centre of the Light Entity
radius    : Default is 200, im using 100 in the example.
  • Radiant offers a Light Preview which is good because you can get an idea as to what it will look like after compile; F8 is the key to press and Ctrl-F8 for Sun oreview as well.
Warning.png Using F8 slows down the 3D view considerably!

Lighting 2.png

  • Finally the result in game:

Lighting 4.png

--Zeroy. 00:56, 18 October 2008 (UTC)