Doing some experimentation with QC and lights. Spike has indicated to me that some of the stuff I am looking to do means recompiling the map I am working with which is DM3.
I noticed the base type maps have alot of light_fluoro ents in addition to regular lights. The fluoro ents basicly have an origin, but other plain "light" sources include more field information than just origin. If I try to locate plain "light" using QC, for example , walking down the entire entity list - no "light" class type ents are found. We are able to locate the "light_fluoro" type lights however, and also apply new field information to them via QC, such as .effects etc.
Would the fluoro lights be considered "dynamic" lights, while the other "light" type ents be considered "static" ? I am vaguely aware of a "light" process while compiling a BSP and is this responsible for just the "static" type lights or basicly any kind of light ent? I am guessing that the "static light" is compiled as part of the BSP itself, and is why it cannot be changed. Would it be possible for an engine to re-render such a light with some code?
Finding Light ents
Re: Finding Light ents
Static lights (without lightstyles or an ambientsound) are removed on spawn. They are still part of the entity list of a compiled Q1 BSP. Engines that support real-time world light work this way by reparsing the BSP to make lights out of them.
It's Q2 and Q3 that started discarding the light entities on compiling. The aforementioned real-time world light engines can't get the light ents out of those. It's even more trouble calculating lights out of radiosity surface lights as well.
It's Q2 and Q3 that started discarding the light entities on compiling. The aforementioned real-time world light engines can't get the light ents out of those. It's even more trouble calculating lights out of radiosity surface lights as well.
i should not be here
Re: Finding Light ents
if you are using q3map2 (for q3bsp) in wolrd spawn you can add and the light entities will not be deleted
Code: Select all
_keeplights 1
hi, I am nahuel, I love quake and qc.
Re: Finding Light ents
light information is baked into the bsp as a pre-compile phase. the lighting is then completely divorced from the entities that originally generated that light.
switched lights do not change the entity that generated that light, but rather they change the style-string of that entity's lightstyle.
lights without a targetname can simply be removed inside their spawn function. many map compilers strip these lights out of the entity lump completely, as they're just wasted space.
switched lights do not change the entity that generated that light, but rather they change the style-string of that entity's lightstyle.
lights without a targetname can simply be removed inside their spawn function. many map compilers strip these lights out of the entity lump completely, as they're just wasted space.