How to make and use Outlines in 3D | Godot

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 22

  • @octodemy
    @octodemy  12 дней назад +1

    To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/Octodemy . You’ll also get 20% off an annual premium subscription.

  • @kinenan8942
    @kinenan8942 9 дней назад +2

    Excellent tutorial 🎉

  • @gim-ori
    @gim-ori 12 дней назад +1

    woooow amazing!

  • @schovan
    @schovan 9 дней назад

    Very good tutorial! Unfortunately I have a problem with created collision shapes. When I play an animation, some of them do not follow the animation, usually for meshes, that are not attached to any bone like Knight_Body, Knight_Head, but for example Knight_Helmet and Knight_Cape work correctly. Do you know, how to solve it?

  • @randomjimbitz512
    @randomjimbitz512 5 дней назад +1

    youre my Godot hero toady... +1 Sub... well done.. been looking for this exact thing for months...

    • @octodemy
      @octodemy  5 дней назад

      Glad you liked it :)
      Whenever Godot finally lets us change the stencil buffer I'll make another video to show how to make truly perfect outlines.
      But for now, that's the best we can get.

    • @randomjimbitz512
      @randomjimbitz512 4 дня назад +1

      @@octodemy Yeah man... this is far better than I could do ... but the seeing behind objects was my big thing...
      kind of feel silly trying all these complicated things when it is a no code solution 🤦‍♂ lol
      also I thought the stencil thing was supposed to be a 4.0 release?

    • @octodemy
      @octodemy  4 дня назад

      @randomjimbitz512 It was started last year and was supposed to enter on 4.2 but was delayed is it still needed to sort some issues.
      The biggest issue is that there is a problem with the rendering order so they were waiting for the RenderingCompositor to be made first to solve this issue in the correct way.
      But its been a long while and there is still a lot of discussion about that one too.
      At least the changes are approved for a while, so it will be in godot in the future.
      Here's the stencil PR: github.com/godotengine/godot/pull/80710
      And as it seems the RenderingCompositor will atill take a while, the latest news is this:
      "We discussed stencil in the rendering meetings, and we're converging towards the idea of integrating stencils in 4.4, with different limitation depending on whether opaque subpasses were implemented in this release, or not. Please take all of this with a grain of salt, this is a wishlist and not a plan."
      So I guess we can hope for stencils in 4.4
      PS: If you found xrays easy now, just look at what it'll be after this PR lol: github.com/godotengine/godot/pull/80710#issuecomment-1863701986

  • @randomjimbitz512
    @randomjimbitz512 3 дня назад

    Hey can you do a good mini map tutorial? Please and thanks :D

  • @chaosmachines934
    @chaosmachines934 12 дней назад +2

    this is useful

    • @octodemy
      @octodemy  11 дней назад +1

      Glad to hear that.
      I originally only wanted to make a small video about making the material outlines without code...
      But one thing let to another and.... you have this video.

    • @chaosmachines934
      @chaosmachines934 11 дней назад

      @@octodemy UM i was going to ask its there a way to make an outline diablo 2 style on a 3d object
      or do the objects have to be 1 big object .

  • @tjspeirs75
    @tjspeirs75 12 дней назад +1

    brilliant video, instant save!

    • @octodemy
      @octodemy  11 дней назад

      Glad you liked it :)

  • @mamba3357
    @mamba3357 10 дней назад +1

    Broo this is amazing

    • @octodemy
      @octodemy  9 дней назад

      Glad you liked it. :)

  • @jafarrolo
    @jafarrolo 12 дней назад

    Since I worked on it recently, I would add also an outline done through a compositor effect.

    • @alapidis
      @alapidis 12 дней назад

      Got some info on that? I'd love to check it out.

    • @jafarrolo
      @jafarrolo 11 дней назад

      @@alapidis I have links to other youtubers eventually, I learned by watching this one the basics: ruclips.net/video/Ov0LcLjmKX8/видео.htmlsi=xPQUbBeMU_pFeAJb (you can probably see some of my comments under that one) and then integrated it with an outline shader that was done with "the old way", before Godot 4.3 that implemented compositor effects, in which you put a mesh in front of the camera and filter it through the mesh.

    • @octodemy
      @octodemy  11 дней назад

      I was going to briefly comment that this existed but I guess I forgot about it.
      Post-effect outlines are a beast of its own, so it'd be a bit too long if I included that here. (And I'm still quite a beginner with shaders)
      I haven't seen a compositorEffect outlines shader yet(haven't really looked for it),
      but I guess it would not be hard to adapt one from the classic gdshader to glsl.
      @alapidis, the keyword you want here is 'edge detection'
      Post-effect outline shaders are made by using the depth buffer and edge detection algorithms to create and create the outlines.
      It might be a bit complicated to make your own shader if you don't have shader experience.
      But there are a lot of good outline post-effect shaders in shadertoy and godotshaders that you can use for reference and change it to suit your needs.
      It has its advantages and disadvantages too.
      For one, you can't outline single objects easily. You put outlines in everything on the screen.
      So its often used to give add to the graphics style instead of using it for gameplay.

  • @CharleyDonar
    @CharleyDonar 12 дней назад +1

    THANK YOU!

    • @octodemy
      @octodemy  11 дней назад

      Happy to see you liked it :)