Monday, June 23, 2014

Time of day blueprint guide

This is a guide on how to use this blueprint: http://gregoryjb.blogspot.com/2014/06/ue4-time-of-day-setup.html

After running the sample map, the first thing you'll notice is that the sun moves waaaay too fast.  To slow down the sun, change the "Time Speed" variable.  Time Speed is a ratio of game-time to real-world-time; e.g., setting it to 24 will make 24 game-hours go by in 1 real-world hour.

With that out of the way, let me go over how to set up this blueprint in your own maps:


Setting this blueprint up in your own maps

- Delete the default skydome;
- Drag-and-drop the day-cycle skydome into your map;
- Set the "Directional Light Actor (Sun)" variable to equal your sun lamp in the map;
- (Optional) Set the "Moon Actor" variable to your moon lamp in the map;
- Set your sun and moon lamps to "movable" and disable static shadows;
- (Recommended) In the World Settings, under "Lightmass," check "Force no precomputed shadows";
- Rebuild lighting.

That's it, you should be good to go!  I highly recommend using this setup with LPV GI, you can find more information on it here: https://wiki.unrealengine.com/Light_Propagation_Volumes_GI


Quick breakdown of the most important properties

Default Hour - The time that we start at when we play the map;

Time Speed - Speed of time in ratio of game-time/real-world-time;

Sun Speed Curve - ADVANCED:  This curve gives you precise control over the movement of the sun vs. the actual time.  For instance, if you wanted to make days last longer, you could use this to slow down the sun for the duration of the day.  Just ignore this property if you don't need such functionality.

Moonlight Intensity - The brightness of the light from your moon actor; note that this must be set here, and not in the moon lamp's settings;

Use Day/Night - Uncheck this if you want to disable the dynamic features of the blueprint;

Display WorldTime - Logs the current time to the screen every frame, uncheck to disable.

12 comments:

  1. Hey Greg! I have this lighting problem on my attempt to do the same as you http://puu.sh/aiy3r/a46a3382c9.jpg where the underside of my objects are being illuminated by the underground sun. I can't figure out how you fixed this problem in your example where it works just fine. Could we talk through Facebook or Skype or email? Thanks.

    ReplyDelete
  2. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies
    Best AWS Training in Chennai | Amazon Web Services Training in Chennai

    ReplyDelete
  3. I really appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thx again!


    angularjs-Training in velachery

    angularjs-Training in annanagar

    angularjs Training in chennai

    angularjs Training in chennai

    ReplyDelete
  4. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    python training in velachery | python training institute in chennai

    ReplyDelete
  5. Your post shows all your effort and great experience towards your work Your Information is Great if mastered very well.
    aws training in chennai | aws training in annanagar | aws training in omr | aws training in porur | aws training in tambaram | aws training in velachery

    ReplyDelete
  6. Buy seiko titanium cd key - The Silicon Studio
    Sega's welding titanium Sega CD games titanium nitride is considered as the titanium bar fourth generation of video game consoles, titanium exhaust wrap and their primary contribution to the industry was titanium muffler a fourth-generation

    ReplyDelete