Frictional Games Forum (read-only)

Full Version: Light Bleeding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the editor, lights from candles and such are bleeding from room to room when i place them against a wall. Is there a way to stop this?
"bleeding from room to room" I dont understand this. Descript else
No, that's something even frictional gams faced and didn't fix in HPL 2 engine.
(06-26-2011, 12:46 PM)nemesis567 Wrote: [ -> ]No, that's something even frictional gams faced and didn't fix in HPL 2 engine.

Awww, thanks anyways, it just really bothers me how if i want a candle lit room next to a really dark room, there's mysterious lights on the wrong walls.
You just have to be very carefull with lighting. It's just another boring parameter to stay aware of.
Pointlights go through everything. Use spotlights to combat the issue. And if you have a lamp entity that you have to place against a wall that will be seen from the other side, you can use this trick: use the same version of that lamp entity that has 'no_light' at the end of it, and place spotlights accordingly. I whipped up a small test map to demonstrate this. In this first picture, there is a regular candle_floor on the right (on the far end), and a candle_floor_no_light on the left, with the shadows (it looks nicer anyways, don't you think?).
[Image: light1.jpg]

And as you can see on the other side of that same wall, the light from the candle_floor bleeds through, but the lights from the spotlights does not:
[Image: light2.jpg]

And here is how it looks in-editor:
[Image: light3.jpg]
As you can see, it does take more effort to set up the bleed-proof lighting, but it's worth it. You should only do this if you absolutely have to place a light on an area where the player is gonna be seeing the light bleed through the wall, such as if there's a room right next door. Also notice how the candle_floor's pointlight bleeds through the table it is on, making an unnatural lack of a shadow, which is fixed by the solution I posted.

Frictional did a good job taking measures to prevent this effect from happening on some lamp entities, such as the candlestick, where the Pointlight associated with the lamp is actually offset from the center of the lamp, so you can place it against a wall and it won't bleed through as much. Make sure you rotate it so the candlestick's pointlight is OUTSIDE the wall, though! I've seen it happen many a time where the light is inside the wall it's trying to light, and it looks god-awful.

Good luck! Smile
(06-26-2011, 05:05 PM)Streetboat Wrote: [ -> ]Pointlights go through everything. Use spotlights to combat the issue. And if you have a lamp entity that you have to place against a wall that will be seen from the other side, you can use this trick: use the same version of that lamp entity that has 'no_light' at the end of it, and place spotlights accordingly. I whipped up a small test map to demonstrate this. In this first picture, there is a regular candle_floor on the right (on the far end), and a candle_floor_no_light on the left, with the shadows (it looks nicer anyways, don't you think?).
[Image: light1.jpg]

And as you can see on the other side of that same wall, the light from the candle_floor bleeds through, but the lights from the spotlights does not:
[Image: light2.jpg]

And here is how it looks in-editor:
[Image: light3.jpg]
As you can see, it does take more effort to set up the bleed-proof lighting, but it's worth it. You should only do this if you absolutely have to place a light on an area where the player is gonna be seeing the light bleed through the wall, such as if there's a room right next door. Also notice how the candle_floor's pointlight bleeds through the table it is on, making an unnatural lack of a shadow, which is fixed by the solution I posted.

Frictional did a good job taking measures to prevent this effect from happening on some lamp entities, such as the candlestick, where the Pointlight associated with the lamp is actually offset from the center of the lamp, so you can place it against a wall and it won't bleed through as much. Make sure you rotate it so the candlestick's pointlight is OUTSIDE the wall, though! I've seen it happen many a time where the light is inside the wall it's trying to light, and it looks god-awful.

Good luck! Smile

Wow! thank you very much for this. it was very helpful!