fps.gif (3966 bytes)
Add light to Models

transparent.gif (893 bytes)FPSNews Up

FPSNews
Up
Target a Light
Add light to Models
Sky Light
Shaders
Light Beams
Ambient Light

Light Part 3
Add Light to Models

If you have ever used a model in a map you will soon find out that many of them need more light.
So let's load up a model (right click on 2d window then misc then misc_model.
For this tutorial I used
 /models/mapobjects/spotlamp/spotlamp.md3

I used a prefab of the model that already has the clip brushes in it. Here's a direct link to the prefab file (130kb). 
Looks like this:

I know it looks dumb where it is. Hey, this is just a quick map for this tutorial.
Anyway, as you will notice when you use this model it doesn't actually cast any spot lights. So we are going to add some light entities and target them to  info_null.
First add a light entity (right click on 2d window then select light) and give it a value. I used 400.
Next position this entity in front of the beams on the model.
Now add a  info_null. Again it's right click, then info then  info_null.
Move this  info_null so it's in line with the light beam and the wall or floor.
Then unselect everything (esc key). Select one of the light entities (shift left click on the light) then select its attendant  info_null and link the two using Ctrl+K
Repeat this until you have all three done.
Should look like this.

Now in the game it will look like this.

That looks better.

You will also come across models that just need more light.
One example is the models with flames. You can add a colored light right in the model and not target so that it appears to increase the amount of light the model gives off.

Let's move onto a sky textures in Lighting part 4

 

 

Hit Counter

 

Bill Brooks © 1999
email contact: Bill Brooks