Announcement

Collapse
No announcement yet.

Help: Day/Night and Daylight Shadows.

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

    Help: Day/Night and Daylight Shadows.

    Hi All **Ignore Voice on Video, was watching TV**

    Just got a few issues with Day/Night cycle, and shadows during the day.

    I have a Lighting Volume around the area.

    DAY/NIGHT Problem:

    I am running this quickly for testing, 24 hours in 15 min. (Has same effect over longer time frames)

    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	55.5 KB
ID:	1145331

    1) The shadows seem to move smoothly at long distances, but seem to juter when shading wall from own roof. (Time in Video - 1:20 & 3:50)

    2) Night light shining through the floor and doing strange things depending on where you are looking. I was thinking of dropping the intensity of the sky light as it is setting and ramping it back up when the sun rises. Or is there a way to redo this? (Not on this video)

    DAYTIME SHADOWS Problem

    1) Shadows are so dark I loose all detail in the buildings during the day. (Time in Video - 2:09)



    Any help or guidance would be great.

    Regards

    Narg
    Last edited by Narghile; 03-06-2015, 08:34 AM.
    http://www.seven-mountains.eu/


    #2
    This is the night lighting issue.



    Regards

    Narg
    http://www.seven-mountains.eu/

    Comment


      #3
      Hi!

      Do you see this tutorial? Maybe it help.

      https://www.youtube.com/watch?v=BljC7-xMhHQ

      Comment


        #4
        Originally posted by svv3dUDN View Post
        Hi!

        Do you see this tutorial? Maybe it help.

        https://www.youtube.com/watch?v=BljC7-xMhHQ
        That is basically the same as I did. Put his nodes in the same results.

        Cheers for answering

        Regards

        Narg
        http://www.seven-mountains.eu/

        Comment


          #5
          Hi Narg,

          You can take a look at this post that I've got here: https://forums.unrealengine.com/show...l=1#post209224

          This link includes a sample project using Gregdumb's Wiki Day/Night system.



          1) The shadows seem to move smoothly at long distances, but seem to juter when shading wall from own roof. (Time in Video - 1:20 & 3:50)

          2) Night light shining through the floor and doing strange things depending on where you are looking. I was thinking of dropping the intensity of the sky light as it is setting and ramping it back up when the sun rises. Or is there a way to redo this? (Not on this video)

          DAYTIME SHADOWS Problem

          3) Shadows are so dark I loose all detail in the buildings during the day. (Time in Video - 2:09)

          1. This may be caused by using the Timeline. Not sure. I've not setup sun rotation using that one before. May be better to use Event Tick or Set Timer.

          2. This is handled in the project I linked to above. You need to set up the logic for the sun when it's below the horizon line to be set to 0 otherwise it's continuing to light while below the horizon line. It's good to remember that the sun doesn't know it's a sun. It's a light source and needs to be set up to perform in certain ways by adjusting it's settings via BP or otherwise.

          3. This is because there is no Dynamic GI. You can add a Sky Light to help with this. You will need to disable or lower it's intensity when it is below the horizon line as well (covered in my link above). There are solutions in the works for Dynamic GI though with Daniels efforts with DFGI, but that's still early on. LPV is the other and can be enabled via the consolevariables.ini (You can read the documentation on it here) There are improvements coming, but not before 4.8 at the earliest with this method. At the moment there is still some issues with light leaking into interiors along with some other limitations.

          Lastly, I noticed in your video in the top right it says "Lighting needs to be rebuilt." If you're planning to use a Dynamic Day/Night system it would be best to make all your lighting movable rather than having some that are stationary/static.

          You can have a look at our lighting troubleshooting and tips guide here: https://wiki.unrealengine.com/Lighti...eshootingGuide
          Tim Hobson | Learning Resources | Epic Games
          UE4 Documentation

          Comment


            #6
            Hi Time

            Worked out skylight just as you posted.

            ** EDIT **

            Running off event tick work so much better, cheers

            Narg
            Last edited by Narghile; 03-06-2015, 11:30 AM.
            http://www.seven-mountains.eu/

            Comment


              #7
              With my sample scene I only used some simple boxes to test the shadow moving with a slow rotation from the light.

              The meshes you're using, are they from the Epic Game Marketplace? If so, I can take a look and see if there is a way to improve that. I've not really used any dynamic day/night systems in any personal projects I've used so I've not run into the problem. If there is something that can be done I can take a look and update my project with an example to help others as well.
              Tim Hobson | Learning Resources | Epic Games
              UE4 Documentation

              Comment


                #8
                Hi Tim

                The meshes are from Market Place - Top-Down City

                The only issue I have is it is working, followed Tesla and another video, but I have lost my night sky.

                Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	49.5 KB
ID:	1067826

                Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	55.5 KB
ID:	1067827



                Not sure where I went wrong.

                Regards

                Narg
                http://www.seven-mountains.eu/

                Comment


                  #9
                  Half sorted

                  Except now it get stuck at 12:00 unless I move LOL

                  Harder than I thought



                  Narg
                  http://www.seven-mountains.eu/

                  Comment

                  Working...
                  X