Light & Brush Problem

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
WhiteEcko
Lance Corporal
Posts: 21
Joined: Thu Dec 09, 2004 4:28 am

Light & Brush Problem

Post by WhiteEcko »

Ok, here's my problem:

I have a light near the roof of a room in my map. The 'light' from this light passes between brushes (even when there is no space), and even through some of them (like through the roof).

(a) Why does it do this?
(b) How can I fix it?

Is there some kind of 'clip' brush I can make (like the clip_all texture maybe) that will prevent this?

Help would be greatly appreciated. :D
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

i think common_shadow (or something_shadow, not sure what it realy is) does that. if all else fails make two brushes with a nodraw sandwiched in between.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

As to why it happens: the compilers work with triangles/polys to calculate the lightmaps. Sometimes it can not see that a brush should block light when one of the brushes' triangles is extending beyond a wall or other obstacle.
You could do as Lizardkid suggested, insert a thin brush with the common/caulkshadow texture and sandwich it between the walls. You would have to split the walls to do so.

The method I usually try first is manually cut the brushes where they meet to make sure the polys won't extend beyond brushes that should stop the light.

Code: Select all

try splitting the brushes where they meet:
___   ______
___|_|______  <-ceiling
   | |
   | |  <-wall


instead of:
___________
___________  <-ceiling
   | |
   | |  <-wall 
WhiteEcko
Lance Corporal
Posts: 21
Joined: Thu Dec 09, 2004 4:28 am

Post by WhiteEcko »

^Yeah, thats how I've built pretty much all my map, except for a couple of parts.

I'll try that common/caulkshadow thing then. Once again, thanks for the help guys. :)
Post Reply