Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Light Bleeding
KikoKuruma Offline
Junior Member

Posts: 23
Threads: 5
Joined: Jun 2011
Reputation: 0
#1
Question  Light Bleeding

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?
(This post was last modified: 06-26-2011, 02:11 PM by KikoKuruma.)
06-26-2011, 12:30 PM
Find Reply
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#2
RE: Light Bleeding

"bleeding from room to room" I dont understand this. Descript else

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
06-26-2011, 12:46 PM
Find Reply
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#3
RE: Light Bleeding

No, that's something even frictional gams faced and didn't fix in HPL 2 engine.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
06-26-2011, 12:46 PM
Find Reply
KikoKuruma Offline
Junior Member

Posts: 23
Threads: 5
Joined: Jun 2011
Reputation: 0
#4
RE: Light Bleeding

(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.
06-26-2011, 12:49 PM
Find Reply
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#5
RE: Light Bleeding

You just have to be very carefull with lighting. It's just another boring parameter to stay aware of.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
06-26-2011, 01:31 PM
Find Reply
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#6
RE: Light Bleeding

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

[Image: signature-2.png]
(This post was last modified: 06-26-2011, 05:07 PM by Streetboat.)
06-26-2011, 05:05 PM
Find Reply
KikoKuruma Offline
Junior Member

Posts: 23
Threads: 5
Joined: Jun 2011
Reputation: 0
#7
RE: Light Bleeding

(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!
06-26-2011, 06:34 PM
Find Reply




Users browsing this thread: 1 Guest(s)