Unity 2D Scene Tutorial - Layers, lighting, post-processing, blur camera etc

Поділитися
Вставка
  • Опубліковано 27 лют 2023
  • #2dgames #unity #tutorial #postprocessing #art #devlog

КОМЕНТАРІ • 47

  • @Tudoran45
    @Tudoran45 Рік тому +7

    "it's very easy to forget stuff you've been working for a while. Especially after you moved on to something else" - literally my job rofl.
    Great video (wish I had something like this back in the Uni days :D )

    • @philip47478
      @philip47478  Рік тому

      Well it's never too late to start again :D

  • @fire8335
    @fire8335 10 місяців тому +1

    The best tutorial ever! I was always thinking on how to achieve this effect. Thanks a lot! ♥

    • @philip47478
      @philip47478  10 місяців тому

      Thanks :D glad it was helpful

  • @cesarsfalcao
    @cesarsfalcao 11 місяців тому +2

    Amazing tutorial, I learned a lot! Thanks!!

  • @starlitcastle
    @starlitcastle Рік тому

    Amazing, thank you for the video!

  • @yugam6578
    @yugam6578 Рік тому +1

    Great

  • @SMT-ks8yp
    @SMT-ks8yp 9 місяців тому +1

    The camera stack trick seems to not work for me. Lights get horribly displaced somehow. Also I'm using Cinemachine and it doesn't detect main camera if its render mask doesn't have Default layer.

  • @user-rl9zf1li7s
    @user-rl9zf1li7s Рік тому

    Really really amazing video !!! :-) I have a question related to the use of the blur effect with overlay camera. In your example you used just two overlay camera. Can you please explain me if is it possible to use more than two overlay cameras with the purpose to set different blur intensity to different background layers? Thank you a lot for sharing your knowledge.

    • @philip47478
      @philip47478  Рік тому +2

      I think you can follow the same process. First you create another folder containing all your assets, let's call it, Background 2 or something. Then assign it to another special layer, just like i did in the tutorial at 17:54. Then create another postprocess volume with a new profile and depth on field effect. An lastly another camera with overlay. All these need to be assigned on that special layer i mentioned above. Also dont forget the 18:23 section of the video. You follow the same steps but for a different camera. Hope it helps :D

  • @glimpsygames2734
    @glimpsygames2734 11 місяців тому

    You can use depth of field on URP materials, it works without rendering multiply cameras, you can have 4 layers of blur + more layers for blured forgrounds with Brokeh depth of field (doesn't work on transparent URP Material, only opaque)

    • @philip47478
      @philip47478  11 місяців тому +1

      That sounds very promising :D Do you have a tutorial or some sort of documentation on how to create such blur, without using multiple cameras?

    • @glimpsygames2734
      @glimpsygames2734 11 місяців тому

      @@philip47478 make game objests that have sprite renderers, put default URP material that has (opaque surface type) on the sprite renderes, make depth of field with brokeh mode, make the frocus distance around 8, 8 worked best for me, make the focal length at 300, and just change the z of each sprite renderer position, the more far away it is from the camera, the more blury it gets, also if it's too close to the camera, the sprite will be blury too, also make the camera perpspective

    • @glimpsygames2734
      @glimpsygames2734 11 місяців тому

      @@philip47478 I could make a tutorial, I have other channel called Create Gamez

    • @glimpsygames2734
      @glimpsygames2734 11 місяців тому

      @@philip47478 to smooth the edges, enable apha clipping on the URP material, and change its Threshold to something like 0.5, and also go to the main camera and change the Anti-aliasing to Fast Approximate Anti-aliasing (FXAA), you can enhance it more on URP settings (Project Settings > Quality > Render Pipeline Assets > Quality)

    • @glimpsygames2734
      @glimpsygames2734 11 місяців тому

      @@philip47478 also make the camera perspective

  • @rafaelblancoNET
    @rafaelblancoNET 4 місяці тому

    Thank you for this amazing tutorial. This comment is from Colombia. I have a question: Can we apply a volume to a camera that is positioned between two others, ensuring that it avoids affecting those behind the one with the volume?

    • @philip47478
      @philip47478  4 місяці тому +1

      I haven't tested that yet, but i guess it should be possible. I found this tutorial that addresses this to an extent. Hope it helps. Search for: "Unity 3D: How to Layer Post Process Effects Using Multiple Cameras"

    • @rafaelblancoNET
      @rafaelblancoNET 4 місяці тому

      @@philip47478 thanks! i watched it and i think it will help, thank you so much!

  • @editer7
    @editer7 Рік тому

    Hello. First of all, I'd like to thank you for making a good lecture.
    This lecture that delivers very important know-how very easily.
    I also figured this out while studying Blur in 2DURP.
    But the work I'm making needs to blur the foreground layer as well as the background.
    This method was finally not used to my project because the higher stacked volume also affects all the lower cameras.
    Do you have a solution in this problem?

    • @philip47478
      @philip47478  Рік тому

      Hmm for the moment i've been experiencing the same issue but i haven't been able to fix it yet. However for the project im working on, i had to blur the assets that come in the foreground in photoshop. It;s not the best solution maybe but it does work. I created a separate atlas containing all those assets and i simply blurred them all. Maybe it's a workaround for your project too?

  • @kirandonkada-el7ll
    @kirandonkada-el7ll Рік тому +1

    Great and can you make scenes like ori the blind forest game from start to finish

    • @philip47478
      @philip47478  Рік тому

      In the future i will make a video on how i construct my scenes, maybe the format will be even longer. For the moment though, i must focus on the main character, enemies Ai and design for the game.

  • @GeGugu-cx8ui
    @GeGugu-cx8ui Рік тому

    Thank you for your video! Unfortunately, I am experiencing an issue.
    I switched the ‘Depth of Field’ effect to ‘Color Adjustments’ and adjusted the ‘Hue Shift’. However, this effect applies to all cameras, regardless of how I set the layer, post-processing check, clear depth check or volume mask. The only workaround I found was to change my 2D Renderer to a Forward Renderer, but I don’t believe that’s suitable for a 2D project.
    Do you know of a proper way to fix this issue? Thank you!

    • @philip47478
      @philip47478  Рік тому +1

      Its been a while since i've played around with post processing and i don't have a clear answer . However the way i adjust colors for my game, especially for multiple background layers is to create multiple global light which only targets those specific layers. From there you could adjust the colors and luminosity for each particular layer.

    • @GeGugu-cx8ui
      @GeGugu-cx8ui Рік тому

      That’s a brilliant measure! Thank you for your kind reply :D

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

    I have a question soo when making a hole level we gonna do the same steps all over again? Doesn't that effect the game performance since we gonna put a lote of sprite and tiles?

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

      Not necessarily, there are ways to optimize the scene. 1.The sprites can be adjusted on 4k res scene, so you don't make them too big. (It did happen to me, i had trees that were almost exported twice the size of what they should have been)
      2. You can also fit them into atlases instead of exporting them individually.
      3.Unity has ways of not rendering all the sprites at once from the scene, but only the ones surrounding the player. I haven't tested this yet but there are some tutorials on that.

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

      @@philip47478 thank youuu very muchhhh 😊

  • @sergei8230t
    @sergei8230t 5 місяців тому

    awesome, but I tried to add blur to foreground camera layer only - it is impossible, blur applies to all back camera layers :/

    • @philip47478
      @philip47478  5 місяців тому +1

      For the moment i haven't managed to make it work either. In case i find a proper way to do it i will make a video surely. Until then for the foreground layer i use simple shapes which are already blurred in Photoshop.

    • @sergei8230t
      @sergei8230t 5 місяців тому

      @@philip47478 I also came to the same solution. Great video and thanks for the answer :)

  • @Oskar_DEV
    @Oskar_DEV 27 днів тому

    Can i download the the Ground you used in your video?

    • @philip47478
      @philip47478  25 днів тому

      all the assets used were created for the game i'm working on. Unfortunately they're not available for download.

    • @Oskar_DEV
      @Oskar_DEV 25 днів тому

      @@philip47478 ok i understand. I just want to say that this is really beautiful :)

    • @Oskar_DEV
      @Oskar_DEV 25 днів тому

      @@philip47478 ok i understand. I just want to say that this is really beautiful :)

    • @philip47478
      @philip47478  23 дні тому

      @@Oskar_DEV Thanks :D I also made 2d unity assets that can be found on unity asset store. See if that can be of interest maybe.

  • @glimpsygames2734
    @glimpsygames2734 11 місяців тому

    These overlay cameras are so bad on performance, I tested it, only 3 overlay cameras reduce FPS by 200 Frames, and they were rendering nothing, no post proccess

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

    Can i add motion blur in 2d unity?

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

      Yes i think you can, although i haven't tried that for myself yet. In postprocess should be a motion blur effect.

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

      @@philip47478 thank you so much, I want to use unity for video editing because I lost a challenge, do you think it's possible with the right work?

  • @TGo-eh8vk
    @TGo-eh8vk 3 місяці тому

    link for resource ?

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

      By resource you mean the unity demo scene?

  • @random_precision_software
    @random_precision_software 4 місяці тому

    You not doing any more videos? Just so I can subscribe or not.

    • @philip47478
      @philip47478  4 місяці тому +1

      Yes fell free to do that :D ...currently im working on a new Dev log with improved combat and new enemies. I hope in the future i can make another tutorial on level design and art, but i have to take one thing at the time.

    • @random_precision_software
      @random_precision_software 4 місяці тому

      @@philip47478 ok thanks, I've subbed.