light problem
Post Reply
Quote
Re: light problem
Posted by Jack of Blades on Fri Jun 27th at 1:43am 2008


the problem is, i added light entities, but those are not show, also, the whole map is covered by a white light(i did dont add this one), and when i turn on the flashlight, it just dont light nothing, except npc

any help plz?





Quote
Re: light problem
Posted by Jinx on Fri Jun 27th at 3:26am 2008


Accepted Answer
Sounds like you have a LEAK in the map. If your map is not totally sealed from the 'void' outside, the RAD (lighting) part of the map compile will not run. Without RAD, you end up with a map that is 'fullbright', ie completely lit all over with no nuanced lighting calculated.

Check for leaks- even if they are 1 pixel wide, you get this problem. Also, any brush that is an entity- a func_wall for example- will not 'seal' the map.



<A HREF=\"http://www.ministryofaction.net\" TARGET=\"_blank\">Action Half-Life</A> - <A HREF=\"http://distraction-mod.com\" TARGET=\"_blank\">Distrac



Quote
Re: light problem
Posted by Jack of Blades on Fri Jun 27th at 6:17am 2008


there are no leaks, im sure

Message submitted 26 minutes after original post:

now there is a leak, i put a func_door and there is a leak...

how i can fix that





Quote
Re: light problem
Posted by fishy on Fri Jun 27th at 7:00am 2008


Load the map in game, and type pointfile in the console. This causes a line to be drawn from the entity that it mentions in the log, all the way to the outside of the map, going through the hole that is the leak.




i eat paint



Quote
Re: light problem
Posted by Jinx on Fri Jun 27th at 1:34pm 2008


If the func_door is at the edge of the map, turn it back into a regular brush until there is another sealed room on the other side of it.

As you build the map, you'll need to keep it sealed. So if you have a hallway or doorway started that will go to a room you haven't started yet, just 'cork' it with a big brush when you compile so that you don't get a leak.



<A HREF=\"http://www.ministryofaction.net\" TARGET=\"_blank\">Action Half-Life</A> - <A HREF=\"http://distraction-mod.com\" TARGET=\"_blank\">Distrac



Quote
Re: light problem
Posted by Jack of Blades on Fri Jun 27th at 8:56pm 2008


it works now, but a fast question...

do you guys know a light entitie which can light a whole room?

its my first time with the valve hammer editor





Quote
Re: light problem
Posted by Le Chief on Fri Jun 27th at 11:57pm 2008


Yeah, you need to create an entity called 'light'. You may have to change the lights brightness depending on the size of the room, this is done in the "brightness" field. There are 4 values in that field (separated by a space). The first 3 values are Red, Green, Blue, they are used to control the colour of the light, the 4th value is the brightness. So for example, 255 0 0 400, is a bright red light and will light up a large area, 255 0 0 50, is a small red light, 255 255 255 200 is a white light.





Quote
Re: light problem
Posted by Jack of Blades on Sat Jun 28th at 1:15am 2008


nice, thanks




Post Reply