Day Night System | Events, Dial, Skyboxes and PostProcessing

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

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

  • @git-amend
    @git-amend  10 หลายเดือนก่อน +14

    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!

  • @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!

  • @Patricebrouh
    @Patricebrouh 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน +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 10 หลายเดือนก่อน

      @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 👆

  • @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!

  • @KuroUsagi1010
    @KuroUsagi1010 10 หลายเดือนก่อน +4

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

    • @git-amend
      @git-amend  10 หลายเดือนก่อน

      Awesome!

    • @barnhauz
      @barnhauz 10 หลายเดือนก่อน +1

      same

  • @Syvies
    @Syvies 2 หลายเดือนก่อน

    This channel is awesome, so many good videos!

    • @git-amend
      @git-amend  2 หลายเดือนก่อน

      Glad you think so!

  • @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!

  • @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!

  • @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?

  • @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!

  • @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!

  • @StratoCatster
    @StratoCatster 9 หลายเดือนก่อน

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

    • @git-amend
      @git-amend  9 หลายเดือนก่อน

      Thanks!

  • @Ironlionm4n
    @Ironlionm4n 10 หลายเดือนก่อน

    Simply the best!

    • @git-amend
      @git-amend  10 หลายเดือนก่อน +1

      Thank you!!

  • @AryanSingh-cw6ce
    @AryanSingh-cw6ce 10 หลายเดือนก่อน

    thanks man i really needed this right now..

    • @git-amend
      @git-amend  10 หลายเดือนก่อน +1

      Right on! Glad to hear that.

    • @AryanSingh-cw6ce
      @AryanSingh-cw6ce 10 หลายเดือนก่อน

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

  • @あれくす
    @あれくす 7 วันที่ผ่านมา

    How could we update the shader to move it so the clouds scroll across the sky to give a bit of a cloud moving effect? :) could you share please?

  • @aliimwan
    @aliimwan 3 หลายเดือนก่อน

    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?

  • @lee1davis1
    @lee1davis1 24 วันที่ผ่านมา

    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

  • @SuperTungbi
    @SuperTungbi 10 หลายเดือนก่อน

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

    • @git-amend
      @git-amend  10 หลายเดือนก่อน

      Haha! Thanks for the vote of confidence!

  • @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.

  • @komputerwolf
    @komputerwolf 10 หลายเดือนก่อน

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

    • @git-amend
      @git-amend  10 หลายเดือนก่อน

      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)
      th-cam.com/video/EFh7tniBqkk/w-d-xo.html

    • @komputerwolf
      @komputerwolf 9 หลายเดือนก่อน

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

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 10 หลายเดือนก่อน

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

    • @git-amend
      @git-amend  10 หลายเดือนก่อน +2

      Package development will be the subject of a future video.

    • @raphaeljaggerd3585
      @raphaeljaggerd3585 10 หลายเดือนก่อน

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

  • @kadircalloglu2848
    @kadircalloglu2848 8 หลายเดือนก่อน

    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.
      th-cam.com/video/EFh7tniBqkk/w-d-xo.html

  • @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.

  • @정동우-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.

  • @forbiddenbox
    @forbiddenbox 7 หลายเดือนก่อน

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

    • @git-amend
      @git-amend  7 หลายเดือนก่อน +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.

  • @damonfedorick
    @damonfedorick 10 หลายเดือนก่อน

    nice!

    • @git-amend
      @git-amend  10 หลายเดือนก่อน

      Thanks!

  • @TruckerJoeOfficial
    @TruckerJoeOfficial 23 วันที่ผ่านมา

    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?

  • @armyofchickens6062
    @armyofchickens6062 22 วันที่ผ่านมา

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

  • @peppeee24tdusc89
    @peppeee24tdusc89 หลายเดือนก่อน

    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?

  • @Fitz0fury
    @Fitz0fury 10 หลายเดือนก่อน

    Hmm. Coincidence again?

    • @git-amend
      @git-amend  10 หลายเดือนก่อน +1

      No such thing.