Take the 2-minute tour ×

I'm doing a game with a dungeon, there are quite a few torches lining the walls. I'm using a point light over each torch to simulate the flame. However, when two torches are across from each other, and one goes above 1.85 range, the other disappears completely. Giving off no light.

I can't seem to figure out what's causing this, does anyone have any idea?


share|improve this question
I actually currently have this problem as well and can't figure it out. One thing i did notice with it is that sometimes if i am in the scene tab and i zoom or move closer to the light, it turns back on and a different one will turn off. Can't really explain it but i'm guessing it has something to do with some sort of culling (or the lighting version of that) - still researching though –  Mungoid May 7 '12 at 19:48
Google turned up answers.unity3d.com/questions/44353/… –  Adam May 7 '12 at 23:11
Baking seems like it may work, I'll try it out and let you know. –  Timothy Williams May 8 '12 at 2:46
add comment

2 Answers

Unity only renders a limited number of pixel lights at a time; exactly how many depends on the quality level. The most 'important' pixel lights are chosen, and brightness is a significant part of how 'important' a light is.

share|improve this answer
add comment

I don't know if you guys are still trying to figure this out, but I had the same issue awhile back and solved it by only using a single point light per dueling torches.

Set your torches up with flame particle systems, and then set the point light at the center of the hallway between the two torches. The particle systems draw the eye away from the origin point between them, and the majority of players aren't going to notice that detail anyway. This will cut the number of point lights in your scene while still maintaining the same effect.

If you do the above, or even if you don't, and want to be even more effective with lighting, set a collider as trigger on your torch prefab and use OnTriggerEnter / OnTriggerExit to turn the lights on and off as the player passes through the level (you could even set two box colliders on each light and lay them across the hallway in tactical locations).

This will give you much more control over which lights are on and off, as well as give possible performance boost depending on how many torches you have.

share|improve this answer
add comment

Your Answer


