Problem with portal 2 lighting in hammer.

Avatar
kai13XD
44 Posts
Posted May 18, 2013
I am currently having trouble with lighting when using hammer. Please recommend me ways i can fix this problem.

Here is the problem: https://www.dropbox.com/s/cja1yyji6gvzwu7/2013-05-18_00002.jpg

I can't figure out why the light passes through the door...

Advertisement
Registered users don’t see ads! Register now!
Avatar
User
630 Posts
Posted May 18, 2013
Replied 4 minutes later
Hmm i cant see a door on the Picture, but you can use (Block tool) The "Block light" texture, put it in the door and no light will go through.

EDIT: Or you maybe have turned "Disable Shadows" on?

Avatar
kai13XD
44 Posts
Posted May 18, 2013
Replied 8 minutes later
i did put a block_light and parented it to the func_door_rotating and disable shadows is set to no. what is wrong???
Avatar
User
630 Posts
Posted May 18, 2013
Replied 8 minutes later

No the "Block light" only blocks the light at the compiling, When you want to have dark when the door is closed, and lighted when the door is open, you can do 2 things:

  • You give the light (who is lighting the floor) a Name and Turn it off, when the Door is closed and turn on when door is open.

  • You use an env_projected_texture (but this is advanced)

Avatar
kai13XD
44 Posts
Posted May 18, 2013
Replied 23 minutes later
oh ok so i give the env_projected_texture and light an output to turn off when i close the door like:
On Closed
(name of light/env_projected_texture)
Turn off
Avatar
kai13XD
44 Posts
Posted May 18, 2013
Replied 3 minutes later
Also how can i keep the func_rotating_door from automatically closing by itself triggering the light to turn off while i'm in the room.
Avatar
BlackWolfe
55 Posts
Posted May 18, 2013
Replied 4 minutes later

kai13XD wrote:
Also how can i keep the func_rotating_door from automatically closing by itself triggering the light to turn off while i'm in the room.

Set the time before closing to -1. I forget the exact property name, but it defaults to 4 if that helps you find it.

Advertisement
Registered users don’t see ads! Register now!
Avatar
kai13XD
44 Posts
Posted May 18, 2013
Replied 1 minute later
yeah thanks i found it