.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   Lighting models? (http://forums.bots-united.com/showthread.php?t=3403)

sfx1999 13-01-2005 07:02

Lighting models?
 
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 15:27

Re: Lighting models?
 
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 16:58

Re: Lighting models?
 
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 21:04

Re: Lighting models?
 
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 02:44

Re: Lighting models?
 
really?
I always assumed it was the supporting face (for entities having the FL_ONGROUND flag). How did you find out that?


All times are GMT +2. The time now is 17:43.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.