AMAZING Free OUTLINE for URP (Screen Space Outline Unity)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys it's matt welcome to speed tutor and today we're going to be looking at a urp based outline shader which uses screen space outlines to do the effect and it uses the render pipeline asset to do it you can add a little component set some layers and create the outlines that you want and do be sure to check out all the links in descriptions for all the best savings in game dev unity for this month and check out my patreon to get access to over 115 different scripts assets and projects so a big shout out to robin siebold and i apologize if that's not the way that you pronounce his name because i'm terrible at that he's got a video on his youtube showing you how to create it which is beautifully edited and you can also check him out on twitter and i'll put all the links below and we're going to take a look at the asset that he's created which you can get hold on github and we'll look at the setting up today on what you can use it to achieve so if you navigate to the link in the description which is his unity urp outlines you can see his github page and it's got some basic setup but there's some key things that you need to remember but of course if you've got any ways to make this better do comment down below at the top here where it says code we can just click to download the zip and make sure you download the zip wherever you want and then once you've got that you can right click the outline folder and just extract into the place that you've got so we can just then copy all of these assets that we need for the outline with the license and otherwise and i've got brand new urp scene in unity 2021.3.4 i'm just going to right click and show an explorer i'm going to open the assets folder and i'm just going to paste the outlines and the license in it will add the scripts for us so we need to find the urp settings so whichever render are you using so i'm using the high fidelity which is by default you need to make sure that you enable a depth texture or this effect won't be able to work and it's best to turn off msaa in the rendering of the urp asset now if we click on the main urp high fidelity renderer or whichever one you're using you can click the drop down to add a new render effect and you can say we want to add screen space outlines then we get a bunch of settings here now we want to change this slightly so that i want my two things and it's based on layers so i want these two objects these two particular characters to be have a layer so they can be seen so i'm gonna add a new layer and i'm just gonna call this layer outlined so when i select these everything with the outlined will have an outline and then i'm going to go to the props and i'm going to add another layer and call this no outline and then when i go to my props i've added no outline on these now if we go back to the high fidelity renderer we need to make sure that it's on rendering after opaque so we'll have an issue then we can look at the outlines mask it can be outlined so we only want to actually outline the ones on a specific layer and then i don't want to outline the ones that i want to include then we've got a bunch of settings that we can set and what i could do is i'm going to set this to red just so we can see it nice and easily now on the rendering at the top where you've got the forward rendering path put the depth priming mode on auto now we do start getting the outline around all the objects and you can see that there's we can set the outline scale but we're getting some of the other geometry that we don't want now i don't know if this is a particular issue and maybe somebody can mention to them this to me otherwise but the thing is when you if you drop down on the view space normals and set the background alpha color to zero we don't get any more issues with the actual rendering of an outline on other objects that are not in the particular layer so everything on that other layer will not be rendered and of course we can still affect the settings so the thickness of this we can change the color as i mentioned however that you want that to be you can select the depth threshold so how far away that it would render you can set normal thresholds so how because this effect is based on finding where the normals would be on a particular object and then creating the outline based on that so you can set that the angle threshold and other settings within there but as you can see i can grab a particular asset and put it through the floor and you can see that the effect isn't rendered on the outline and there is certain settings that you can adjust to make this happen so if we put the background color back to full and we push the character under the floor and then we go back to the background color again and set that either to white or another color we can see that the character is rendered through the floor but we get a big mishmash of the whole environment now if you set the depth texture all the way up and then adjust the robert cross multiplier all the way down to the bottom you can actually have the effect and you could even set it to white here and you would get the full effect of rendering through geometry now i don't know if this way is performing or the best way but it's just a couple of examples where you can choose different so if you need to render the geometry through other pieces you still get the outline no matter what you're doing so i hope this outline effect helps you out and you check it out mess around with the settings post down in the comments what you find and if you find any issues fixes and be sure to post on robin's github if you find any problems or any fixes specifically if any issues and do let me know about performance but i wanted to show everybody this because i think it's a really nice thing to get straight into for a really quick free outline for urp so big thanks to robin and do be sure to check out my patreon to get access to over 150 different scripts assets and projects you cannot find anywhere else do come and check out my great assets on the unity asset store the massive discounts on all my great assets come and join the discord to have a chat with everybody there and a big thank you to all my patrons including peter steiner hogland naigan raheem whitaker jean palmier manosperocast terence conrad cage lindsen walter dunson joseph newman rennie leisure tougher chambers krishna khalil christian selling benjamin shankle alex shen elissa faden daniel ghetto junk lebron's steven mormon and rob winkle and everybody else who comes to watch the video thank you so much for watching don't forget to like comment and subscribe cheers
Info
Channel: SpeedTutor
Views: 32,000
Rating: undefined out of 5
Keywords: unity3d, unity3D, unity3d tutorials, create a game in unity, 3d game design unity
Id: VpIIFdwTKyQ
Channel Id: undefined
Length: 6min 0sec (360 seconds)
Published: Sat Aug 13 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.