.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
Lighting models?
Old
  (#1)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Lighting models? - 13-01-2005

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.


sfx1999.postcount++
  
Reply With Quote
Re: Lighting models?
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Lighting models? - 13-01-2005

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...



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Lighting models?
Old
  (#3)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Lighting models? - 16-01-2005

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.


sfx1999.postcount++
  
Reply With Quote
Re: Lighting models?
Old
  (#4)
Zacker
Project Leader, Lead Level Designer, Waypointer
 
Status: Offline
Posts: 337
Join Date: Mar 2004
Location: Denmark
Default Re: Lighting models? - 18-01-2005

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.
  
Reply With Quote
Re: Lighting models?
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Lighting models? - 19-01-2005

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com