x

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"

Help please! Day/Night Cycle

Hey, i have been trying to figure this out however i am struggling. So i started with a timeline on the level blueprint aswell as a moveable directional light, and added a float track, and changed some of the numbers. Then tried lots of different rotation nodes but i couldnt figure it out. Please Anyone can help! Theres some pictures of what i currently tried . Maybe i am very wrong and i new to this. Thanks.

http://gyazo.com/22edadfcfc70f1d0ba101b2ebe486c05 http://gyazo.com/036585c74c81f25f6a5dd2e4ae8368ec

Product Version: Not Selected
Tags:
more ▼

asked Mar 25 '14 at 11:18 PM in Blueprint Scripting

avatar image

Lawrie
82 13 19 17

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

5 answers: sort voted first

ok for starters your directional light needs to be MOVEABLE.

Lets start with the light you are using as your SUN as an example. Place it in your level if there is already not one and then in the Details tab under MOBILITY change that to MOVEABLE.

The in your LEVEL BLUEPRINT drag the light in. From here you are on the right path and there a few different ways to do what you want and also how you want to see the effect.

Anyways start here and if you need more help I will be happy to help if someone else doesn't jump in before I check on here again.

more ▼

answered Mar 25 '14 at 11:26 PM

avatar image

DJMidKnight
1.2k 50 24 51

avatar image Lawrie Mar 26 '14 at 10:42 AM

Thank for the reply..however i did set the default "directionalightstationary" to moveable. But instead of dragging it in... i addeda reference, but are theynot the same? Thanks for the help though.

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

I have created a tutorial on how to implement day and night cycle in unreal. posting it here because someone might find this useful. I have created another blueprint by extending the skysphere blueprint and the M_Sky_Panning_Clouds material is modified to add a moon as well.

Time of day system : https://youtu.be/5G7tqLMwTF0

Adding Moon to sky sphere : https://youtu.be/iLRDfj9K99w

Moon phases : https://youtu.be/_AJZk2yuA00

Lighting based on time of day : https://youtu.be/hpgNqbw6RZk alt text alt text alt text

more ▼

answered Dec 02 '18 at 02:31 PM

avatar image

Thilina_arimac
41 4 1

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

You can take a look here: link text

more ▼

answered Mar 26 '14 at 02:38 PM

avatar image

Ad3ViLl
96 12 21 20

avatar image Lawrie Mar 26 '14 at 06:59 PM

Ok, so i have tried to figure this out a bit more and think i have something... the directional light cycles and you can see it with lighting changes... however the actual sun on the sky sphere doesnt move. When i hover over the 'Directional Light actor ' property on the sky sphere, it says a description but i cant tell whether it will work... Anyone have any ideas on how to move the sun in the sky to follow the directional light?

Thanks, any more help would help.

Heres some pictures if it helps.

http://gyazo.com/afaba085a5bf3875cf0b38de842dd239 http://gyazo.com/ace2e7316eae37e69df8c047926f6a4a http://gyazo.com/a037b34c552043df9a3b467b15a92a53

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

Set the Actors LOCAL Rotation ;)

more ▼

answered Mar 26 '14 at 10:36 PM

avatar image

SaxonRah
328 11 11 28

avatar image Lawrie Mar 26 '14 at 10:56 PM

This is great and VERY useful. Makes it look much better. Thanks. However i have still not figured out how to get the actual sun from the skysphere to move with the directionallight... any ideas? Thanks for the help.

avatar image leonn3k Mar 26 '14 at 11:03 PM

I'm not entirely sure but I think you use this
alt text

capture.png (22.8 kB)
avatar image Lawrie Mar 26 '14 at 11:09 PM

Yes, this is what i already have, however it still wont work! thanks for the help though.

avatar image DJMidKnight Mar 26 '14 at 11:07 PM

I am working on your question here

avatar image Lawrie Mar 26 '14 at 11:13 PM

Thanks for the reply on my other post, i saw the blueprint of the Skydome... however i instantly was confused and i really dont know where to start. So yes, thanks for the post!

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

I have a slight design for one, no pictures currently in at work bored out of my mind. The basic just is to have your event play begin node connect to your play on the timeline node, my timeline node is still under works but I plan to have a keyframe for every hour or two in game. Have the set pitch from your timeline, or whatever you may have called it in your timeline connect to a make rot node, connected to the pitch. The return value will be set to a set actor rotation node the target of which is your source of light, after words you would connect to whichever nodes you wanted, if you wanted to change the skypheres color or add on a different texture like stars or auroras, I'm still working on having a different sky pattern appear during specific keyframes, stil haven't quite got that down. If you want to just go through the bp_skysphere that's included you can connect the set node target of which will be the bp_sphere and that would be connected to the last node which update the bp_sphere. The target of the set node and the update node would be the sky sphere, that's about the extent of my knowledge, that should be a good base for what you need, I'm trying to get one working that will changed the clouds and light color tons more ominous grey during hours that would technically be night but haven't had much free time to dabble with that yet.

more ▼

answered Mar 28 '14 at 04:39 PM

avatar image

Jägermanjensen
116 5 5 13

(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