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

  Рет қаралды 16,698

Philip Paul

Philip Paul

Жыл бұрын

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

Пікірлер: 47
@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
@fire8335 10 ай бұрын
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 ай бұрын
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-ks8yp 9 ай бұрын
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 Жыл бұрын
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 ай бұрын
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 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
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 ай бұрын
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 28 күн бұрын
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 ай бұрын
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.
Using URP in Unity to make our Unity 2d Scenes Vibrant
10:20
Game Dev By Kaupenjoe
Рет қаралды 2,1 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,2 МЛН
He tried to save his parking spot, instant karma
00:28
Zach King
Рет қаралды 23 МЛН
Купили айфон для собачки #shorts #iribaby
00:31
Technique for Creating Beautiful Level Design
11:48
Pixel Architect
Рет қаралды 815 М.
Realistic 2D Lights & Shadows in Unity
11:28
Willy Dev
Рет қаралды 45 М.
How I published my first game at 16 years old.
12:35
Strudel Studio
Рет қаралды 4,4 М.
Trapping An Electron In a Box
9:46
The Action Lab
Рет қаралды 36 М.
MAKE ART FOR INDIE GAMES - Twilight Monk (Icy Caverns)
13:03
Trent Kaniuga
Рет қаралды 59 М.
Tips and Tricks For Better Level Setup in Unity
21:36
Lost Relic Games
Рет қаралды 48 М.
Creating the ART style for my game - DevLog Ep2
6:23
Philip Paul
Рет қаралды 14 М.
Unlocking The Power Of Unity's Scriptable Render Pipeline
21:05
Game Dev Guide
Рет қаралды 188 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,2 МЛН