Creating an Outline Material in Unreal Engine 5

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.พ. 2023
  • Support us and gain access to the project files, early access to videos and more on my Patreon: / rogueentity
    Support, Share, Follow or just become a member of a Game Developer Community
    Discord: roguentity.wixsite.com/rogue-...
    Follow Twitter: / rogueentity2
    Please leave a Like if you found the video helpful and Subscribe for more.
    Thanks for watching!
    #UE5 #UnrealEngine5 #UE5Tutorial #UnrealEngine #GameDev #GameDevelopment
    ______________________________________________________________________
  • เกม

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

  • @sbruni64
    @sbruni64 10 วันที่ผ่านมา +1

    great tutoriel , Thank U so much

  • @kushnarovanatoli345
    @kushnarovanatoli345 7 หลายเดือนก่อน +1

    Very nice and very helpfull. Thank You!

  • @draicor
    @draicor 11 หลายเดือนก่อน +1

    Great tutorial mate, loved it.

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

    It worked on my spline meshes thanks !

  • @shadowstarjg8286
    @shadowstarjg8286 8 หลายเดือนก่อน +1

    works very well thanks

  • @AaOneRey
    @AaOneRey 8 หลายเดือนก่อน +1

    Thx for this tutorial!)

  • @shannenmr
    @shannenmr ปีที่แล้ว +3

    Sine you specifically call out 5.1 I would recommend looking into using the new Overlay Material feature built in, it will have to draw the mesh twice but using the draw distance setting helps negate that performance impact abit and it should be lower impact than post processing method

    • @rogueentitydev
      @rogueentitydev  ปีที่แล้ว +1

      I did not know abou that, thanks for the heads up I will check it out.

  • @saeedzamani1503
    @saeedzamani1503 5 วันที่ผ่านมา

    Thanks

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

    Great tutorial! Thank you for the follow up video as well. May I ask how do you improve the AA for the outline? I've tried adjusting in the project settings and also have the second component mask set to Green but the outline still isn't smooth.

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

      You probably need to change the blend to 'Before Translucency'. On the material result node find a setting called Blendable Location and set that. Should be a drop down with various settings one being 'Before Translucency'. Hope that sorts it for you.

    • @bryanisaac7091
      @bryanisaac7091 2 หลายเดือนก่อน +1

      @@rogueentitydev It works perfect! I set it as either Before Translucency or Before Tonemapping. Both gave different results but nevertheless I've got what I wanted. Thanks!

  • @g2theartist
    @g2theartist 9 หลายเดือนก่อน +2

    what shortcut did you use to get the 0 node at 5:50 ?

    • @rogueentitydev
      @rogueentitydev  9 หลายเดือนก่อน +1

      Hold '1' on keyboard and click.

  • @ozcanozteke284
    @ozcanozteke284 6 หลายเดือนก่อน +1

    Great tutorial, I love the outlines!
    Sorry if this might be a question that has been answered, but would there be any solution to make the outlines not visible through walls for example? I know I have to work with SceneTexture: SceneDepth, but I seem to be unable to make it work :/ Thanks!

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

      i need this too

    • @rogueentitydev
      @rogueentitydev  6 หลายเดือนก่อน +3

      I have a video for setting the color for the outline on my list to do next, I will include this fix, but I am pretty sure you just need to subtract the scenedepth from your customdepth either running it through several nodes like I had the custom depth or setup an IF node to not render it when its not 'on top'. If you need a hand prior to the vid @ me on my discord in the support channel and can work out a solution.

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

    Is it possible to animate this in Sequencer? Additionally, could you guide me on creating a pulse-like fade in and out effect with volume processing? I attempted to utilize the keyframe Blend Weight from 1 to 0, but it didn't yield the desired result. I'm struggling to achieve the fade effect using this method by volume proccess inside the sequencer."

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

      You probably want to add a time node to achieve a pulse effect. I believe I do this in the Move Marker material tutorial if you want to check that out and extract the pulse part. For animating you want to do it with material parameters I think. Adding what effect you need that way.

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

    Great video, thanks for sharing really appreciate !
    Here is the question 🤔 how can i make this outline material flashing while aiming to an actor with line trace ?
    Any suggestion or quick video tutorial on your free time would be amazing, thanks in advance 😌

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

      You just need to code it into the material and use a material parameter to enable/disable it which would be easy done if you get the reference to the material from the line trace. My next video (if I can find the time atm!) has an overlay material you could probably use with this effect, I might expand it to show how to do the param interaction actually. If you can't wait for it jump on Discord (link in vid desc) and I can help you out there.

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

    It is also see through my character. Do you have an idea for a solution? İt is nice to see it from behind the walls but not from my character

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

      Just off the top of my head there is a SceneTexture: Scene Depth node, you could try subtracting your result from that, might limit it, but otherwise I am not sure on that one sorry. I have a video on overlays coming which might be better for your case.

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

    Thank you. Is there a way to get the outline of a transparent object? I apply this to a transparent/translucent object and the effect stops working. Also is there a way to apply this to a 0% opacity material object?

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

      For 0% opacity I am pretty sure it wont work for anything less than 33%. For translucent objects try setting on material 'Allow Custom Depth Writes' to true. Not 100% that will work but worth a shot, don't have anything to test that on right now.

    • @rogueentitydev
      @rogueentitydev  5 หลายเดือนก่อน +1

      33% is just the default, there is a setting 'Opacity Mask Clip Value' , set that to 0 should be right for opacity 0 objects.

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

      th-cam.com/video/XAIcZLwjdJI/w-d-xo.html

  • @noisyether9211
    @noisyether9211 9 หลายเดือนก่อน +3

    For some reason.The whole screen turn red or wahat ever color I choose.The outline doesn't work.UE5.1

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

      That is an interesting bug, I am sure we could figure it out but I would need more information on what you have, if you are keen to fix it jump on the discord and @suits in the #support channel.

  • @Exovize
    @Exovize 4 วันที่ผ่านมา

    What shortcut did you use at 3:41?

    • @rogueentitydev
      @rogueentitydev  4 วันที่ผ่านมา

      Hold S and LeftClick - Create Scalar Param

  • @skioppinovero
    @skioppinovero ปีที่แล้ว

    When i create a new material I am not able to extend the “new material” window in the event graph, I just see the name, but not “base color” “metalic” “specular”….pls help😵

    • @rogueentitydev
      @rogueentitydev  ปีที่แล้ว

      hmm that sounds odd, you are referring to the New Material Node yeah. If you click on it is the Material Domain, Blend Mode and Shading Model settings all set in the Details panel? Those settings will control what is displayed on the node itself.
      If you can join the Discord be happy to help further, can at least show use some screenshots then.

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

    what can i add to remove the outliner view across the walls?

    • @rogueentitydev
      @rogueentitydev  5 หลายเดือนก่อน +1

      You need to check if your SceneDepth > CustomDepth. If you run it through a if node connecting SceneDepth to A, CustomDepth to B, PostProcessInput to AB should fix the seeing through all objects. Any issues ping me on Discord and I will send a pic of a setup.

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

    Hi, why can't I get this gradient in preview? 7:04

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

      I am not sure, but I dont think that will be a reliable thing for whether or not the material is working or not, I would not worry about that.

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

    Is there a way to make where you cant see the outline behind walls?

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

      If you setup the material with the method shown in the colors tutorial this should solve your issue.
      th-cam.com/video/plMGQI5N1Co/w-d-xo.htmlsi=E3fdb6DVA9RdPYHR

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

      If you dont need the different colors just skip that part.

  • @jegantdragoch.7088
    @jegantdragoch.7088 5 หลายเดือนก่อน

    does this work if i want to do black outlines similar to toon shaders but just a different way?

    • @rogueentitydev
      @rogueentitydev  5 หลายเดือนก่อน +1

      Yeah, you can do any color, see the follow up vid on setting separate colors for separate instances also.

    • @jegantdragoch.7088
      @jegantdragoch.7088 5 หลายเดือนก่อน

      @@rogueentitydev yes it works - wondering if there's a way to control the thickness for objects far away because it seems everything in the scene is the same line thickness. did see a different longer tutorial but will only have time tmr to try it out if that works.

    • @rogueentitydev
      @rogueentitydev  5 หลายเดือนก่อน +1

      @@jegantdragoch.7088 could def control that, if i get some time I will look into it

    • @jegantdragoch.7088
      @jegantdragoch.7088 5 หลายเดือนก่อน

      @@rogueentitydev thank you thank you

    • @rogueentitydev
      @rogueentitydev  5 หลายเดือนก่อน +1

      Got this working, if you add a custom depth node, divide color output by 1024 (or some distance value), divide that by line width, and plug it into where the current line width is should work right. If you want a pic of it ping me on discord.

  • @nerevar48
    @nerevar48 ปีที่แล้ว

    won't this intersect with the fog of war in the future?

    • @rogueentitydev
      @rogueentitydev  ปีที่แล้ว

      I guess that will depend on the fog of war implementation. Although I plan to implement it I have not done it before so I could not say. Potentially the new method in 5.1 for outlines might help with this issue as it does not use the post process method.

    • @nerevar48
      @nerevar48 ปีที่แล้ว

      @@rogueentitydev the new stroke method does not only outline the edges, but also outline all the bulges of misha (it does not look like when post-processing)

  • @oculusidirisov6981
    @oculusidirisov6981 8 หลายเดือนก่อน +1

    does not work on transparent glass please help

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

      Are you using a post process material to make the glass transparent?

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

      Going to be slow help through comments, if you are still stuck on this jump on the discord, link in the video description or top of the TH-cam page.

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

      Transparency Setup
      th-cam.com/video/plMGQI5N1Co/w-d-xo.html

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

    Follow up tutorials: th-cam.com/video/XAIcZLwjdJI/w-d-xo.html

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

    But why the keyboard shortcut? You don't even say at one point which shortcut are you using. This is a problem for people who are not practical with materials. This is a common error you all do when you make tutorials. Going at speed 10x, and presuming that people knows already well something. The only possible outcome that could happen: After spending a lot of time, this doesn't work. Going for the next guy tutorial. Thanks for making me lose an hour.

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

      Not every tutorial can be aimed at the beginner level I'm afraid, did my best to mention what shortcuts I was using. I think you have the right method going though, keep doing tutorials from different places and things will come together. Good luck!

    • @VL4DST3R
      @VL4DST3R 8 หลายเดือนก่อน +4

      If this is 10x speed for you then i shudder to think how you can flip pages in a book- it must be insanely disorienting. He was very slow paced throughout, nevermind explaining every step of the way, and keyboard shortcuts can be looked up with a quick google search. Noticing (correctly) that most creators use them should tell you that you need to familiarize yourself with them as well.

    • @kamasireborn
      @kamasireborn 7 หลายเดือนก่อน +2

      TH-camrs do that to help us, in my opinion, we should be gratefull and if we don't like the way they explain stuff then look somewhere else. But eventually you will have to learn all the shortcuts.

    • @ricardogabrielcamacho6795
      @ricardogabrielcamacho6795 5 หลายเดือนก่อน +1

      he only uses s shortcut and 1 shortcut