lighting problems

lighting problems

Re: lighting problems Posted by GoD on Fri Dec 19th 2003 at 5:55pm
GoD
4 posts
Posted 2003-12-19 5:55pm
GoD
member
4 posts 10 snarkmarks Registered: Sep 1st 2003 Location: Winnipeg, Manitoba, Canada
Some images in this post have been automatically down-sized, click on them to view the full sized versions:

hey guys i have one Q about some lighting problem that i have been having in my map. i make a light (brush) and use texture lighting (it looks great) but there is one problem, on the ceiling it makes a buncha crappy lighting things, see picture.

User posted image
Re: lighting problems Posted by Dr Brasso on Fri Dec 19th 2003 at 6:02pm
Dr Brasso
1878 posts
Posted 2003-12-19 6:02pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
try recessing it into the actual ceiling....if you wish to use texture lighting only in this instanc....

my 2 cents....

Doc Brass... :dodgy:
Re: lighting problems Posted by fishy on Fri Dec 19th 2003 at 6:02pm
fishy
2623 posts
Posted 2003-12-19 6:02pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
it looks like a classic case of face splitting. turn the light fitting into a func_wall, and that should stop it from happening.
Re: lighting problems Posted by Dr Brasso on Fri Dec 19th 2003 at 6:05pm
Dr Brasso
1878 posts
Posted 2003-12-19 6:05pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
thatd work as well, prolly up yer r's a bit tho....

Doc B... :dodgy:
Re: lighting problems Posted by Tracer Bullet on Fri Dec 19th 2003 at 7:22pm
Tracer Bullet
2271 posts
Posted 2003-12-19 7:22pm
2271 posts 445 snarkmarks Registered: May 22nd 2003 Occupation: Graduate Student (Ph.D) Location: Seattle WA, USA
Why would it up your r's to stop face splitting?

another option is to place your lights one unit away from the ceiling.
Re: lighting problems Posted by KungFuSquirrel on Fri Dec 19th 2003 at 8:47pm
KungFuSquirrel
751 posts
Posted 2003-12-19 8:47pm
751 posts 393 snarkmarks Registered: Aug 22nd 2001 Occupation: Game Design, LightBox Interactive Location: Austin TX
thatd work as well, prolly up yer r's a bit tho....

Doc B... :dodgy:
No it won't. The lighting artifacts come from additional faces being created by intersecting world brushes. making the lights into entities will prevent said face splitting and allow the ceiling to split normally in far fewer (or at least a few fewer) polys than before.
Re: lighting problems Posted by Dr Brasso on Fri Dec 19th 2003 at 9:34pm
Dr Brasso
1878 posts
Posted 2003-12-19 9:34pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
i understand what happens....agreed about the face splitting.... and, youd know better than me.....just seems that about every time i use a func_wall to aleviate similar problems, they tend to up the r's a bit....i didnt say itd send em thru the roof, maybe its the quantity of func_walls then that are used....thats why i either recess them, or put them in as func_illusionary....also keeps ya from getting hooked up on em, especially along the walls.....or it could be that i just dont map worth a f**k either.... :wink:

Doc Brass... :dodgy:
Re: lighting problems Posted by fishy on Sat Dec 20th 2003 at 10:07am
fishy
2623 posts
Posted 2003-12-20 10:07am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
Doc's right about the general increase in r's when you use func_walls, as they're 'visible' from everywhere in the map. i suppose my advice was a knee-jerk reaction when i seen face-splitting. /me bad

TB's solution of moving the brush down by 1 unit would be a better solution where the player can't see the space.

though the corridor does looks plain enough to accomodate some of Doc's recessed wall/ceiling lights [and maybe more], without any danger of the r's getting out of hand.
Re: lighting problems Posted by ReNo on Sat Dec 20th 2003 at 2:16pm
ReNo
5457 posts
Posted 2003-12-20 2:16pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Whether you use func_walls or func_illusionaries makes no difference in how they are rendered - func_illusionaries are just non-solid func_walls - so the r_speeds won't change dependant on which you use.
Re: lighting problems Posted by KungFuSquirrel on Sat Dec 20th 2003 at 2:57pm
KungFuSquirrel
751 posts
Posted 2003-12-20 2:57pm
751 posts 393 snarkmarks Registered: Aug 22nd 2001 Occupation: Game Design, LightBox Interactive Location: Austin TX
Doc's right about the general increase in r's when you use func_walls, as they're 'visible' from everywhere in the map. i suppose my advice was a knee-jerk reaction when i seen face-splitting. /me bad
No, that's not true. Your first instinct was right. func_walls are not always rendered. If you have a small portion of a very large func_wall visible, or just a large func_wall in general, VIS often mishandles these and does render them at points where they shouldn't be, but properly constructed func_walls cull from visibility just as any other world geometry - and the above behavior applies to any brush entity, not just func_walls.
Re: lighting problems Posted by Vash on Sat Dec 20th 2003 at 3:16pm
Vash
1206 posts
Posted 2003-12-20 3:16pm
Vash
member
1206 posts 181 snarkmarks Registered: Feb 4th 2003 Occupation: Afraid of Spiders
Failsafe was telling me something about Bounce lighting.
Re: lighting problems Posted by Dr Brasso on Sat Dec 20th 2003 at 4:52pm
Dr Brasso
1878 posts
Posted 2003-12-20 4:52pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
Re: lighting problems Posted by Dr Brasso on Sat Dec 20th 2003 at 4:52pm
Dr Brasso
1878 posts
Posted 2003-12-20 4:52pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
Re: lighting problems Posted by Dr Brasso on Sat Dec 20th 2003 at 5:00pm
Dr Brasso
1878 posts
Posted 2003-12-20 5:00pm
1878 posts 198 snarkmarks Registered: Aug 30th 2003 Occupation: cad drafter Location: Omaha,NE
ok first...lets be clear.....i am NOT trying to be argumentative here....im just going from my own personal experience...this came up a while back, and i just happened to have a map with a few func_walls in it that i used as an example of what NOT to do (anyone remember that??) ie, too many func walls up the r's...actually it was an example of misuse of them...granted there were alot of them, but the general premise was exactly that....what NOT to do....hense:

? posted by <a href=""http://www.snarkpit.com/users.php?name=Dr Brasso"">Dr Brasso</a>

they tend to up the r's a bit....i didnt say itd send em thru the roof, maybe its the quantity of func_walls then that are used

so...

i threw up some screens where the r's had jumped by 200, and left it as an example.....

anyway, thats just my two cents....i concede to the "elder statesmen" of the site....and yes....TB's solution of the 1 unit down is prolly the best.....wtf do i know anyway.... :heee:

Doc Brass... :dodgy:
Re: lighting problems Posted by Campaignjunkie on Sat Dec 20th 2003 at 5:27pm
Campaignjunkie
1309 posts
Posted 2003-12-20 5:27pm
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
Vash said:
Failsafe was telling me something about Bounce lighting.
It's just a compile parameter in RAD. hlrad.exe -bounce

Basically, it determines how many "bounces" RAD will calculate from the light. (Like light rays bouncing off walls, etc.) Essentially it has the effect of smoothing out lighting. High bounce numbers don't really do anything - a value of 1-4 usually works best.
Re: lighting problems Posted by Cassius on Sat Dec 20th 2003 at 5:28pm
Cassius
1989 posts
Posted 2003-12-20 5:28pm
Cassius
member
1989 posts 238 snarkmarks Registered: Aug 24th 2001
KungFuSquirrel said:
Doc's right about the general increase in r's when you use func_walls, as they're 'visible' from everywhere in the map. i suppose my advice was a knee-jerk reaction when i seen face-splitting. /me bad
No, that's not true. Your first instinct was right. func_walls are not always rendered. If you have a small portion of a very large func_wall visible, or just a large func_wall in general, VIS often mishandles these and does render them at points where they shouldn't be, but properly constructed func_walls cull from visibility just as any other world geometry - and the above behavior applies to any brush entity, not just func_walls.
Andrew's quite right here. A func_wall is only visible if you can see it directly, though occasionally Half-Life has an odd habit of having faces rendered through solid walls, but that goes for all brushwork/entities.

Too much of any entity will screw over your r_speeds, it's a fact of life. But in this case, you could do anything from func_wall'ing your light or just taking it one unit away from the cieling.

P.S. As an unrelated comment, having bounce at 0 with really intense lighting produces pitch black shadows, an AMAZING effect, especially in a firefight.
Re: lighting problems Posted by Hornpipe2 on Sat Dec 20th 2003 at 7:25pm
Hornpipe2
636 posts
Posted 2003-12-20 7:25pm
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
I've never adjusted the bounce value, though I guess the higher the number, the more prevalent and softer the light is. My HLRAD compile settings are usually just -extra.
Re: lighting problems Posted by Gorbachev on Sat Dec 20th 2003 at 8:32pm
Gorbachev
1569 posts
Posted 2003-12-20 8:32pm
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
Just slap the NULL texture on the sides of func_illusionaries and func_walls that you don't see. It removes the face splitting AND it won't render that underside texture which is sometimes does.
Re: lighting problems Posted by fishy on Sat Dec 20th 2003 at 9:52pm
fishy
2623 posts
Posted 2003-12-20 9:52pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
KungFuSquirrel said:
properly constructed func_walls cull from visibility just as any other world geometry
i've honestly found that not to be the case. i realised a long time ago that it was always func brushes that were rendered through a sky box, and when i found out about the wireframe view (quite recently), i was horrified to see every func_brush in my map being drawn, whether it was through sky or through solid world architecture.
Re: lighting problems Posted by Gorbachev on Sat Dec 20th 2003 at 11:12pm
Gorbachev
1569 posts
Posted 2003-12-20 11:12pm
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
Full VIS anyone?
Re: lighting problems Posted by fishy on Sun Dec 21st 2003 at 3:46pm
fishy
2623 posts
Posted 2003-12-21 3:46pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
yes gorb, with a -full vis compile.
Re: lighting problems Posted by Gorbachev on Mon Dec 22nd 2003 at 12:20am
Gorbachev
1569 posts
Posted 2003-12-22 12:20am
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
Then your map must be built in a way that those areas are visible whether they're solid or entity.
Re: lighting problems Posted by fishy on Mon Dec 22nd 2003 at 4:42pm
fishy
2623 posts
Posted 2003-12-22 4:42pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
nope
Re: lighting problems Posted by Campaignjunkie on Mon Dec 22nd 2003 at 6:08pm
Campaignjunkie
1309 posts
Posted 2003-12-22 6:08pm
1309 posts 329 snarkmarks Registered: Feb 12th 2002 Occupation: Student Location: West Coast, USA
Yes. KFS is right. Func_walls cull from visibility unless you make them REALLY big. Then VIS doesn't really know what to do with them and just makes it visible from lots of places.
Re: lighting problems Posted by Hornpipe2 on Mon Dec 22nd 2003 at 9:47pm
Hornpipe2
636 posts
Posted 2003-12-22 9:47pm
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
Func_walls will cull but if you don't have a lot of visblocking in one area they tend to show up in others. I had a lot of windows on a building once that always showed while the walls did not. Just experiment, use full vis, keep entity sizes small, make sure to visblock and try using HINT brushes when all else fails.
Re: lighting problems Posted by fishy on Tue Dec 23rd 2003 at 5:10am
fishy
2623 posts
Posted 2003-12-23 5:10am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
sorry people, it was my mistake.

when i used gl_wireframe, and seen all of the func_walls that were in places far removed and visblocked, i didn't realise that they were all grouped. i have a [bad] habit of tying brushes to existing entities. i must remember not to spread my groups so far apart.

sorry again.