Light Problem Created 8 years ago2016-04-14 14:26:42 UTC by keevlicious keevlicious

Created 8 years ago2016-04-14 14:26:42 UTC by keevlicious keevlicious

Posted 8 years ago2016-04-14 14:27:23 UTC Post #329903
Hello,

I have a problem with some lights... I made a disco with some light. When I press a button, it will flicker. As soon as i place light_spot, light and point_spotlight, the room and some textures will be black somehow... If i remove the light_spot, light and point_spotlight, the room is fine but then i cant make the light flicker because i removed the light... Did i miss something? heres a video:

https://www.youtube.com/watch?v=OKolxmfZdJo
Posted 8 years ago2016-04-14 14:45:59 UTC Post #329904
Well, i figured it out. As soon as i give the entity light, light spot OR spot light a targetname, the room will go black...
Posted 8 years ago2016-04-15 13:56:58 UTC Post #329906
EDIT: Just realized this is in the Source forums. I don't know if the below still applies in Source.
Make sure to check your compile logs. If you have an area with many different styles of lights / lights that turn on/off independently, it may not compile correctly due to the exponential amount of light data required. Adding a targetname would factor into this because it means the light can then be triggered on/off.
Jessie JessieTrans Rights <3
Posted 8 years ago2016-04-16 11:05:18 UTC Post #329907
Taken from the VDC:

Giving a light entity a targetname makes VRAD compile a second lightmap "page" for the surfaces that its emitted light touches. This won't harm in-game performance, but it will increase compile time and BSP filesize, regardless of whether the light ever receives input to change its state.

However, the system can be overloaded if you try to make it handle a large number of overlapping named lights (since the number of pages needed increases exponentially). When this happens performance can be harmed and you may well see lighting anomalies.

VRAD attempts to avoid this with its hard-coded limits of two switchable lights affecting a brush face and 32 pages in total. More than this causes VRAD to throw a warning such as "Too many light styles on a face" and refuse to compute the lightmaps for those lights; this will make those areas appear as if they are not lit. You can help too by giving lights that will always change state at the same time a shared targetname, which makes VRAD merge their pages together.
PeterBrev PeterBrevLevel Designer
Posted 8 years ago2016-04-16 12:37:53 UTC Post #329908
Oh yeah.. thanks for the answer. so its not possible to make light flicker with a normal button... that sucks... ruined my disco :(
Posted 8 years ago2016-04-16 12:58:29 UTC Post #329909
I mean, a disco, with as many lights as one would expect... would probably be pretty hard to pull off under the above limits. Maybe not impossible... but tricky.
Jessie JessieTrans Rights <3
Posted 8 years ago2016-04-16 14:02:40 UTC Post #329910
Use dynamic lights. They're calculated real time and not baked.
Tetsu0 Tetsu0Positive Chaos
Posted 8 years ago2016-04-16 14:54:03 UTC Post #329911
I will try it with dynamic light, yeah. I hope it will work with input and output.
Posted 8 years ago2016-04-16 17:11:02 UTC Post #329912
they do but they're a pain to set up properly. just keep playing with it.
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.