Unreal Engine 4 Tutorial - Time Of Day

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

ความคิดเห็น • 74

  • @EspireMike
    @EspireMike 8 ปีที่แล้ว +21

    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!

    • @XxStonyCreekxX
      @XxStonyCreekxX 8 ปีที่แล้ว

      Thanks a lot!!!

    • @MegaMGstudios
      @MegaMGstudios 6 ปีที่แล้ว +1

      do you also know what to do for 4.20? since i dont see "Cast Static Shadows" anywhere

  • @goatgamingr
    @goatgamingr 10 ปีที่แล้ว

    Thanks tesla!
    I am a real noob when it comes to creating games but you are the best ue4 tutorial creator on youtube!

  • @jenniferwright6582
    @jenniferwright6582 7 ปีที่แล้ว +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.

  • @JamesGledhill
    @JamesGledhill 6 ปีที่แล้ว +1

    You My Friend Have Just Got Me a Distinction In College, Thank You Good Sir.

  • @brucey540
    @brucey540 10 ปีที่แล้ว +10

    Another great video. Any chance showing how to enable real-time GI or a moon to this scene?

  • @ImmersiveGamer83
    @ImmersiveGamer83 4 ปีที่แล้ว

    Really impressed, can follow along. Good pace and tone. Clear instructions. 5/5 from me.

  • @DeviousD91
    @DeviousD91 10 ปีที่แล้ว +4

    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?

  • @demonitgames
    @demonitgames 9 ปีที่แล้ว +8

    Well i just test this and its not working on latest build

  • @night-fall9156
    @night-fall9156 8 ปีที่แล้ว

    i never regret subscribing to u !! nice and simple thanks it helped me a lot

  • @jaredcfw
    @jaredcfw 10 ปีที่แล้ว +1

    Cool stuff. I think this tut will be very helpful quite soon. Thanks

  • @Sivxgamer
    @Sivxgamer 6 ปีที่แล้ว

    I think a delay loop instead of tick might be more efficient since event tick is like anti pattern.

  • @youssefnadir3246
    @youssefnadir3246 10 ปีที่แล้ว +3

    amazing job bro , can you do a tutorial about interior architecture lighting please ?
    thanks alot !

  • @BenjaminvonCramon
    @BenjaminvonCramon 2 ปีที่แล้ว

    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.

  • @zaferustuner
    @zaferustuner 6 ปีที่แล้ว +1

    Maybe unrelated . Now that I know how to make it night. How do you change the ground color/bottom part of the skysphere?

  • @dhananjaykupekar6892
    @dhananjaykupekar6892 4 ปีที่แล้ว

    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.

  • @MrStooriani
    @MrStooriani 10 ปีที่แล้ว

    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?

  • @virx7944
    @virx7944 3 ปีที่แล้ว

    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?

  • @GlitchJournal
    @GlitchJournal 10 ปีที่แล้ว +2

    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?

    • @ydrezende
      @ydrezende 10 ปีที่แล้ว

      Yes.

    • @GlitchJournal
      @GlitchJournal 10 ปีที่แล้ว

      how xD

    • @doctorpc1531
      @doctorpc1531 10 ปีที่แล้ว

      GlitchJournal maybe out the player to type their correct time in manually, which game then assumes is true?

  • @bobmartien
    @bobmartien 10 ปีที่แล้ว

    Cool tutorial !
    Btw can you tell me what is the "SET" node ?
    It's in the "Changing the Environment" part.
    Thanks Tesla Dev

  • @smallheartgame7272
    @smallheartgame7272 10 ปีที่แล้ว +1

    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?

    • @IngressBand
      @IngressBand 10 ปีที่แล้ว

      I ended up setting the landscape to cast shadows as a 2 sided material :) that fixed it for me

    • @smallheartgame7272
      @smallheartgame7272 10 ปีที่แล้ว

      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.

    • @IngressBand
      @IngressBand 10 ปีที่แล้ว

      If you've already made your day night cycle it should already

    • @Joeydevs
      @Joeydevs 10 ปีที่แล้ว +1

      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.

  • @robwillemse1
    @robwillemse1 8 ปีที่แล้ว

    And what if I want to use the real system time of day? Or even better for multiplayer purposes the real server system time?

  • @BigBossLucas
    @BigBossLucas 8 ปีที่แล้ว

    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?

  • @Emomilol1213
    @Emomilol1213 10 ปีที่แล้ว

    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

  • @powergannon
    @powergannon 10 ปีที่แล้ว

    I want to be able to set the exact time of day so that it matches up with my timeline events. Any suggestions?

  • @letsberealgaming4574
    @letsberealgaming4574 9 ปีที่แล้ว

    I've tried 4different tutorials but it still isn't working. Help Plz

  • @OriginalBloodAce
    @OriginalBloodAce 9 ปีที่แล้ว

    How do you get a skybox to move?

  • @Almajtek
    @Almajtek 10 ปีที่แล้ว

    hi, theres no Update Sun Direction in Unreal Engine 4.7 Preview 7

  • @leestoichkova
    @leestoichkova 6 ปีที่แล้ว +2

    I couldn't make it work, I tried a few times from the top but, nope. Help?

    • @curranh.8328
      @curranh.8328 5 ปีที่แล้ว +4

      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! :)

    • @shakaama
      @shakaama 5 ปีที่แล้ว +1

      @@curranh.8328 THIS THIS THIS THIS is the key right here 2019

    • @curranh.8328
      @curranh.8328 5 ปีที่แล้ว +1

      @@shakaama Glad it helped 😂

  • @pamjrstarted
    @pamjrstarted 9 ปีที่แล้ว

    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?

  • @Asmondien
    @Asmondien 10 ปีที่แล้ว

    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

    • @justeinr1
      @justeinr1 10 ปีที่แล้ว +1

      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).

  • @YunaQQQQQ8
    @YunaQQQQQ8 9 ปีที่แล้ว

    My sky just sets to sundown but nothing else is happening, help?

    • @MilovanovicBojan
      @MilovanovicBojan 9 ปีที่แล้ว

      +YunaQQQQQ8 I have the same issue.

    • @YunaQQQQQ8
      @YunaQQQQQ8 9 ปีที่แล้ว +1

      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

  • @pozeidon31
    @pozeidon31 9 ปีที่แล้ว

    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
      @pozeidon31 9 ปีที่แล้ว

      pozeidon31 There seems to be some kind of snap at 90 and -90... :/

  • @DavidBoura
    @DavidBoura 10 ปีที่แล้ว

    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

    • @nicolasacosta5024
      @nicolasacosta5024 10 ปีที่แล้ว

      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.

    • @DavidBoura
      @DavidBoura 10 ปีที่แล้ว

      Nicolas Acosta I've subbed to their channel for the future, thanks a lot for your help :)

  • @upsilondiesbackwards
    @upsilondiesbackwards 7 ปีที่แล้ว +1

    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

  • @fraydizs7302
    @fraydizs7302 8 ปีที่แล้ว

    what location do I put the sun at so that the game it starts at night?
    Coordinates i mean

    • @mwarrensims
      @mwarrensims 8 ปีที่แล้ว

      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?

    • @fraydizs7302
      @fraydizs7302 8 ปีที่แล้ว

      M. Sims thank you.

    • @mwarrensims
      @mwarrensims 8 ปีที่แล้ว

      Did it work?

    • @fraydizs7302
      @fraydizs7302 8 ปีที่แล้ว

      M. Sims too lazy to test it rn im working on other things atm ill let you know though

  • @PashaDefragzor
    @PashaDefragzor 10 ปีที่แล้ว

    great tutorial

  • @demonitgames
    @demonitgames 9 ปีที่แล้ว

    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 !

    • @FYBKai
      @FYBKai 9 ปีที่แล้ว

      +Braking Games Gamer you stole my picture

    • @demonitgames
      @demonitgames 9 ปีที่แล้ว

      I have it from long time so u stole i from me boy

    • @FYBKai
      @FYBKai 9 ปีที่แล้ว

      Braking Games Gamer right 😂

    • @demonitgames
      @demonitgames 9 ปีที่แล้ว +1

      But what ever ;) happy gaming

  • @useful_mike
    @useful_mike 9 ปีที่แล้ว

    Where can I get the sun?

    • @useful_mike
      @useful_mike 9 ปีที่แล้ว

      The Weird Way 4.8.1 is missing items

  • @KnickiLedger
    @KnickiLedger 8 ปีที่แล้ว

    Tesla you are a hero.

  • @pauloaguiar91
    @pauloaguiar91 10 ปีที่แล้ว

    good video, thanks!

  • @eptio9849
    @eptio9849 8 ปีที่แล้ว +2

    the sun in my level doesn't move.

    • @boudijnvanes2967
      @boudijnvanes2967 8 ปีที่แล้ว +13

      try chanchin the connection float*float ----> x to float*float---->y (it worked for me)

    • @wabachi
      @wabachi 8 ปีที่แล้ว

      yes it works on 4.15 with both float*float at x and y thank you

  • @nabilbrahem9433
    @nabilbrahem9433 10 ปีที่แล้ว

    thx man ur the best :D

  • @gallystops
    @gallystops ปีที่แล้ว

    Has anyone created this in UE5? I am hitting some roadblock trying to match it up. Let me know! Thank you

  • @mushfiq_iqbal
    @mushfiq_iqbal 8 ปีที่แล้ว

    ERROR