Unity Shader Graph - Intersection Effect Tutorial

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 57

  • @GabrielAguiarProd
    @GabrielAguiarProd  Рік тому +6

    How many times do I say "depth"? 🤔
    Here's what can be done with this, a Terrain Scanner: ua-cam.com/video/9DshpqhKDz0/v-deo.html
    Here's some resources I collected while doing this video:
    Scene Depth: docs.unity3d.com/Packages/com.unity.shadergraph@6.9/manual/Scene-Depth-Node.html
    Screen Position: docs.unity3d.com/Packages/com.unity.shadergraph@6.9/manual/Screen-Position-Node.html
    Eye Space: forum.unity.com/threads/what-is-eye-space-in-unity-shaders-nb-its-not-view-space.797775/
    Scene Depth Explanation: www.reddit.com/r/Unity3D/comments/jqpvx4/an_explanation_of_the_scene_depth_node/

  • @kumorikuma
    @kumorikuma 8 місяців тому +1

    You are the VFX GOAT. You're helping make my game jam project come to life! tysm

  • @Eacaw
    @Eacaw Рік тому +9

    Just the effect I wanted to learn more about for a current project, thanks! Keep up the awesome, easy to follow tutorials.

  • @joshswanson0
    @joshswanson0 9 місяців тому +1

    Appreciate the extra visualizations. Your tutorials are very intuitive!

  • @bataraza2
    @bataraza2 Рік тому +5

    Gabriel, your content is so so so good man

  • @suicune2001
    @suicune2001 Рік тому +1

    When you show the cubes sinking into the floor, I kept imagining some badass boss smirking with his arms crossed sinking into the floor after giving you some major burn. XD

  • @KingRingsting
    @KingRingsting Рік тому +1

    congrats on getting publisher of the week!

  • @vitaliizyrianov1085
    @vitaliizyrianov1085 Рік тому +10

    Hello! Could you make a video about shader which blend mesh and terrain? It's very difficult to find good tutorial, but when you explain it makes very easy :) Thanks!

  • @fury9941
    @fury9941 Рік тому +1

    Loved your tutorial. Simple and straightforward.

  • @_g_r_m_
    @_g_r_m_ Рік тому +3

    I just find it so satisfying when something is that easy to do in shader graph. Unlike custom shadows, what a pain in the ass.

  • @racine1866
    @racine1866 Рік тому +1

    A sacanagem é ter um dos maiores mestres dos Shader da Unity com tutoriais que valem ouro, só falando em inglês kkkkk

    • @usercontent2112
      @usercontent2112 Рік тому +1

      Ainda bem que sabemos inglês

    • @racine1866
      @racine1866 Рік тому

      @@usercontent2112 The Book is on the Table Matter!!

  • @Kaldrin
    @Kaldrin 6 місяців тому +1

    Thank you very much it's what I was looking for!

  • @blacksheep1337
    @blacksheep1337 Рік тому +3

    Muito obrigado pelo conteúdo, amigo.

  • @palanolho82
    @palanolho82 6 місяців тому

    Hi there, Nice tutorial as always!
    Would you be able to say how would you adjust it (or make it different if you wanted to apply a similar effect but to an opaque object with textures?
    Imagine you have a stone pillar inside lava, the stone pillar's edge near the water would be brighter because it's very hop and moulted (like iron getting out of the forge)
    Many thanks in advance.

  • @elival8267
    @elival8267 7 місяців тому +1

    thank you !

  • @ZockerAxel
    @ZockerAxel 10 місяців тому +2

    Is it possible to only show this effect around intersections with a object in a certain layer? Or any way to limit the amount of objects it works with?

  • @chrisrakkestad
    @chrisrakkestad 6 місяців тому +3

    ❤❤ now in Unreal please :D

  • @shakoret
    @shakoret Рік тому +1

    Very smart, ty man ❤

  • @aag7482
    @aag7482 Рік тому +2

    Do you know how you could make this work when using an orthographic camera? It just disappears for me.

  • @gr3chu
    @gr3chu 6 місяців тому

    This is great! I have a question though: is it possible to get a color from intersecting geometry? To get a nice blend between objects around the edges? I'm thinking rock on a green surface representing ground. Rock is using this effect, and the intersection on the rock is taking color from the ground?

  • @PaulGeraskin
    @PaulGeraskin Рік тому +1

    Wooooooow!!! Thank you so much!!

  • @kaptnkarma4805
    @kaptnkarma4805 5 місяців тому

    @0:56 in that you turned on 'Depth Texture' and 'Opaque Texture' in the render pipeline settings for URP... im currently making a project in HDRP but i cant find the same options for HDRP... any solutions please

  • @digital_hoboz
    @digital_hoboz 5 місяців тому

    You should use more color in your example scene. Right now everything is gray and it's hard to see what's going on.

  • @mariaxr6426
    @mariaxr6426 Рік тому

    Hello! Amazing video 🙂 Very inspiring! Does this work in VR for standalone VR headsets?

  • @okanaydin06
    @okanaydin06 5 місяців тому

    Hi,
    I want to make blend transition, so I had my intersection shader which runs but just with opaque objects that can seen on camera. I want to make this effect with an object that doesnt seen on camera. How can I do that?

  • @Ooaic
    @Ooaic Рік тому +1

    hi, I would like to make a shader to merge one or more 3D meshes when they intersect and unmerge them when they move away, similar to the metaball effect, do you have some tutorial or unity asset pack for this?

  • @seve8138
    @seve8138 Рік тому +2

    Hi, very insightful!
    Would it be hard to make objects with this shader to intersect with themselves?
    I can't find a way.

    • @bigcaka7725
      @bigcaka7725 11 місяців тому

      im trying to do this too since the zwrite on fix for transparent shaders doesnt work in 2022

  • @Ggez-o1n
    @Ggez-o1n Рік тому +1

    Nice tutorial, Gabriel. I have a problem regarding creating a rapier pierce effect. My effect needs to have a different color for the head and trail, even though they use the same mesh. I don't know how to achieve this. Thank you for your hard work.

    • @GabrielAguiarProd
      @GabrielAguiarProd  Рік тому

      You can create a gradient via shader. Here's two examples:
      Stylized Trails: ua-cam.com/video/wvK6MNlmCCE/v-deo.html
      2D Gradients: ua-cam.com/video/O62Iio-Qvjs/v-deo.html

    • @Ggez-o1n
      @Ggez-o1n Рік тому

      @@GabrielAguiarProd Thank you very much. You have helped me a lot.

  • @YA-dn8be
    @YA-dn8be 4 місяці тому +1

    I'm really appreciate your video. I want to run it in webgl. but when I build to web, the shader doesn't work😢. Do you know why?

    • @GabrielAguiarProd
      @GabrielAguiarProd  4 місяці тому

      Make Sure the reference of the MainTex is _MainTex. If there isn't a property named MainTex create a Texture2D, name it MainTex and double-check the reference is _MainTex

  • @murattasdelen8500
    @murattasdelen8500 Рік тому +1

    man, you super. ı love you.

  • @warriorcast8567
    @warriorcast8567 10 місяців тому

    so, is there a way to get this to work in the source engine?

  • @Damian_DH
    @Damian_DH Рік тому

    do morphers or shape keys work with vertex offset effects?. Let say a hand changing shape can u apply some kind of effect? or it will keep the original vertex pose of the mesh. Great tutorials !!!

  • @zenzren9366
    @zenzren9366 Рік тому

    hi, i want to ask about your course on udemy,. I'm confused to choose which one
    1. visual effects for game unity
    2. unity vfx graph
    I am very beginner, which of your two courses should I choose first?

    • @darthsquirrel4247
      @darthsquirrel4247 Рік тому

      I would go for the first one as it is a but more suitable for beginners and you get really nice results

  • @BogdanKrylov
    @BogdanKrylov Рік тому

    hi! if it possible to do seamless shader for the orthographic camera?

  • @rusluck6620
    @rusluck6620 Рік тому

    Hi could you make a tutorial on stand energy effect from jojo?

  • @AntBoyification
    @AntBoyification Місяць тому

    i tried to use this in my project and after folowing every single step my result is not even close. its just not working. i have a massive bloom effect and thats it.
    also i dont understand what the hell, my screen position has to do with this effect.

    • @AntBoyification
      @AntBoyification Місяць тому

      not shure why noone mention it. but after the moment he is using remap to "invert" nothing works annymore.
      i thought from the first moment thats a strange idea to invert the effect.
      but why its working for him?

  • @ekawooha5870
    @ekawooha5870 Рік тому +1

    the effect didnt work for me !! even at [4:26] why ??

    • @jeppetofft
      @jeppetofft Рік тому

      Perhaps it's because you placed the last "Subtract" node into the "Ambient Occlusion" input instead of the "Alpha" input. If you can't find the "Alpha" input, you should navigate to the "Graph Settings" within the "Graph Inspector" located in the upper right corner. Here, you should modify the "Surface Type" to "Transparent." Hope this helps!

  • @rishatmirgaliev6722
    @rishatmirgaliev6722 Рік тому

    Can someone explain me how to do this in blender? 😅

  • @brayandelmee2989
    @brayandelmee2989 Рік тому +3

    i'm a bit confused on how to use this effect on a fbx with it's own material. Since the shader graph uses transparency how could you have your object with its own texture and this effect on top ?

    • @CalebRoenigk
      @CalebRoenigk 6 місяців тому

      Use the alpha value from the transparency in the shader as a blend between two different shaders or between two different effects

    • @Sammysapphira
      @Sammysapphira 5 місяців тому

      You seem to fundamentally misunderstand how shaders work.

  • @glimpsygames2734
    @glimpsygames2734 Рік тому

    please, we want interactive grass