People trying this tutorial in 4.7+: --"DirectionalLightStationary" is now called "Light Source" --While you have your sun (originally called "Light Source") Selected, turn off "Cast Static Shadows" --"BP_Sky_Sphere" is now called "SkySphereBlueprint" Finally, make sure you remember to plug "Event Tick" into the "AddActorLocalRotation". I missed that step. It then works fine in Unreal 4.11.2!
Sun doesn't move at first, but must be due to a later rendition of Unreal. The problem was that the "Make Rot" Float in the level blueprint has the pitch, yaw and roll switched around. Works like a charm now.
Can't seem to get it working on 4.7. The Sky_Sphere has an "Update Sun Direction", but it's giving me an error per tick when I try to run it, and while the sun goes around, the skysphere doesn't change from night to day. Anyone got a solution?
I'm in 5.0, saw need to switch off Enable Type Promotion to access float* node, now hitting another bump, seems SM_SkySphere has replaced BP SkySphere, can't access Update Sun Direction. Thanks for a tip. Great tut.
How to setup bp sky sphere in relation with sun such that holding ctr+L and moving mouse makes sun move or updates its rotational position in realtime. Is it possible to get this done right from scratch in a custom way.
IS there a Way to check the Current PC Time. Im not that into the Unreal Enige, but i want to get int. I would like if the sun would set to the right sunposition after it checks the time of day in RL Is this possible?
Have you figured out a way to get the clouds to darken when it becomes night time? I can't get the sky sphere to reflect any changes I make at runtime.
Conor Burcher Thank you for your suggestion, but if I watch the mesh from a distance now it gives me a whitish color at the very bottom of the object. Any idea why this could be? And also I wonder how much casting as a 2 sided material costs in performance.
NewB here, If I set the time (rotation) for my son to start with a sunset, and WITHOUT using your blueprint will set my scene always at sunset? or UE4 will simulate the daylight until it's day again? (what I'm wishing to do for y scene is to have an 'eternal' sunset, is this possible?
I must be stupid, cant figure out how to do so that a particle system only spawn particles if it´s night. Got this time of day set up but cant figure out how to go from Boolean Night=True to Particle Spawn = True
It's been four months so there's a good chance this is very, very late, but the "Make Rotator" node in the tutorial's version has an outdated layout. Aim for its middle pin on the left(should be "yaw") instead of the top pin! :)
I cant seem to find my Sun? But i have the light on it? Like literally the sun (bright circle) it does not move around my canvass because i don't see it but then i can see the directional of lights moving? Im using UE 4.7? Anyone can help?
Thanks, one question.. How can I share the blueprint? It take 5 mins to do this, yes I know.. but if I want to use it on other scenes or share it.. How would I go around that, thanks
I'm sure you already figured this out, but for future reference for others watching this. You can make a normal blueprint and include a lot of these things (such as sun etc). And then just drag that into a map, and just make sure to have a public variable for the skysphere and reference that in the new scene (unless you want to bundle that in as well with the blueprint, which you could do I suppose).
Milovanovic Bojan I fixed it though :) However it was couple of days ago and my memory is like a gold fish.. >_> but I THINK I just followed another video and it worked in the end
Why if the speed is slow, the night time gets infinite? If i set the speed to 10 its fine, but if I set it at like 8... the sun just stays at "midnight"... any idea how to fix this?
Can ue4 read hour from computer and adapt the lighting? Can we let the player choose the hour? Can we rotate the sun? Those are noobs questions sorry, trying to understand ue4
yes you can rotate the sun and change the hour of day. I am not sure how to go about getting the time info from the computer clock but I would think a good programer might be able to help you out with that. I would also look at"true sky" to replace the basic UE4 sky sphere for their awsome looking skys. There is eaven a ue4 version.
I Have 3 Problems: 1 - When i Start My Game I Can't See The Sun 2- Error Blueprint Runtime Error: Accessed None trying to read property Directional light actor from function: 'UpdateSunDirection' from node: Set Sun height in graph: UpdateSunDirection in object: BP_Sky_Sphere with description: 3- 3- Accessed None trying to read property Directional light actor Error Blueprint Runtime Error: Accessed None from function: 'UpdateSunDirection' from node: Set Vector Parameter Value in graph: UpdateSunDirection in object: BP_Sky_Sphere with description: Accessed None
I don't think the coordinates are what you want. With sun/directional light, you can place it pretty much anywhere--it's usually the rotation that matters. Have you tried starting with the Sun/Light pointing directly upward?
I damn love your tutorials sub+ from me and if i may ask can u make a tutorial this will be in it just ow to make other skyboxes when the sun go down stars to be seen and when changing level the skybox to be changed with other skybox and awesome tuts man keep up !
People trying this tutorial in 4.7+:
--"DirectionalLightStationary" is now called "Light Source"
--While you have your sun (originally called "Light Source") Selected, turn off "Cast Static Shadows"
--"BP_Sky_Sphere" is now called "SkySphereBlueprint"
Finally, make sure you remember to plug "Event Tick" into the "AddActorLocalRotation". I missed that step.
It then works fine in Unreal 4.11.2!
Thanks a lot!!!
do you also know what to do for 4.20? since i dont see "Cast Static Shadows" anywhere
Thanks tesla!
I am a real noob when it comes to creating games but you are the best ue4 tutorial creator on youtube!
Sun doesn't move at first, but must be due to a later rendition of Unreal. The problem was that the "Make Rot" Float in the level blueprint has the pitch, yaw and roll switched around. Works like a charm now.
Thank you!!
You My Friend Have Just Got Me a Distinction In College, Thank You Good Sir.
Another great video. Any chance showing how to enable real-time GI or a moon to this scene?
Really impressed, can follow along. Good pace and tone. Clear instructions. 5/5 from me.
Can't seem to get it working on 4.7.
The Sky_Sphere has an "Update Sun Direction", but it's giving me an error per tick when I try to run it, and while the sun goes around, the skysphere doesn't change from night to day.
Anyone got a solution?
Well i just test this and its not working on latest build
i never regret subscribing to u !! nice and simple thanks it helped me a lot
Cool stuff. I think this tut will be very helpful quite soon. Thanks
I think a delay loop instead of tick might be more efficient since event tick is like anti pattern.
amazing job bro , can you do a tutorial about interior architecture lighting please ?
thanks alot !
I'm in 5.0, saw need to switch off Enable Type Promotion to access float* node, now hitting another bump, seems SM_SkySphere has replaced BP SkySphere, can't access Update Sun Direction. Thanks for a tip. Great tut.
Maybe unrelated . Now that I know how to make it night. How do you change the ground color/bottom part of the skysphere?
How to setup bp sky sphere in relation with sun such that holding ctr+L and moving mouse makes sun move or updates its rotational position in realtime. Is it possible to get this done right from scratch in a custom way.
I've got the latest version of Unreal Engine 4 and there is no 'Sun Direction Update' now, is there something I can use that does the same function?
if we implement this on a mobile game, will it cause the game to lag significantly? or is there a way to bake all these?
IS there a Way to check the Current PC Time. Im not that into the Unreal Enige, but i want to get int. I would like if the sun would set to the right sunposition after it checks the time of day in RL
Is this possible?
Yes.
how xD
GlitchJournal maybe out the player to type their correct time in manually, which game then assumes is true?
Cool tutorial !
Btw can you tell me what is the "SET" node ?
It's in the "Changing the Environment" part.
Thanks Tesla Dev
Having an issue where the sun is still lighting the terrain/objects on the terrain after it's set, any tips on how to stop that from happening?
I ended up setting the landscape to cast shadows as a 2 sided material :) that fixed it for me
Have you figured out a way to get the clouds to darken when it becomes night time? I can't get the sky sphere to reflect any changes I make at runtime.
If you've already made your day night cycle it should already
Conor Burcher Thank you for your suggestion, but if I watch the mesh from a distance now it gives me a whitish color at the very bottom of the object. Any idea why this could be? And also I wonder how much casting as a 2 sided material costs in performance.
And what if I want to use the real system time of day? Or even better for multiplayer purposes the real server system time?
NewB here, If I set the time (rotation) for my son to start with a sunset, and WITHOUT using your blueprint will set my scene always at sunset? or UE4 will simulate the daylight until it's day again? (what I'm wishing to do for y scene is to have an 'eternal' sunset, is this possible?
I must be stupid, cant figure out how to do so that a particle system only spawn particles if it´s night. Got this time of day set up but cant figure out how to go from Boolean Night=True to Particle Spawn = True
I want to be able to set the exact time of day so that it matches up with my timeline events. Any suggestions?
I've tried 4different tutorials but it still isn't working. Help Plz
How do you get a skybox to move?
hi, theres no Update Sun Direction in Unreal Engine 4.7 Preview 7
I couldn't make it work, I tried a few times from the top but, nope. Help?
It's been four months so there's a good chance this is very, very late, but the "Make Rotator" node in the tutorial's version has an outdated layout. Aim for its middle pin on the left(should be "yaw") instead of the top pin! :)
@@curranh.8328 THIS THIS THIS THIS is the key right here 2019
@@shakaama Glad it helped 😂
I cant seem to find my Sun? But i have the light on it? Like literally the sun (bright circle) it does not move around my canvass because i don't see it but then i can see the directional of lights moving? Im using UE 4.7? Anyone can help?
Thanks, one question.. How can I share the blueprint? It take 5 mins to do this, yes I know.. but if I want to use it on other scenes or share it.. How would I go around that, thanks
I'm sure you already figured this out, but for future reference for others watching this. You can make a normal blueprint and include a lot of these things (such as sun etc). And then just drag that into a map, and just make sure to have a public variable for the skysphere and reference that in the new scene (unless you want to bundle that in as well with the blueprint, which you could do I suppose).
My sky just sets to sundown but nothing else is happening, help?
+YunaQQQQQ8 I have the same issue.
Milovanovic Bojan I fixed it though :)
However it was couple of days ago and my memory is like a gold fish.. >_>
but I THINK I just followed another video and it worked in the end
Why if the speed is slow, the night time gets infinite? If i set the speed to 10 its fine, but if I set it at like 8... the sun just stays at "midnight"... any idea how to fix this?
pozeidon31 There seems to be some kind of snap at 90 and -90... :/
Can ue4 read hour from computer and adapt the lighting?
Can we let the player choose the hour?
Can we rotate the sun?
Those are noobs questions sorry, trying to understand ue4
yes you can rotate the sun and change the hour of day. I am not sure how to go about getting the time info from the computer clock but I would think a good programer might be able to help you out with that. I would also look at"true sky" to replace the basic UE4 sky sphere for their awsome looking skys. There is eaven a ue4 version.
Nicolas Acosta I've subbed to their channel for the future, thanks a lot for your help :)
I Have 3 Problems:
1 -
When i Start My Game I Can't See The Sun
2-
Error Blueprint Runtime Error: Accessed None trying to read property Directional light actor from function: 'UpdateSunDirection' from node: Set Sun height in graph: UpdateSunDirection in object: BP_Sky_Sphere with description: 3-
3-
Accessed None trying to read property Directional light actor
Error Blueprint Runtime Error: Accessed None from function: 'UpdateSunDirection' from node: Set Vector Parameter Value in graph: UpdateSunDirection in object: BP_Sky_Sphere with description: Accessed None
what location do I put the sun at so that the game it starts at night?
Coordinates i mean
I don't think the coordinates are what you want. With sun/directional light, you can place it pretty much anywhere--it's usually the rotation that matters. Have you tried starting with the Sun/Light pointing directly upward?
M. Sims thank you.
Did it work?
M. Sims too lazy to test it rn im working on other things atm ill let you know though
great tutorial
I damn love your tutorials sub+ from me and if i may ask can u make a tutorial this will be in it just ow to make other skyboxes when the sun go down stars to be seen and when changing level the skybox to be changed with other skybox and awesome tuts man keep up !
+Braking Games Gamer you stole my picture
I have it from long time so u stole i from me boy
Braking Games Gamer right 😂
But what ever ;) happy gaming
Where can I get the sun?
The Weird Way 4.8.1 is missing items
Tesla you are a hero.
good video, thanks!
the sun in my level doesn't move.
try chanchin the connection float*float ----> x to float*float---->y (it worked for me)
yes it works on 4.15 with both float*float at x and y thank you
thx man ur the best :D
Has anyone created this in UE5? I am hitting some roadblock trying to match it up. Let me know! Thank you
ERROR