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"

Get Sun to Follow Directional Light During Day/Night Cycle.

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

Product Version: Not Selected
Tags:
more ▼

asked Mar 26 '14 at 09:32 PM in Blueprint Scripting

avatar image

Lawrie
82 13 19 17

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

3 answers: sort voted first

I just got it updating with a simple custom Day/Night BP. You just attach your Direct Light (Set to Movable) and BP Sky Sphere to the two varibles and drop it into your level and boom, updating shadows w/ moving sun along with the nice sky sphere.

https://www.dropbox.com/s/zvwe6olvt33hwvi/DayNightBP.png https://www.dropbox.com/s/9cp44jac2dp114t/DayNightTimeline.png

Hope that works for ya!

more ▼

answered Mar 27 '14 at 06:05 AM

avatar image

Reality-X
76 2 5 9

avatar image Lawrie Mar 27 '14 at 08:28 AM

Thanks, especially for the pictures of it... it works well, the only thing i dont have is the 'SET' node... as i cant quite figure out where it is... but it still works and is GREAT. Thanks alot!

avatar image Reality-X Mar 27 '14 at 03:08 PM

The set comes from dragging off the sun var and then typing set in the search box that pops up. If need be I can create a tiny little video tutorial. Also, I created a forum thread on it. I'll likely try and update it to make it a bit more drag and drop and even try to get it to update a skylight AO.

Forum Link: https://forums.unrealengine.com/showthread.php?1237-Working-Basic-Day-Night-Cycle-w-Updating-sun

avatar image DJMidKnight Mar 27 '14 at 03:22 PM

Nice spoiler.

I had this completed but took it further with the tutorial I have written so that you can see step by step what is going on and also give you more control over the scene. Hope you understand the concept of what Nbazzeghin has setup and glad you are all set.

avatar image Reality-X Mar 27 '14 at 03:29 PM

Very Cool! I cant wait to see what you've come up with. The BP system is awesome.

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

I am currently looking into this as I have done the sun already moving across the sky the new thing to notice is that the skysphere is actually a blueprint and not just a sphere.

I am writing a tutorial and video which you can follow I want to make it complete with possibly using their skyblueprint example.

So the current point now is to either adjust the blue print or put a static mesh in place of it with a sky material you will find that if you delete the BP_Sky_sphere from the level you should see your light moving.

more ▼

answered Mar 26 '14 at 09:53 PM

avatar image

DJMidKnight
1.2k 50 24 51

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

Ok if you are working in a level blueprint all you need to do is place a reference to the skysphere in there and then wire off it and there should be a UPDATE SUN DIRECTION

more ▼

answered Mar 27 '14 at 02:20 AM

avatar image

DJMidKnight
1.2k 50 24 51

avatar image Lawrie Mar 27 '14 at 08:25 AM

Thank you very much !

(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