Announcement

Collapse
No announcement yet.

Light sky in dark

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Light sky in dark

    Hi guys

    I want to implement day/night into my game.

    When night:
    Click image for larger version

Name:	night.jpg
Views:	1
Size:	32.4 KB
ID:	1145621

    My blueprint for day/night
    Click image for larger version

Name:	blueprint1.jpg
Views:	1
Size:	245.3 KB
ID:	1145622
    Click image for larger version

Name:	blueprint2.jpg
Views:	1
Size:	251.3 KB
ID:	1145623

    So i have no idea what is wrong. I tried to find out on net what is wrong but I cant find nothing

    Can you help me guys?

    #2
    Hi LadIQe,

    From just a quick glance things look correct.

    To troubleshoot you can place a print string at the end of each event for the "BecomesDay" and "BecomesNight" custom events. That way when the transition to night is happening you can make sure it's firing. if it is, you can then try promoting the becomes night set intensity to a variable. You can then print string on that and it should tell the new intensity value that is set.

    All this should be visible in the output log window if you open that as well.

    I've got this same project as a complete download on this post if you need to compare: https://forums.unrealengine.com/show...l=1#post209224

    I've also added some updates to it to include a skylight for faked global illumination and adjusted the transition from night to day to have a smooth transition rather than looking like someone just turned off a light switch.

    I too started from Gregdumb's Day/Night tutorial on the Wiki for this project so it shouldn't look too dissimilar.

    Let me know what you find.
    Tim Hobson | Learning Resources | Epic Games
    UE4 Documentation

    Comment


      #3
      ehm Im not sure if understand but I have variables for intensity for "sun", because when my sun was under map, its shine trough it so when my sun is under horizont my program set intensity to 0, so one problem is solved

      but sky is still same, I was doing it with this tutorial
      https://wiki.unrealengine.com/Tutorial:_Time_of_Day

      this guy get dark sky when night, but in my project nothing happen

      Comment

      Working...
      X