Lighting problem on custom func_instance

Avatar
Haggis
158 Posts
Posted May 18, 2012
I have made a few custom func_instance, but the lighting on top of the brush is really poor.

http://img402.imageshack.us/img402/1750/portal2badlight.jpg

But underneath the brush the lighting is fine.

http://img585.imageshack.us/img585/6917/portal2goodlight.jpg

What is causing this problem.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Lpfreaky90
2,842 Posts
Posted May 18, 2012
Replied 4 minutes later
does your texture has _vertex in it's name?

If so remove it NEVER EVER EVER use textures with _vertex in their name!!!
use their normal counterparts, vertex texures = bad lighting

Avatar
Haggis
158 Posts
Posted May 18, 2012
Replied 13 minutes later
Just checked, none of them have vertex in their name.
Avatar
Lpfreaky90
2,842 Posts
Posted May 18, 2012
Replied 3 minutes later
okay, that's good!

Second thing: Lighting is calculated from the start position of a brush in a map, so if that brush is hidden on map spawn and shows up later it's lighting will be off.

If that's the case, start it enabled, disable it on map spawn and re-enable it when you need to.

Avatar
Haggis
158 Posts
Posted May 21, 2012
Replied 2 days later
Im going to have to think of something else than those moving platforms, i just cant get the light right. I even tried a piston that just moved in a straight line, but its as you said lpfraky, what ever is hidden will not show up when seen.
Avatar
Lpfreaky90
2,842 Posts
Posted May 21, 2012
Replied 6 minutes later

Haggis wrote:
Im going to have to think of something else than those moving platforms, i just cant get the light right. I even tried a piston that just moved in a straight line, but its as you said lpfraky, what ever is hidden will not show up when seen.

Have you considered that it starts in the position you want it to end up (so it gets light) and as soon as the map starts move it back?
The player will spent the first ~5 seconds getting down from the elevator, through the elevator door, plenty of time to hide it again :smile:

Advertisement
Registered users don’t see ads! Register now!
Avatar
Haggis
158 Posts
Posted May 21, 2012
Replied 25 minutes later
Will give that a try and get back to you.

Lpfreaky90, your a genius. That worked a treat :thumbup: