How to turn on/off stationary lights to full darkness
Hello, I'm new in UE4 and I'm making an horror game for my final degree project. All my game occurs in one house, so one level, and I'm trying to make the house "very detailed" trying to achieve the P.T. or Allison road feeling.
So, I want to be able to turn the lights on and off. Dynamic lights do this job perfectly, but perfomance cost is insane when I have a lot of lights, even now when I dont have too many props. I tried stationary lighting, looked like just what I needed, but I encountered this issue. When lights are On all looks good (ignore my lightmap issues, I really need to learn how to make them...):
When I turn the lights off (I set the visibility to false from my lightswitch blueprint) some of the lighting dissapears, but the objects are still illuminated?
I don't know how to resolve this, if you could help me I would be very thankful :)
Sorry if there's already a thread answering this, I couldn't find any solution! Oh, and sorry for my bad english!!
asked Aug 03 '16 at 03:43 PM in Rendering
With Stationary light types you can only change the intensity of the light and change the color, but any baked lighting for them is not removed since it is precomputed. You have a couple of options here. You can set the Indirect Light Intensity for the Stationary light to a lower value or 0 before you build lighting. This will limit the baked lighting that comes with the stationary light. If you want to keep the baked lighting but cut it off completely when the light is off l you could set up a Post Process Volume around your room and lower the Global Illumination: Intensity down to 0 through Blueprints when the light is disabled.
I hope this helps!
answered Aug 03 '16 at 05:38 PM
Tim Hobson ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here