Day Night System | Events, Dial, Skyboxes and PostProcessing

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 65

  • @git-amend
    @git-amend  9 місяців тому +13

    Hi everyone! All code from today's video, including the simple blend shader is available, link in the description! 👍 What kind of game are you building that needs a Day/Night system?

    • @blazingpotato642
      @blazingpotato642 9 місяців тому +1

      I was working on a day night cycle for a 2d game similar to altos adventures a couple of months back. My approach was pretty basic. spotlights (sun and moon) rotating and changing their and global light colour and intensity. I’m gonna refer to this when I tweak that project again. Thanks for posting this!

    • @git-amend
      @git-amend  9 місяців тому

      @@blazingpotato642 Great, thanks!

  • @Patricebrouh
    @Patricebrouh 9 місяців тому +3

    We are lucky to have you. Thank you so much. Please don't forget player controller (when camera doesn't follow player when he jumps)

    • @git-amend
      @git-amend  9 місяців тому +1

      You are welcome. I thought my previous answer about the camera answered your question about the controller? Do you still need clarification?

    • @Patricebrouh
      @Patricebrouh 9 місяців тому

      @git-amend It helps me too much. The only problem I have is when model sometimes lands on something after jumping (a car for instance). In this case, model position must become the entire player position. That's the situation when I have a little problem.

    • @blazingpotato642
      @blazingpotato642 9 місяців тому

      sharing a screen rec. might be helpful

    • @blazingpotato642
      @blazingpotato642 9 місяців тому

      @@Patricebrouhsry forgot to tag 👆

  • @Legionope
    @Legionope 8 місяців тому +4

    Your style of coding is really professional. I really appreciate this content.

    • @git-amend
      @git-amend  8 місяців тому +1

      I appreciate that! Thank you!

  • @KuroUsagi1010
    @KuroUsagi1010 9 місяців тому +4

    OH, Im trying to build this one. what a perfect timing

  • @TheKr0ckeR
    @TheKr0ckeR 9 місяців тому

    Incredible tutorial! All the stuff about calculating the sun rotation & time etc. is really priceless.

    • @git-amend
      @git-amend  9 місяців тому

      Glad you enjoyed it!

  • @mutlugameofhalit
    @mutlugameofhalit Місяць тому +1

    great tutorial but for complete rookies could you pls give more details about post processing, lights and other stuff in this kind of tutorials? I really like you man, you are a professional!

    • @mutlugameofhalit
      @mutlugameofhalit Місяць тому

      for instance, I didn't see the Moon light in the video, so how can I implement this?

  • @Syvies
    @Syvies 2 місяці тому

    This channel is awesome, so many good videos!

    • @git-amend
      @git-amend  2 місяці тому

      Glad you think so!

  • @Hoptronics
    @Hoptronics 3 місяці тому

    This is great stuff. Ill be converting my system over to use some if these techniques. I downloaded a few years of historical weather data. I use it to change my shader parameters for clouds and water objects as well as the sun's rotation. Lots left to implement.

    • @git-amend
      @git-amend  3 місяці тому

      Nice! Working with historical data is always fun!

  • @nixonscherbarth1974
    @nixonscherbarth1974 9 місяців тому

    Hi Amend, thank you so much for the content you provide us. I started doing a lot in Unreal because I felt like I got kind of stuck at some point in Unity. All of my friends do Unreal and Unreal has got a big Udemy Creator called Stephen Ullibari, hes top notch and adds value to the lack of good Video-Documentation in Unreal. I always liked Unity more than Unreal for some reason so I went back to Unity. Sow I went back into Unity and continued where I stopped, did some Multiplayer courses and also stuff for my University (I am studying Game Design & Management). But I always felt like Unity has great Video-Documentation, but this really stops after the beginner level I feel like. To not make this any longer, when I discovered you I finally got the needed motivation, you are like Unity's Stephen Ullibarri now! If you had a paid course, I would buy it, no matter the cost.

    • @git-amend
      @git-amend  9 місяців тому

      Thanks for the comment, I appreciate that! I'd never heard of Stephen Ullibari, I'll have to look him up. Cheers!

  • @alif-fgd
    @alif-fgd 9 місяців тому

    Great tutorial! Going to use it as a base for a more complex system with day/month/season. Thanks a lot!

    • @git-amend
      @git-amend  9 місяців тому

      Nice, that's what I like to hear!

  • @Snatxi
    @Snatxi 9 місяців тому

    You definitely are a hidden gem! your tutorials are incredibly insightful! i'm definitely subbing

    • @git-amend
      @git-amend  9 місяців тому

      Awesome, thank you!

  • @StratoCatster
    @StratoCatster 9 місяців тому

    A simple and lightweight system, but very strong cohesion of components =)

  • @AryanSingh-cw6ce
    @AryanSingh-cw6ce 9 місяців тому

    thanks man i really needed this right now..

    • @git-amend
      @git-amend  9 місяців тому +1

      Right on! Glad to hear that.

    • @AryanSingh-cw6ce
      @AryanSingh-cw6ce 9 місяців тому

      @@git-amend well if it's not too much to ask can you tell
      (1. Can you tell the blending of shaders,
      2. In Genshin Impact in day skybox the clouds are kind of distorting , a wind effect on skybox
      3. Procedural Sun or moon over a custom skybox (not using default procedural skybox)
      )
      P.S. Your video help me alot in my programming journey specially the programing pattern playlist.

  • @valhallagalex
    @valhallagalex 9 місяців тому +1

    You've done a lot of videos of design patterns and those are very interesting and well received, but are you interested / looking at doing some videos on game architecture? as in, how those patterns might combine together to make a coherent product, because just displayed in a void is great for learning a specific new concept but not its practical usage.

    • @git-amend
      @git-amend  9 місяців тому +1

      As the channel grows, we'll begin to explore game architecture more.

  • @Ironlionm4n
    @Ironlionm4n 9 місяців тому

    Simply the best!

  • @aleksapetrovic7088
    @aleksapetrovic7088 9 місяців тому

    Hey Adam, not related to the current topic but rather to another one you did a few months back - Dependency Injection. Is there a possibility you would look into the 'Reflex' DI Framework? I hear it's a lot better than Zenject and Zenjects many forks? There's an active community on discord and this seems to be one of the rare frameworks still being maintained.
    I have a trouble completely understanding this slightly more advanced topic and I can't really follow through the steps of setting up that framework nicely and thinking of concrete examples where I could implement this for practice. You are really good at these tutorials and make things as clear as they possibly can be, the rest is up to us. Thanks!

    • @git-amend
      @git-amend  9 місяців тому +1

      That's a very interesting suggestion. I'll give it some thought, cheers!

    • @aleksapetrovic7088
      @aleksapetrovic7088 9 місяців тому

      @@git-amend Thanks, keep up the good work.

  • @aliimwan
    @aliimwan 2 місяці тому

    hello i wanted to ask if im missing something. Because we never rotated the moon and also never handled the enable or disable between moon and sun. How would i rotate it?

  • @정동우-n2x
    @정동우-n2x 9 місяців тому

    Sir, the lecture is really good. Do you have any thoughts on teaching the skill tree system of RPG?!

    • @git-amend
      @git-amend  9 місяців тому +1

      I have thought about it, one day I’ll do something like that.

    • @정동우-n2x
      @정동우-n2x 9 місяців тому

      @@git-amend The reason I think this is a good example is that it uses data structure like item inventory, so it's difficult for beginners like me.
      I'm in my first year of coding, I'll implement the inventory to some extent, but using skill trees and skills is too difficult.
      I've rarely seen anyone as good at coding Unity as you (
      I really learn a lot from watching your implementation, and I think it would be nice if you could do this.
      I really respect you.

  • @lee1davis1
    @lee1davis1 14 днів тому

    I noticed you had no settings for ambient light. This is the problem I am having. If I set my Sun angle to >10 degrees, unity auto assigns the ambient light correctly. But if I set my Sun angle

  • @komputerwolf
    @komputerwolf 9 місяців тому

    great tutorial! Are those icons on the objects in the hierarchy from an asset or just a unity 2023 feature?

    • @git-amend
      @git-amend  9 місяців тому

      It's not a built in feature, but there is a free Asset on the store that will do it:
      assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963
      And also if you want to create your own, Warped Imagination has a great tutorial about it, which I recommend watching (even if you just want to customize the Asset above)
      ua-cam.com/video/EFh7tniBqkk/v-deo.html

    • @komputerwolf
      @komputerwolf 9 місяців тому

      ah cool, thanks a lot! @@git-amend

  • @kadircalloglu2848
    @kadircalloglu2848 7 місяців тому

    Nice tutorial btw but shadows are little bit weird how can we calculate that or manipulate them

  • @tboxfinn
    @tboxfinn 9 місяців тому

    which package do you use for the icons on the hierarchy?

    • @git-amend
      @git-amend  9 місяців тому

      There's a link in the description, but if you want to create your own, Warped Imagination has a great tutorial about it, which I recommend.
      ua-cam.com/video/EFh7tniBqkk/v-deo.html

  • @SuperTungbi
    @SuperTungbi 9 місяців тому

    Like first, cause i know it will be good content 🎉

    • @git-amend
      @git-amend  9 місяців тому

      Haha! Thanks for the vote of confidence!

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 9 місяців тому

    How would i make these systems modular and reusable to make a personal package of sorts?

    • @git-amend
      @git-amend  9 місяців тому +2

      Package development will be the subject of a future video.

    • @raphaeljaggerd3585
      @raphaeljaggerd3585 9 місяців тому

      Can't wait. Thank you.@@git-amend

  • @damonfedorick
    @damonfedorick 9 місяців тому

    nice!

  • @forbiddenbox
    @forbiddenbox 6 місяців тому

    Question: can you explain why you didn't just use UnityEvent

    • @git-amend
      @git-amend  6 місяців тому +2

      I'd have to watch this again to remember why I made any kind of implementation choice, but the answer likely is that I would only ever use a UnityEvent if I needed to configure something in the Editor. I will always default to the simplest and usually the most performant option, which means I will always prefer a C# Event over a UnityEvent.

  • @TruckerJoeOfficial
    @TruckerJoeOfficial 13 днів тому

    Thank you for this great Tutorial! My shadows are flickering while my sun is moving. Do you have any idea what can be the reason for this?

  • @peppeee24tdusc89
    @peppeee24tdusc89 26 днів тому

    Hey, hi! Great video! In the video, you didn't mention the moon settings, and in the code, you didn't touch them either. What should we do with them?

  • @armyofchickens6062
    @armyofchickens6062 13 днів тому

    How would you go about turning the day night cycle as a whole into a prefab?

  • @Fitz0fury
    @Fitz0fury 9 місяців тому

    Hmm. Coincidence again?

    • @git-amend
      @git-amend  9 місяців тому +1

      No such thing.