Unity VFX Graph - Lightning Shader Effect Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • NEW LIGHTNING: • Unity VFX - Lightning ...
    Today's project is Lightning effects with Shader Graph and VFX Graph. This procedurally generated lightning is done with Shader Graph and then we create a few particle effects with VFX Graph.
    2017 Lightning and Thunder Tutorial: • Unity 2017 - Game VFX ...
    Electricity Shader: • Unity Shader Graph - E...
    Enjoy!
    Wishlist our game :D store.steampow...
    ---------------------------
    PATREON: / vfx-graph-shader-43499182
    ASSET STORE: assetstore.uni...
    GAP WEBSITE: www.gabrielagu...
    ----------------------------
    Courses
    ✦VFX GRAPH - BEGINNER: www.udemy.com/...
    ✦VFX GRAPH - INTERMEDIATE: www.udemy.com/...
    ✦VFX FOR GAMES - BEGINNER: www.udemy.com/...
    ✦VFX STYLIZED EXPLOSION: www.udemy.com/...
    VFX Assets Packages
    Unique Projectiles Vol 1: assetstore.uni...
    Unique Projectiles Vol 2: assetstore.uni...
    Unique Projectiles Vol 3: assetstore.uni...
    VFX Graph - Mega Pack - Vol 1: assetstore.uni...
    VFX Graph - Mega Pack - Vol 2: assetstore.uni...
    VFX Graph - Mega Pack - Vol 3: assetstore.uni...
    VFX Graph Tutorials :
    VFX Graph - Magic Orb: • Unity VFX Graph - Magi...
    VFX Graph - Weapon Effects: • Unity VFX Graph - Weap...
    VFX Graph - Portals: • Unity VFX Graph - Port...
    VFX Graph - Flamethrower: • HOW TO CREATE A FLAMET...
    VFX Graph - Burning Paper: • The Burning Paper Effe...
    VFX Graph - Loot Drop: • Unity VFX Graph - Loot...
    VFX Graph - Lightning: • Unity VFX Graph - Ligh...
    VFX Graph - Muzzle Flash: • Unity VFX Graph - Muzz...
    VFX Graph - Hits N Impacts: • Unity VFX Graph - Hits...
    VFX Graph - Heat Distortion: • Unity VFX Graph - Heat...
    VFX Graph - Character Effects: • CHARACTER EFFECTS in U...
    VFX Graph - Ice Attack: • Unity VFX Graph - Ice ...
    Shader Graph Tutorials :
    Shader Graph - Fire Flames: • Unity Shader Graph - F...
    Shader Graph - Laser Beam: • Unity Shader Graph - L...
    Shader Graph - Fire: • Unity Shader Graph - F...
    Shader Graph - Tornado: • Unity Shader Graph - T...
    Shader Graph - Blood: • Unity Shader Graph - B...
    Shader Graph - Electricity: • Unity Shader Graph - E...
    Shader Graph - Nuke: • Unity Shader Graph - N...
    Shader Graph - Shield: • Unity Shader Graph - S...
    Shader Graph - Waterfall: • Unity Shader Graph - W...
    Shader Graph - Fire Wings: • Unity Shader Graph - F...
    Shader Graph - Galaxy: • Unity Shader Graph - G...
    Shader Graph - Black Hole: • Unity VFX & Shader Gra...
    Shader Graph - Ground Cracks: • Unity VFX - Ground Cra...
    Shader Graph - Ghosts: • HOW TO CREATE A GHOST ...
    Shader Graph - Grow Shader: • Unity Shader Graph - G...
    Shader Graph - Interactive Snow: • Unity Shader Graph - S...
    Shader Graph - Liquid Shader: • Unity Shader Graph - L...
    Shader Graph - Glowing Crystals: • Unity Shader Graph - G...
    Other VFX Videos :
    Stylized Fire: • Unity 5 - Game Effects...
    Laser Beams: • Unity 2018 - Game VFX ...
    Weapon Trails: • Unity 2018 - Game VFX ...
    Destroy / Explode Objects: • Unity 2018 - Game VFX ...
    Dragon Ball Aura: • Unity VFX - Dragon Bal...
    Loot Box: • HOW TO CREATE A LOOT B...
    Valorant - Phoenix Fire Wall: • Valorant Phoenix Fire ...
    Shoot Projectiles in FPS: • Unity Tutorial - Shoot...
    Valorant - Sage's Wall: • Recreating Sage's Wall...
    Doom Eternal - BFG-9000 VFX: • DOOM ETERNAL BFG-9000 ...
    Enjoy and feel free to ask any questions you may have, I'll answer as quickly as possible. And don't forget to like and subscribe. Thank you!
    ✦ Follow on TWITTER: / gabrielaguiarfx
    ✦ Like on FACEBOOK: / gabrielaguiarprod
    ✦ Subscribe On RUclips: www.youtube.co...
    Unity VFX Graph Lightning Strike Effect Tutorial
    VFX Graph Lightning Effect Tutorial
    Lightning Effect in VFX Graph
    Lightning Effect in Unity
    Unity Lightning Shader
    Lightning Shader
    #VFXGraph
    #Lightning
    Unity VFX
    #Unity
    VFX

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

  • @GabrielAguiarProd
    @GabrielAguiarProd  3 года назад +8

    *NEW LIGHTNING TUTORIAL* : ruclips.net/video/XPh0jiqf0iQ/видео.html
    Zeus would be proud of this Lightning, maybe? Anyway hope you like it guys. Btw it's available in the Asset Store: assetstore.unity.com/packages/vfx/particles/vfx-graph-lightning-effects-vol-1-206914?aid=1100l3Jhu
    *Learn more about VFX Graph* : www.udemy.com/course/unity-vfx-graph-thunderlord-magic-effects/?couponCode=29.99_UNTIL_20-09

  • @pixeldevil3d908
    @pixeldevil3d908 Год назад +30

    Thank you for showing this material! Many people gatekeep for their Patreon subs. But you are so generous. I will make a note: VFX Graph 12.1.7 --to access the shader graph input on the Output Particle Mesh, I needed to go to Edit>Preferences>Visual Effects>Check box for "Experimental Operators/Blocks. And just for greater measure; I also checked "Experimental Shader Externalization."

  • @dreamterrormaster
    @dreamterrormaster 3 года назад +25

    Really cool tutorial, thanks.
    If someone cares: you can add an emission node in the shader to add an illumination effect. Works great.

  • @steven5455
    @steven5455 2 года назад +57

    If you cant change the Shader Graph in the VFX try enabling experimental under preferences -> Visual Effects

  • @pikachufan3588
    @pikachufan3588 Год назад +2

    I was so scared to use shader graph and vfx graph but after like 4 videos of yours I'm off having so much fun playing with effects. Thanks so much!

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад

      You are very welcome, glad to help you overcome that fear, vfx can be quite daunting at first, but once you are in, it's awesome!

  • @Bodyburger
    @Bodyburger 3 года назад +5

    If some of you can't change the color in the VFX shader graph, try clicking the color while holding shift or ctrl. Ctrl worked for me.

  • @kingkarson2618
    @kingkarson2618 2 года назад +16

    Problem Fix For those of us using Unity 2020.3.30f1:
    When using Output Particle Mesh, you'll notice that when selecting the Plane mesh it is rotated. You can either play around with rotations and different pivot points, or you can instead use the Quad option within the mesh selector and it works in tandem with the tutorial.

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +1

      Thanks for sharing this awesome tip!

    • @HugoLSouza-xt7ix
      @HugoLSouza-xt7ix Год назад

      Thank you so much, I was searching about this problem.

    • @Arashi256
      @Arashi256 Год назад

      Doing God's work, sir - many thanks.

    • @hernans10
      @hernans10 Год назад +1

      Unfortunatley does not work with Unity 2022 .2.19 when choosing Quad it shows nothing on screen, only show something with plane but as you mentioned it is rotated :( , any way thank you

    • @Arashi256
      @Arashi256 Год назад

      @@hernans10 Works on 2022 for me - I think I’m on 2022.3.x

  • @Gredran
    @Gredran 3 года назад +24

    Two issues I have im using unity 2020(edit SOLVED. HERES DETAILS):
    1. When I drag in my VFX graph to my scene and switch to Planes, the planes are flat to the Y axis and not upright to the Z axis like yours. Maybe a set rotation node would fix this but how do I do it by default?
    The answer to this first one as I saw some of you had this issue is that in 2020, for some reason “output particle mesh” is rotated weirdly, but if you use “output particle quad” it’s rotated correctly, AND has all of the same settings you need. Hell, going forward, I realize Gabriel uses an “output particle quad” later
    2. Why is my lightning not as emissive as yours? It’s one solid blue color but not glowing brightly like yours. I’ve matched the settings but what could I have missed?
    The answer here is that the emission is a post processing effect. Use any video in URP or converting a standard project to URP because in those videos, they add an empty game object and add a component(only visible in URP or HDRP) called Volume(it shows as a C# script). Once that’s added, you have a setting for Bloom, which now allows your lightning to glow brightly.
    Everything else SHOULD work fine now :)

  • @gilleswalther5964
    @gilleswalther5964 3 года назад +5

    This lightning is illuminating my learning journey, thanks!

  • @DrGroo
    @DrGroo Год назад +1

    Thanks again for this great video. I come back to watch it every time I want to add a lightning effect to whatever I'm working on at the time.

  • @Duo_Septimdra
    @Duo_Septimdra 2 года назад +2

    I was looking for an unreal tutorial but I think this is similar enough for me to make it there. Thank you.

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +2

      For someone with a bit of experience in the material editor and with niagara it shouldn't be that hard, hope it helps! Good luck.

  • @dmtuan
    @dmtuan 3 года назад +5

    Amazing! Absolutely love this. More vfx graph videos please 😁🙏🏼. Thank u so much

  • @teaMmMate
    @teaMmMate 3 года назад +3

    This is honestly some next level stuff. Thank you so much :)

  • @BigRookDigital
    @BigRookDigital 3 года назад +3

    Great stuff, yet again. Thanks, Gabriel.

  • @BakaBakaGames
    @BakaBakaGames 3 года назад +2

    I used this video to make the vfk that play when you ascend to godhood in the game I just made about 2 Cubes Humping. Thanks, my guy!

  • @vaepuer2290
    @vaepuer2290 3 года назад

    Not what I needed but youve shown me this flipbook concept. Thank you! Hard to find things when you dont know the question

  • @r.iyushofficial5318
    @r.iyushofficial5318 3 года назад +3

    Greate toturial
    it helped me a lot in animating my new game..
    Thanks a lot 🙏

    • @r.iyushofficial5318
      @r.iyushofficial5318 3 года назад +1

      I actually made a death ray with this lightning 🌩 and made it rapid fire 🔥

  • @stefan429
    @stefan429 3 года назад +22

    5:10 i dont have that shader graph field T.T

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +31

      Yep. You need to turn on Experimental Blocks in the Preferences > Visual Effects > Experimental Operators/Blocks

    • @stefan429
      @stefan429 3 года назад +6

      @@GabrielAguiarProd Thank you!

  • @manolov4074
    @manolov4074 3 года назад +1

    Very nice tutorial !!! Good job Gabriel ! :)

  • @jaimemedina3351
    @jaimemedina3351 3 года назад +2

    Boom-kada-boom!! This is amazing! Thank you

  • @AspiringHeroGames
    @AspiringHeroGames 3 года назад

    A fantastic tutorial! I'll be adding in lightning now thanks to this!

  • @Ferenc-Racz
    @Ferenc-Racz 3 года назад +3

    Hi! I just checked your chanel, and noted you do a notable job! :) subscribed. :)

  • @MrSeby197
    @MrSeby197 2 года назад +4

    Hi, I have a problem. When i animate my lightning, It doesn't start the beam from the point. the beam also moves itself down.

    • @skelhain
      @skelhain 2 года назад +3

      I had to change the pivot y value to 0.5 instead of 1.0 to keep the bolt in place.

  • @kryloth3628
    @kryloth3628 3 года назад +5

    At 5:50
    Why does your particle looks like it's glowing, but mine doesn't :|
    I followed your color var value, and mess around with it too but still it doesn't look as glow as yours

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +4

      Because I'm using a Global Volume with Bloom. If you want one, you can press right-click in your hierarchy, go to Volume and then create a Global Volume. You can then create a new Profile and add Bloom or other post-processing effects. Hope this helps.

    • @kryloth3628
      @kryloth3628 3 года назад +1

      @@GabrielAguiarProd Thanks, it helps achieving that glow effect

  • @daslolo
    @daslolo 5 месяцев назад +1

    and for those who are necroing this video, you can instead create a shader graph then ticking support VFX graph in the graph properties

  • @JegiDobrak
    @JegiDobrak 3 года назад +5

    hey, can you help me out? when I select plane as a mesh in output particle mesh, nothing new pops up, I cant add shader to it, any ideas?

    • @codeCadaver
      @codeCadaver 3 года назад

      Under Edit->VisualFX->Rebuild...
      This is what worked for me

  • @brunomorais1194
    @brunomorais1194 3 года назад +7

    Hello Gabriel!
    5:16
    My Shader Graph is working normally, but when I apply it to a Visual Effect Graph it remains static. This error appears in the Console:
    Shader error in 'Hidden / VFX / test / System (1) / Output Particle Mesh': Shaderpass should be defined at this stage. at line 525 (on d3d11). Can u help me?

    • @DRagnMastrN7
      @DRagnMastrN7 3 года назад +1

      I get the same error. :C

    • @anubis520
      @anubis520 3 года назад

      has anyone figured out a solution to this? I am getting it now too...

  • @Brandroide07
    @Brandroide07 3 года назад +12

    do you know why I can't add the Shader in Output Particle Mesh? I use 2019.4.1f1 version

    • @張竣皓-d9b
      @張竣皓-d9b 3 года назад +15

      You can go to Preferences's Visual Effects and enable the "Experimental Operators/Blocks"

    • @redesign56
      @redesign56 3 года назад +1

      @@張竣皓-d9b thanks

    • @smirelesz
      @smirelesz 2 года назад

      @@張竣皓-d9b Thanks

  • @moldybot9387
    @moldybot9387 2 года назад +2

    My lightnings are just static and not animating like in the shader graph preview...how can I fix that?
    Edit: Oh ok, they just don't animate when I'm not in playmode...

  • @philippeb.4637
    @philippeb.4637 3 года назад +16

    Hey, thanks for the tutorial. Everything worked properly up to 5:20, then I don't get any Lightning appearing when selecting the newly created VFX in the Output Particle Mesh. Note : I'm on Unity 2019.3.0f6 and the Plane Mesh does look a bit different than yours.

    • @alexchatziagapis2351
      @alexchatziagapis2351 3 года назад

      Yes the mesh is rotated and no slot apears for the shasder graph, did you find a way to fix it so far?

    • @alexchatziagapis2351
      @alexchatziagapis2351 3 года назад +11

      ok you need to enable experimenatal blocks on edit ->preferences->visual effects

    • @philippeb.4637
      @philippeb.4637 3 года назад

      Figured it out guys , you need to have Blender installed on your computer for it to work properly and to have the Plane Mesh available.

    • @KneecapTaker
      @KneecapTaker 2 года назад +6

      @@philippeb.4637 another way you could fix it is by using the set angle block in vfx graph and rotate on the x axis by 90 degrees

    • @thatkarairamen
      @thatkarairamen 2 года назад +1

      @@alexchatziagapis2351 cheers, this fixed it for me

  • @__dane__
    @__dane__ 3 года назад +1

    A “VFX” shadergraph is just a shader graph that has its target set to VFX instead of Universal. This can be changed in the graph settings inspector

  • @erickmartins5579
    @erickmartins5579 3 года назад +1

    Awesome as always!

  • @NguyenHoangPhuong-qf6xb
    @NguyenHoangPhuong-qf6xb 2 года назад +2

    Why at the first, your VFX lighting texture illuminates ? I made VFX in 2D 2021.2.8f but the texture does not emit any light, it's simple like the shader graph made in previous step. Anyone have idea?

    • @yinbenzene9963
      @yinbenzene9963 5 месяцев назад

      Hello, I have the same problem, do you know how to solve it now?

  • @mireyadkk5917
    @mireyadkk5917 3 года назад +3

    in minute 5:05 when i put the plane as a mesh it shows horizontal in the particles. I cant change the orientation of the mesh. Can someone help pls:(

    • @roi_bidoushka5531
      @roi_bidoushka5531 3 года назад

      Hey, you don't need, if you want, use a mesh. I have this problem and i just make a OUTPUT Particule Quad, i put my shader, and i change some option in my Vfx graph for make this Lightning. If you want send me your discord, i Send you some screen.

  • @pnvgordinho
    @pnvgordinho 3 года назад +4

    Boom Kadaboom. :)
    Obrigado pelo tutorial, porreiro como sempre.

  • @Dezomm
    @Dezomm 3 года назад +1

    Great tutorial, thank you for sharing.

  • @minhtan1675
    @minhtan1675 Год назад +1

    that video help me a lot, thank you so much ❤

  • @unityvictor787
    @unityvictor787 3 года назад +2

    I got problem since 5:03, I dont have plane mesh with vertical, and My Lighting graph doesn't have emission effect,
    Is anyone meet these problems too?

    • @sumitcutevil9260
      @sumitcutevil9260 2 года назад

      yes no vertical plane how to fix dis?? please help

  • @thatkarairamen
    @thatkarairamen 2 года назад +1

    I know it was a year ago this was uploaded.
    I'm having issues with the height not adjusting to the value.
    I'm trying to have the lightning be longer but it doesn't seem to change at all if I input it in the output particle mesh

  • @Ced190
    @Ced190 3 года назад +3

    Gabriel, I would gladly need some help 'cause when I put the shader in the output particle mesh, the lightning emits but does not move it's like if the "noiseSpeed" parameter is blocked on 0 even if I put the same values as you did. I would really need help even if I'm late.

    • @ofthedrk781
      @ofthedrk781 3 года назад

      @JOELIO9 it works when you actually run the game

  • @micheldesjardins6176
    @micheldesjardins6176 3 года назад +2

    Hi, I think I have followed the tutorial, steo by step, but the lightning do not grow, it appear all at once. Also I need the effect to go bottom up and at 45 degrees. Is there a way to rotate it? Thanks

  • @DommageCollateral
    @DommageCollateral 3 года назад

    if you use this shader and set the vfx to a sphere, you can make some really cool orbs and stuff

  • @dylangilchrist3151
    @dylangilchrist3151 3 года назад +1

    Amazing!

  • @kurtisgibson2929
    @kurtisgibson2929 3 года назад +3

    I've followed your tutorial from the start and rewatched a few times but I'm comming across the same issue the lightning will start at the transform but slowly fall downwards like yours but as the animation goes on it falls slightly any idea why?
    edit: changing the pivot from 1 to 0.5 works better

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      1) The Pivot plays an important role.
      2) Make sure there's no velocity or any kind of movement.
      3) Length of the Rectangle in the shader should be higher then 2 or 3.
      4) You can create an Offset vector3 in the Shader to adjust the position of Lightning in the mesh.
      Hope this helps, good luck.

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      @@GabrielAguiarProd i've tried all of these the only thing i don't know how to do is the offset in the mesh

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад +3

      @@GabrielAguiarProd it turns out changing the pivot from 1 to 0.5 fixes the issue and i have no idea why

    • @alexisd5410
      @alexisd5410 3 года назад

      @@kurtisgibson2929 I had the same issue and your fix helped me. Thanks

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      @@alexisd5410 glad to help

  • @yzbrian
    @yzbrian 9 месяцев назад

    When I add the Shader Graph to my Output Particle Mesh all I see is grey planes? Why do I not see the lightning I created? When I change it to quad my particle isn't even visible...

  • @sri-vishnurajagopal1990
    @sri-vishnurajagopal1990 8 месяцев назад

    Hi, I'm on unity 2020.
    3.1 and I followed the tutorial but I'm stuck here, when I put setpivot, the plan does an animation where it moves away but it doesn't do like in the tutorial, does anyone know why it doesn't do like in the tutorial?

  • @rebelcrusader9973
    @rebelcrusader9973 Год назад

    I cannot make it work with the regular unlit version since the rectangle's UV doesn't accep the out value of the simple noise.

  • @user-tt8ml7gq7f
    @user-tt8ml7gq7f 3 года назад +1

    i can't find shader graph in output particle mesh

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Make sure you tune on Experimental Blocks/Operators in Edit>Preferences>Visual Effect

  • @paradoxsc2clan
    @paradoxsc2clan 3 года назад +1

    for some reason mine is oriented length wise along the Z plane, is there an easy fix to make it orient along the y plane? or is this a non issue

    • @Geov4niJr
      @Geov4niJr 3 года назад

      Did you fix it?? I'm with the same problem =(

    • @Geov4niJr
      @Geov4niJr 3 года назад +3

      Oh... I "fixed it" by changing the mesh, instead of a plane, use a cylinder, and then at the Gameobject, change the Z scale to 0. Now its a plane and you can even see the lightning from "both sides" =)

    • @kitchen_jooklum
      @kitchen_jooklum 3 года назад

      another solution i haven't seen yet. If you use Blender, make a plane and rotate it 90 deg. on the X axis. Ctrl + A and hit Appy Rotation. Go into edit mode and select the top two vertices. Hit Cursor to Selected, then go back to Object mode and hit Origin to 3D Cursor. Export that plane as an fbx and import it to unity. This way the plane will be oriented correctly, and even the pivot point will be set so you won't need that block.

    • @roi_bidoushka5531
      @roi_bidoushka5531 3 года назад +1

      Other solution, don't use a mesh. I had this problem and i just make a OUTPUT Particule Quad, i put my shader, and i change some option in my Vfx graph for make this Lightning.

    • @teaMmMate
      @teaMmMate 3 года назад

      Thanks mate

  • @JM-dc5rn
    @JM-dc5rn 2 года назад

    Set scale seems to just move the whole thing instead of making it grow for me and my plane seems to be rotated so that when it does move it just floats the whole thing up...

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      That's because of the pivot of the mesh. I believe you can offset the pivot directly in VFX Graph with a Set Pivot block in the Output Particle before the Set Scale. Otherwise you can use blender to adjust the pivot.

  • @Phornax7
    @Phornax7 3 года назад

    The sample curve for the width isn't working for me. It stays the same width the whole way through.

  • @danstarikoff8486
    @danstarikoff8486 Год назад

    I see the animation of noise on geometry only when I start the game, and in the window the scene animation does not lose. What could be the problem?

  • @YuriySemirechenko
    @YuriySemirechenko 3 года назад

    How to set lighting graph to camera?! When i create node 'face camera' I can`t see my effect. How to fix this issue?!

  • @Bradfordgavin
    @Bradfordgavin 2 года назад +1

    When i get to the step of creating the vfx Graph and swapping the mesh to planes, the planes spawn sideways. any idea how to fix this. I mean they are spawning flat

    • @Bradfordgavin
      @Bradfordgavin 2 года назад

      Also when swapping the shader graph out with the lightning one it comes out as a dull blue color instead of bright and glowy like yours

    • @sumitcutevil9260
      @sumitcutevil9260 2 года назад

      @@Bradfordgavin yes i am stuck wid the same problem did yu solve it???

  • @jetblacksnow5225
    @jetblacksnow5225 3 года назад +4

    Ah shoot, I know what I'm doing today.

  • @michaelsowe7982
    @michaelsowe7982 3 года назад

    Can the lightning bend or does it have to come straight down. What I’m trying to ask is if the lightning can come from any point like from a tree to a house or does it have to come straight down

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      With plane with several subdivisions (faces) and with vertex offset you can get it to bend.

  • @DommageCollateral
    @DommageCollateral 3 года назад

    its also possible to use a particle strip, but its a bit more complicated

  • @Muninn_Crow
    @Muninn_Crow 3 года назад +1

    Phenomenal tutorial, being easy to understand and manipulate to get the effect I need, but I was wondering if you could provide some insight. At 05:15, where you change the Shader Graph, my "up-to-date" Packages lacks the Shader Graph option, and restarting Unity and reinstalling the Packages has not resolved the issue. Is this a recent change in the last month that you can see on your end?

    • @Muninn_Crow
      @Muninn_Crow 3 года назад +5

      Found the solution and am posting it for others.
      To resolve the missing Shader Graph option, you NEED to tick on the Experimental Blocks on Edit>Preferences>Visual Effects and reopen the SFX Asset's Edit Window.

    • @Nubz77
      @Nubz77 2 года назад

      @@Muninn_Crow Thank you so much!

    • @Jeddles
      @Jeddles Год назад

      @@Muninn_Crow THANKS!!!

  • @clssmusic
    @clssmusic 3 года назад

    Great video! Could you please do one for Dash Effects. It should be close to the weapon trail effects. A 2D one would be awesome since there is literally nothing that I know about. It would be great for the people who do not use Blender and therefore cannot use a mesh.

  • @StatusTechDev
    @StatusTechDev Год назад

    I do not see an option for the shader graph in the out put particle mesh, also, whenever I can't even see the little particles themselves! Any ideas?

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад +1

      Make sure to turn On Experimental Operators/Blocks in Preferences > Visual Effects.

  • @linkruste
    @linkruste Год назад

    I have an issue where the lightning bolt does not animate, but great tutorial

  • @wormius51
    @wormius51 3 года назад

    I have a little problem, the texture on the noise node is pixelated for some reason. That causes the lightning to look like there is a glitch shader on top of it or something. Pretty cool but not what I'm looking for. Are you familiar with this issue?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Not sure why. But try to use another noise. There are three procedural noises in shader graph. Simple Noise, Gradient Noise and Voronoi. Also make sure the scale is not tinny.

  • @oliverscott6913
    @oliverscott6913 3 года назад +2

    Firstly, thank you for making tutorials on these amazing vfx it really is appreciated! Just one question as I am new to vfx, would this lightning be easy to code/change values by code in order to make it so that I can create a chain lightning effect using basically what you already have here?

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад +1

      Yes you can right click on one of the inputs and set it to public you can then modify it through animation and or code

    • @oliverscott6913
      @oliverscott6913 3 года назад

      @@kurtisgibson2929 Okay thank you!

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад +1

      @@oliverscott6913 no problem if you need help with code just ask 😊

  • @teaMmMate
    @teaMmMate 3 года назад

    Hi Gabriel, can I somehow use this Lightning shader outside the URP environment? I started my project in 3D rendering mode and upgrading into URP just ruins my whole terrain.. :/

    • @teaMmMate
      @teaMmMate 3 года назад

      Namely, the trees turned pink (although I upgraded all project materials to URP materials) and there is this weird stretching effect to my assets when I rotate the scene

  • @biglemonfox3446
    @biglemonfox3446 3 года назад

    Great tutorial! Tho the emission doesn't work for me in HDRP. Any known fixes?

  • @strategy2128
    @strategy2128 3 года назад

    I added bloom effect, and I'm seeing the effect in the scene view. However, the in game view, nothing I do seems to have an effect. Even if I turn off bloom in global volume, it isn't changing. It seems that only scene view is getting affected by the bloom. Please help!

  • @chem_OS
    @chem_OS 3 года назад

    I'm trying to get this to work but when I set the output mesh to a plane, the plane points to Y axis and I can't change the pivot either. Rotating it didn't work...

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Use a Set Pivot in the Output, see if that helps.

    • @chem_OS
      @chem_OS 3 года назад

      @@GabrielAguiarProd You saved me, now it works! I'll probably go and get your course, my friend.

  • @amaurymehlman7557
    @amaurymehlman7557 3 года назад

    The electricity shader is necessary for this tutorial ? I try to reply this tutorial it's work but my lightning doesn't have the electric aspect

    • @amaurymehlman7557
      @amaurymehlman7557 3 года назад

      My lightning juste have 1 color not have the gradient between my colour and white

  • @masonwheeler6536
    @masonwheeler6536 3 года назад

    This looks cool, but actual lighting strikes fork and get all jagged. This is one single (mostly) straight bolt. Any cool tricks for making jagged lightning?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Vertex Displacement on a mesh with a few more polygons then usual. But, Vertex Displacement is yet to be supported in VFX Shader Graph.

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      You can use the scale of it to choose the direction (like when 0, 1, 0 made it go up you could do 1,-1,0 to make it go left and down) and play the effects after the first lightning strikes

  • @EnderElohim
    @EnderElohim 3 года назад +1

    7:24 in my the lightning itself move with whole :(
    edit: Oh okay i just changed 1 to 0.1 and fixed
    edit 2: Also yeah i found out for some reason i need to divide to 10 most of your numbers to make sense in my scale. I wonder is it about plane i was using
    edit 3: It also work on hdrp

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Yes the scale is important. You got it right ;)

    • @EnderElohim
      @EnderElohim 3 года назад +1

      @@GabrielAguiarProd also after i try to move it to different place i realsed that it actually stuck where it is and than i realise for some weird reason initialize particle was set to world and i just set them to local than it also fixed XD now i can move it anywhere i want XD Thanks man
      Btw this was my first time try to use this system(or more like first time i dedicated) XD it was scary

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      VFX Graph is scary in the beginning. But once you start understanding it , a world of possibilities opens up.

    • @EnderElohim
      @EnderElohim 3 года назад

      @@GabrielAguiarProd that is true :D after watch some of your videos i opened and made my own lava shader by clicking randomly everywhere like a monkey until it looks like cool XD Well it was more like educated guess though because i had idea about what i should look at already familiar with some nodes thanks to you ^^

  • @danielyyi
    @danielyyi 3 года назад

    At around 7:25 my lightning goes down but also shifts down as well. So the lightning gets longer down but also moves down too. How can I make my like yours where the origin stays the same?

    • @nikitasavenko5431
      @nikitasavenko5431 3 года назад +1

      Maybe you have to remove "set velocity" from your lightning?

  • @alwaysyouramanda
    @alwaysyouramanda Год назад

    I’m trying to see if I can do something like this with just particle effects and trails. So.. I need to draw I guess? lol I have never found an answer to the question (IF I can manage to learn the shader graph stuff, is it usable in VRChat avatars?)

    • @alwaysyouramanda
      @alwaysyouramanda Год назад

      It took me over an hour the one time I followed a tutorial.. just to get to the right window!

  • @HJY4353
    @HJY4353 2 года назад

    Even if hdrp is installed, the light doesn't come out bright. What should I do?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      In URP I used a Global Volume with Bloom for the glow.

  • @alexandreamiel1865
    @alexandreamiel1865 Год назад

    unfortunately not working with vfx 12 , outputparticlemesh doesnt contains shadergraph property anymore :( :(

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад

      You just have to turn on Experimental Operators/Blocks in Edit>Preferences>Visual Effects.

  • @bhavingajjar4535
    @bhavingajjar4535 Год назад

    I am following tutorial but my colour is not Glowing in VFX Shader Graph, anyone can help me with that plz?

  • @ThangPham-bt8zh
    @ThangPham-bt8zh 2 года назад

    Have any way to rotate this lightning ? I need to rotate it

  • @anubis520
    @anubis520 3 года назад

    I'm getting an error when I get to about 5:30 that says Shader error in 'Hidden/VFX/NewVFX/System/Output Particle Mesh': Shaderpass should be defined at this stage. at line 524 (on d3d11) does anyone know how to fix this.

  • @mayconalberto1588
    @mayconalberto1588 3 года назад

    Você é brasileiro ou português? Por que seu curso na udemy não tem a legenda em português?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Não tem legendas em Português porque o Udemy não as gera automaticamente do Inglês para PT, infelizmente.

  • @Leon-wv4dn
    @Leon-wv4dn 3 года назад +1

    can i ask you how you made the lightning glow?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Sure. It was hand-painted frame by frame.

    • @Leon-wv4dn
      @Leon-wv4dn 3 года назад +1

      @@GabrielAguiarProdohh cool!

  • @권오윤-q9v
    @권오윤-q9v 3 года назад +1

    4:30 VFX EFFECT NOT FOUND UNITY 20194.24 F1 WHERE IS VFX EFFECT???

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +2

      Make sure you have Visual Effect Graph installed in the Package Manager.
      Also turn on Experimental Blocks/Operators in Edit>Preferences>Visual Effects.

  • @GustavoMondini
    @GustavoMondini Год назад

    im trying to do it pbut is not showing

  • @krist981
    @krist981 Год назад

    Delay before loop isn't a thing anymore, how to work around?

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад

      What's the Unity version you are using btw?

    • @krist981
      @krist981 Год назад +1

      @@GabrielAguiarProd 2021.3.17f1

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад

      Still exists even in 2022. If you select the Spawn block and look at the inspector you should see the Loop Duration, Loop Count and Delay Mode.

    • @krist981
      @krist981 Год назад

      @@GabrielAguiarProd i must be braindamaged, because I looked at that and thought "it isn't there!". Thanks, dude

  • @jollyroger8494
    @jollyroger8494 2 года назад

    Does anybody know a solution how to properly tile the lightning effect if I want different lengths of lightning? As far as I understodd the Rectangle node on Shader Graph does only accept values 0-1, so setting those to value greater than 1 has no effect. I tinkered with Set Scale on VFX Graph but this only streches the effect and not tile it.

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      You could try to use a tiling and offset node somewhere in Shader Graph (can't remember very well the full graph) or maybe multiply it or use a floor node and then multiply the floor node. Just brainstorming here.

    • @jollyroger8494
      @jollyroger8494 2 года назад

      @@GabrielAguiarProd Just realized there is already a Tiling Node that can be used for Y value. So I normalized the lightning for 1 unit legth and then set the length for Tiling Node Y value and the Y value of the Output particle Scale.

  • @The1111Dark
    @The1111Dark 2 года назад

    how can i make this into a 3D VFX ? currently it's 2D and can only be seen from one side, thanks in advance

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      You could a mesh, a 3d object. But the UVs need to be mapped properly and you need a similar lightning shape.

    • @The1111Dark
      @The1111Dark 2 года назад

      @@GabrielAguiarProd any chance you could do a video on this ?

  • @hroluffy8974
    @hroluffy8974 Год назад

    The lightning is too small even though i increased its heights and doesn’t even seem real.

  • @jglasshalfpool4640
    @jglasshalfpool4640 3 года назад

    Great tutorial. I am stuck at 4:50 though as my Output Particle Mesh node has no Shader Graph property?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Yeah you need to turn on Experimental Blocks on Edit>Preferences>Visual Effects. Enjoy the rest.

    • @jglasshalfpool4640
      @jglasshalfpool4640 3 года назад

      Experimental Operators/Blocks needs to be ticked in Preferences/Visual Effects

    • @jglasshalfpool4640
      @jglasshalfpool4640 3 года назад +1

      Wish I could say I had success with this tutorial as your end results look great, but at a certain point what was happening for me stopped matching what was happening for you. When you switch the Output Particle Mesh from cone to plane is where it goes wrong. The default plane is oriented differently and the lightning jus looks like it does in the rectangle node we made earlier. Tried creating a plane but result is tiny and looks nothing like the video. I'll try starting again from the beginning but I've done that twice already.

    • @akash_the_phenomenal
      @akash_the_phenomenal 3 года назад

      @@jglasshalfpool4640 same problem.... Did you solve this??

  • @ИларионХлыстов
    @ИларионХлыстов Год назад

    лайк поставлен, комментарий оставлен.

  • @risingdeathx
    @risingdeathx 3 года назад

    After adding the Lightning shader graph in the "Shader Graph" field in the vfx graph, it still renders just a plane. Not sure what I am doing wrong?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Play with the settings or simply rotate the camera until you see where your lightning is. Once you find it apply the desired rotation.

    • @Ced190
      @Ced190 3 года назад +1

      I had the same problem and I realized that I did not clicked on "save asset". I hope it helped and that I'm not too late

    • @teaMmMate
      @teaMmMate 3 года назад

      @@Ced190 Thank you thank you thank you thank you!!!

  • @phuri8706
    @phuri8706 Год назад

    I don’t have “Shader graph” in Output particle mesh
    can someone tell me how can i fix 😢
    Im sooo new of this btw 😂

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад +1

      Make sure you turn On Experimental Operators/Blocks in Edit>Preferences>Visual Effects.

    • @haotamht
      @haotamht 10 месяцев назад +1

      @@GabrielAguiarProd thanks, I can fix it :>

  • @dianjakap4805
    @dianjakap4805 2 года назад

    performance-wise, is this good for mobile game?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      Hmmm VFX Graph doesn't work on most mobiles, only on high-end ones with a GPU capable of compute shaders.

  • @frankypappa
    @frankypappa 3 года назад

    "if you like the tutorial hit the like button and subscribe"...
    Done.. and done!

  • @xofebruary
    @xofebruary 3 года назад

    thanks for the great tutorial! I thought everything was working perfectly, but my lightning is 2D, and only viewable from the front angle. I checked in wirebox mode and no mesh deformation seems to be happening either. any help would be greatly appreciated!

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Hey maybe rotate it? If not then remove the orient block in the output particle quad, and then try rotating

    • @SUPERSITE-com-br
      @SUPERSITE-com-br 3 года назад

      I was having tha same issue, since i wanted to use it for a projectile, the solution i found was switching from Output Particle mesh to Output particle Quad(you will need to play with the shader values to get it to look good again) then adding a Orient: Fixed Axis in your Orient Particle Quad. Depending on the orientation of your lighting you may change where is "Up" in the XYZ values. (mine is horizontal so Y is Up or 1

  • @Lunatheia
    @Lunatheia 3 года назад

    I'm not getting my VFX Shader Graph nodes to animate so I'm going blind. Anyone got an idea how to make your nodes animate?

    • @Lunatheia
      @Lunatheia 3 года назад

      So I heard that sometimes you'll need a camera in your scene for time nodes to work. I had one in my scene but all I needed to do to make it work was to press play and then things started to animate.

  • @jaebigc
    @jaebigc 3 года назад +1

    why my plane won't face the camera

    • @philippeb.4637
      @philippeb.4637 3 года назад

      Did you find out ?

    • @jaebigc
      @jaebigc 3 года назад

      @@philippeb.4637 not yet

    • @Rafae017
      @Rafae017 2 года назад +2

      this is super late but in output particle mesh add orient: face campera plane and it should work

  • @CaverHTC
    @CaverHTC 3 года назад

    Please help Gabriel
    When i'm adding the shader to the Shader graph field for the Particle Mesh 5:15
    I get an error:
    Shader error in Output Particle Mesh': redefinition of 'IsGammaSpace' at shadergraph@7.3.1/ShaderGraphLibrary/Functions.hlsl(9) (on d3d11)
    Any idea? I've tried on Unity 2020 and Unity 2019.

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад +1

      I think you need hdpr or urp and then create and select a pipeline before the graphics are changed and this is possible
      To do it go to package manager (as shown in this video) download urp or hdrp then rightclick in the folder (while in unity) and then create render pipeline then go to project settings via edit (top left) and go to graphics and change it from none to the one you created
      I hope this help and good luck

    • @yigitkahraman2695
      @yigitkahraman2695 3 года назад +1

      Try changing Color Space to Linear in Player Settings.

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      In case you still have problems, try to create a new project but with Unity Hub and with URP selected.

    • @CaverHTC
      @CaverHTC 3 года назад +1

      @@GabrielAguiarProd Hey that seems to do the trick! Thank you so much

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      @@GabrielAguiarProd if you use urp you can reimport standard shaders to the new format with the reimport button

  • @lobokaiser7820
    @lobokaiser7820 3 года назад

    work with amplify shader editor?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад +1

      Probably. The idea for the shader is the same. But I don't think amplify works with VFX Graph, yet.

  • @francescoiaia6094
    @francescoiaia6094 3 года назад

    Vfx Graph works also in Android project now?

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      I thought it always did it was just the shaders that weren't supported but please let me know if I'm wrong I'm not too certain myself to be honest

    • @shirosurfer8864
      @shirosurfer8864 3 года назад +2

      Yes but not recommended buggy and relative expensive try using shuriken which is CPU based gpu is very limited in phones even in flagships except for very few

    • @kurtisgibson2929
      @kurtisgibson2929 3 года назад

      @@shirosurfer8864 useful info

  • @DioSatyaloka
    @DioSatyaloka 3 года назад

    How's the performance for mobile?

  • @onewayroad3765
    @onewayroad3765 3 года назад

    VFX graph works on urp?

    • @GabrielAguiarProd
      @GabrielAguiarProd  3 года назад

      Yes it works. This tutorial was made in URP for example.

  • @kryloth3628
    @kryloth3628 3 года назад +1

    I'm sorry, but i need help again..
    My particle pivot is acting weird, I'm not sure why, like the lightning is growing downwards like it needs to be, but in my case the position got offsetted because of the pivot, i tried messing around by changing the pivot but it seems that for me the position got offsetted too
    I recorded it so that you could maybe take a better look at it..
    ruclips.net/video/QMQ9Z2IbCRU/видео.html

    • @kryloth3628
      @kryloth3628 3 года назад +2

      Nevermind, it's solved
      for some reason, it needs a value of 0.5 instead of 1 :|

    • @Joool10
      @Joool10 3 года назад

      @@kryloth3628 thanks

    • @dandragomir6413
      @dandragomir6413 2 года назад

      @@kryloth3628 ty alot!!!!!!!