Light not showing up in-game

Light not showing up in-game

Re: Light not showing up in-game Posted by omegaslayer on Wed Aug 17th 2005 at 2:25am
omegaslayer
2481 posts
Posted 2005-08-17 2:25am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Been away for a while (working as a mapper on Eternal Silence 2), and
Im running into some lighting problems. As seen in the screen shot in
hammer the light is there, and the cone is casting onto the ground
(custom texture).

(image taken at 1600x1200)

http://img203.imageshack.us/my.php?image=hammershot8rb.jpg

But in game the light isnt being cast onto the ground.

(image taken at 1240x1024)

http://img203.imageshack.us/my.php?image=subsystem300001lj.jpg

The light is there because its being cast on the gravity gun, but it fails to appear on the ground as seen in the in-game shot.

I know the texture is fine because there is a perfect circular light
spot (not the enity) on the same texture else where in the level. So
can someone tell me what im doing wrong?
Posting And You
Re: Light not showing up in-game Posted by Crono on Wed Aug 17th 2005 at 7:28am
Crono
6628 posts
Posted 2005-08-17 7:28am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Try increasing the cast distance? Or, (this is a shot in the dark) try aligning the light so the cast circle is completley on the upper level (where you're standing) and not shining down into the grate. I've noticed the HL engine(s) don't render light from one source in certain situations (if it moves you'd see the light flicker from the higher to lower surface) ... but, I don't know if that's the case here.
Blame it on Microsoft, God does.
Re: Light not showing up in-game Posted by warlord on Wed Aug 17th 2005 at 1:20pm
warlord
166 posts
Posted 2005-08-17 1:20pm
warlord
member
166 posts 247 snarkmarks Registered: Sep 11th 2003 Occupation: ill show ye Location: americas
whats with that constant parameter?

for as long as i have ever played with the lights i have never put anything in that field and all of mine have been working,

also post the compile log
the only problem with steam updating things every week is it doesent give the developers an incentive to playtest thier work, so we do it for them
Re: Light not showing up in-game Posted by omegaslayer on Wed Aug 17th 2005 at 8:42pm
omegaslayer
2481 posts
Posted 2005-08-17 8:42pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Im being really stupid here, it was the model that was blocking the
light - A simple deletion of it solved the problem (the light spot was
"inside" the models bounderies), im gonna havea talk with its creator
to se whats wrong with it. Thanks for the suggestions. And once again
im being really stupid here.

Edit: apparenly this is the case for all modles - dont place any light
entitied in the "box" that the model has, otherwise it will block the
light comming from the source.

Moderators: do what you want with this thread.
Posting And You
Re: Light not showing up in-game Posted by DrGlass on Wed Aug 17th 2005 at 10:35pm
DrGlass
1825 posts
Posted 2005-08-17 10:35pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
You can keep the model and light where they are if you just tell the model not to cast shadows.
Re: Light not showing up in-game Posted by wil5on on Thu Aug 18th 2005 at 9:31am
wil5on
1733 posts
Posted 2005-08-18 9:31am
wil5on
member
1733 posts 570 snarkmarks Registered: Dec 12th 2003 Occupation: Mapper Location: Adelaide
warlord said:
whats with that constant parameter?
DODGY GUESS:
It's a quadratic model, I = ar<sup>2</sup> + br + c where I is intensity, r is distance from light, and a,b,c are quadratic,linear,constant factors respectively. The constant factor affects what the intensity starts at.

MORE LIKELY CORRECT:
The factors still define a quadratic curve but the curve is used as the shape of the light cone. The constant would affect how far from the light the light cone begins, presumably you could have the light projected from a point a certain distance in front of the light, but I'm still just guessing.
"If you talk at all during this lesson, you have detention. Do you understand?"
  • My yr11 Economics teacher
Re: Light not showing up in-game Posted by zombie_computer on Thu Aug 18th 2005 at 10:02am
zombie_computer
28 posts
Posted 2005-08-18 10:02am
28 posts 3 snarkmarks Registered: Feb 15th 2005 Location: Netherlands
yes, for a normal light they specify how the lightintensity should decrease over the distance to the origin of the light. ehh..

<span class="mainmenu">

linear means each x units the lightintensity (LI) decreases by the same amount

quadratic means the LI decreases by some quadratic formula (most realistic)

constant means the LI stays the same untill the light hits its max. shining distance</span>
Re: Light not showing up in-game Posted by omegaslayer on Thu Aug 18th 2005 at 6:07pm
omegaslayer
2481 posts
Posted 2005-08-18 6:07pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
You can keep the model and light where they are if you just tell the model not to cast shadows.
hmmm that seems like a smart choice - ill try it. (Why didn't I think of it! :S)

edit: it woked and I achieved the effect I wanted DG solved this one =P
Posting And You