Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Using a Day/Night cycle, but the nights have a wierd light going on


So I was trying to use a day/night cycle on my project. Was simple enough to do, but I have some trouble with the lights on the night time. I did some searching and found out turning down ligthmass or changing environment color in world settings would help, and it did, but it makes everything too dark. So I tried to add a little bit of light (tried both a skylight and slightly lighter world settings) and here is the problem: When the sun goes down, it gets darker, but when the stars comes to sight, the whole level gets brighter, and when the sun comes up, it gets darker, and then turns to daytime.

What I want to have is a light setup that does not make it brighter in the night time, but I can't figure out how =/

Picture trying to show what I mean: alt text

Product Version: Not Selected
more ▼

asked May 13 '15 at 12:56 AM in Rendering

avatar image

51 4 7 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Andy,

I have a sample project here that may help as well: https://forums.unrealengine.com/showthread.php?56777-Photons-Be-Free-Mini-tutorials-and-other-curiosities&p=209224&viewfull=1#post209224

This is a day/night cycle based around Gregdumb's Wiki Tutorial.

I've extended it to use a skylight that fades in and out it's intensity when the sun is below/above the horizon line.

If you're using a skylight you will want to essentially set it's intensity to get the look you want during the night time. In my example I use a very low intensity for the night since I wanted to have it go nearly pitch black, but still have a little bit of light.

The World Settings > Lightmass > Environment color shouldn't have any effect on your dynamic day/night scene since these are specifically used for pre-computed (baked) lighting.

I hope this helps.


more ▼

answered May 13 '15 at 03:17 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image Andy.N May 14 '15 at 04:51 PM

Thank you! At first nothing made a difference, but I found out that you set 1 as min and max brightness for the Auto Exposure in the PostProcessVolume, which i didn't. And that solved the problem :D

avatar image Tim Hobson ♦♦ STAFF May 14 '15 at 05:12 PM

ah, right. I tend to forget about that since I usually set up a post process in all my levels and get rid of that first thing.

Glad that worked for you! :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question