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

#2dgames #unity #tutorial #postprocessing #art #devlog

Пікірлер: 48

  • @Tudoran45
    @Tudoran45 Жыл бұрын

    "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
    @fire833511 ай бұрын

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

  • @philip47478

    @philip47478

    11 ай бұрын

    Thanks :D glad it was helpful

  • @cesarsfalcao
    @cesarsfalcao Жыл бұрын

    Amazing tutorial, I learned a lot! Thanks!!

  • @starlitcastle
    @starlitcastle Жыл бұрын

    Amazing, thank you for the video!

  • @philip47478

    @philip47478

    Жыл бұрын

    Glad you enjoyed it 😁

  • @yugam6578
    @yugam6578 Жыл бұрын

    Great

  • @SMT-ks8yp
    @SMT-ks8yp11 ай бұрын

    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.

  • @glimpsygames2734
    @glimpsygames2734 Жыл бұрын

    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

    Жыл бұрын

    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

    Жыл бұрын

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

    Жыл бұрын

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

  • @glimpsygames2734

    @glimpsygames2734

    Жыл бұрын

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

    Жыл бұрын

    @@philip47478 also make the camera perspective

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

    Жыл бұрын

    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

  • @rafaelblancoNET
    @rafaelblancoNET6 ай бұрын

    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

    6 ай бұрын

    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

    6 ай бұрын

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

  • @kirandonkada-el7ll
    @kirandonkada-el7ll Жыл бұрын

    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.

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

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

    Жыл бұрын

    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
    @sosonena12383 ай бұрын

    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

    3 ай бұрын

    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

    3 ай бұрын

    @@philip47478 thank youuu very muchhhh 😊

  • @sergei8230t
    @sergei8230t6 ай бұрын

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

  • @philip47478

    @philip47478

    6 ай бұрын

    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

    6 ай бұрын

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

  • @glimpsygames2734
    @glimpsygames2734 Жыл бұрын

    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
    @supermaario74829 ай бұрын

    Can i add motion blur in 2d unity?

  • @philip47478

    @philip47478

    9 ай бұрын

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

  • @supermaario7482

    @supermaario7482

    9 ай бұрын

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

  • @schnex
    @schnex2 ай бұрын

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

  • @philip47478

    @philip47478

    2 ай бұрын

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

  • @schnex

    @schnex

    2 ай бұрын

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

  • @schnex

    @schnex

    2 ай бұрын

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

  • @philip47478

    @philip47478

    2 ай бұрын

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

  • @random_precision_software
    @random_precision_software5 ай бұрын

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

  • @philip47478

    @philip47478

    5 ай бұрын

    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

    5 ай бұрын

    @@philip47478 ok thanks, I've subbed.

  • @TGo-eh8vk
    @TGo-eh8vk4 ай бұрын

    link for resource ?

  • @philip47478

    @philip47478

    4 ай бұрын

    By resource you mean the unity demo scene?

  • @heohfsteven

    @heohfsteven

    5 күн бұрын

    @@philip47478 yes,the style of art looks great , where can I buy it? or can be found in unitystore?