Call of Duty 4: Lighting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 26: | Line 26: | ||
_color: this is to colorize the light, using Red Green Blue values | _color : this is to colorize the light, using Red Green Blue values | ||
classname: light of course! | classname : light of course! | ||
def: not covered here but covered in [[Call of Duty 4: Advanced Lighting|advanced lighting] | def : not covered here but covered in [[Call of Duty 4: Advanced Lighting|advanced lighting] | ||
intensity: this is the strenght of the light, quite important. | intensity : this is the strenght of the light, quite important. | ||
origin: X,Y,Z location of centre of the Light Entity | origin : X,Y,Z location of centre of the Light Entity | ||
radius: Default is 200, im using 100 in the example. | 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. | *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. |
Revision as of 03:58, 18 October 2008
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)
- 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:
_color : this is to colorize the light, using Red Green Blue values classname : light of course! def : not covered here but covered in [[Call of Duty 4: Advanced Lighting|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.
Using F8 slows down the 3D view considerably!
- Finally the result in game:
--Zeroy. 00:56, 18 October 2008 (UTC)