how do i solve black, unshaded panel edges?

Avatar
MissStabby
160 Posts
Posted Jun 06, 2011
Im making a room where a big chunk of the wall is moving out,
though when it is out, the edges are lit like they are against the wall, instead of out in the room.

img
What would be the best way to solve this problem?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Pete
52 Posts
Posted Jun 06, 2011
Replied 5 minutes later
The problem is that since the default position of the panel is in being right next to a wall, no light hits it in that position and thus no light gets baked into it. You could either make the wall behind it much thinner or clip it at a 45 or so angle... alternatively you could make a sort of a frame, turn it into a func_brush or something and disable shadows on that, though I have no idea how will that mess up lighting in other areas. Just experiment with it, Im sure youll think of something.
Avatar
PrejudicedNanobot
39 Posts
Posted Jun 06, 2011
Replied 54 minutes later
A quick way to fix this (assuming the moving panel is a brush entity) is to set its minimum light level (see here) to something above zero. It can take a bit of trial and error since you don't want the brush to be lit more brightly than its surroundings, but produces a serviceable result in my experience.
Avatar
DaMaGepy
361 Posts
Posted Jun 06, 2011
Replied 48 minutes later
the best way for realistic lighting (if its a func_door) is to create it as when its reached out, and make that the default position (so thats the closed position, and set the movement direction backward and set its starting state as open. That way it renders the light at the opened state but at mapstart its in the wall, and must close to reach out, open to go back. I usually do this :smile:
Avatar
MissStabby
160 Posts
Posted Jun 06, 2011
Replied 17 minutes later
thanks for the tips,

i think ill try to set the "default" position to the expanded position, then add a "onmapspawn" to pop the panel back in place, as soon as the map loads up

Advertisement
Registered users don’t see ads! Register now!
Avatar
CAP-ONE
23 Posts
Posted Jun 06, 2011
Replied 22 minutes later
Same problem, just add a light with small brightness behind the brush.