PDA

View Full Version : Lighting models?


sfx1999
13-01-2005, 08:02
I am not sure where to put this, but does anyone know how brush models and player models are lit in Quake 2? I tried going through the source code, and I couldn't figure it out. I know Quake 3 has information for this coded directly into the map, but not so with Quake 2.

Pierre-Marie Baty
13-01-2005, 16:27
I used Quake 2 models for my Wolf3D port. They're lit with the floor's illumination value (as long as the mesh faces face the right direction). I suppose it's the same for Quake 2...

sfx1999
16-01-2005, 17:58
I just don't know. If you look at the hud weapon, you can tell it uses a directional light along with an ambient one.

Zacker
18-01-2005, 22:04
I dunno if it can help, but in HL1 the light data comes from the nearest face which arent funced exactly below the origin of the model.

Pierre-Marie Baty
19-01-2005, 03:44
really?
I always assumed it was the supporting face (for entities having the FL_ONGROUND flag). How did you find out that?