- Home /
The question is answered, right answer was accepted
Ideas to make the scene darker.
Hello,
I'm currently working on lights, to discover things I can do with it. I'm trying to reproduce the effect of the Night Time in the game Don't Starve :
I kinda want to shroud the whole map with a dark veil, the player itself is a source of light, so to discover the area he needs to get close to objects. I already tried to make a directional black light, and it works well ... but the problem is that it makes the scene editing quite hard, because I don't see anything haha.
I don't know if I got the right idea, or if there is other ways to reproduce this kind of Light effect.
Thanks a lot !
Answer by ryanmillerca · Jul 16, 2019 at 04:12 PM
A black directional light is a bit of an odd approach. Provided your ambient light color is set to black (in Window > Rendering > Light Settings), you should be able to get darkness easily. In order to "see in the dark" for editing purposes, use the lights toggle in the scene view toolbar to disable lighting.
If you're looking for another approach entirely, you could light your scene in order to make it not black, and then color correct darker using post processing. This is how they film night scenes in TV/Film.
Hello.
Can you explain to me the differences between having a directional black light and setting the environment light to black, because I tried and it works perfectly too same result :)
I forgot about the light button in the scene view, thanks a lot ! Thanks for the post-processing idea too :D
Honestly, this probably is the best solution for you, $$anonymous$$e is pretty hard for a beginner and this might even be closer to what you are asking for; my the solution I was trying to point you towards would be to create a fog of war and you can ONLY see what is within the defined area (this how objects appear invisible until a light is shown on them for example), where this $$anonymous$$UCH SI$$anonymous$$PLER solution just gives the game a darker feel and depending on how well you setup the light on your player is probably going to do what the fog of war would do.
That was a pretty cool idea and i'll still check how to do a Fog of War, because it might be useful later :)
Adding a directional light (or any light) will incur a performance cost, while ambient light always exists. If you don't want directional lighting or shadows, a directional light isn't appropriate. Though, if it works, it works!
Ohhhh, I see ! I didn't think about the fact that the directional light will cast shadows, even if it's a black light.
Shadows will be casted by a simple point light on the player, so having a directional light doing the same thing is pretty useless. Btw, do you recommend me to use the Post-Processing Assets from Unity Tech. ?
Answer by pyramidhead01 · Jul 16, 2019 at 04:15 PM
It requires a setup with multiple cameras to create that "can't see in the distance effect", it's confusing at first but starts to make sense.
I haven't watched this, but I think this should get you in the right direction: https://www.youtube.com/watch?v=bbnVpPiQ_rU