Unity 2018 - Game VFX - Weapon Trails / Slash Tutorial

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

КОМЕНТАРІ • 139

  • @GabrielAguiarProd
    @GabrielAguiarProd  6 років тому +26

    *UDEMY COURSE - VFX FOR GAMES* : www.udemy.com/course/visual-effects-for-games-in-unity-stylized-explosion/?couponCode=17.99_UNTIL_20-09
    *NEW SLASH* in Shader Graph: ua-cam.com/video/9Nv28O2OIoQ/v-deo.html
    Quick tip for a performance improvement.
    Increase the value of 'Minimum Vertex Distance', in the 'Trails', since lower values generate more triangles.
    Cheers, have a blast!

  • @creationsmaxo
    @creationsmaxo 4 роки тому +140

    Great tutorial in general!
    Obviously, as it was made in Unity 2018, there are some changes/issues if anyone is using Unity 2019 or 2020 as the particles system got a bit of an upgrade.
    In 2019 and 2020, to make things works as shown in the video, there are a few changes (as well of possible optimization) that has to be made.
    Here's a quick list of the changes and why they are necessary in 2019 and 2020:
    *• Change Start Speed to 0*
    Prior to Unity 2019, the "trail" option was, by default, only using the movement of the system to generate the particles and was ignoring the start speed. Since Unity 2019, the start speed is now active and this will make the particle active toward a direction regardless of the movement. (In other words, it's ugly.) Since 2019, setting Start Speed to 0 makes it so that any generated particles are truly at the position of the object in space during their lifetime.
    *• Use Rate over Distance instead of Burst & Rate over Time*
    This is more of an optimization than a change. Using Burst & Rate over Time means that the weapon will ALWAYS generate a trail even if it's not moving. That's approx. 80 faces per weapon (if you limit things to 40 particles) Using the "Rate over Distance" not only allow the particles to be only generated when the weapon is in movement, but it's also allow you to use fewer particles as there's far fewer chances of getting the small bits where the particles aren't enough present. It does requires a bit of changes to the lifetime.
    Using the settings shown in the video gives me approx 55-60 particles at a time.
    Using Rate over Distance (20), lifetime of 0.2-0.6 and start size of 0.05-0.2 gives me around 38 particles at most at a time.
    This might sound small, but that's a 30% lighter trail on the CPU and, if applicable, GPU and it's 99% lighter if the object doesn't move as particles are only generated when in movement.
    *• It's better to use a texture that is tiled horizontally*
    This is more of an artistic and technical thing, but trails works a lot better when you use a texture that is tiled horizontally. As such, it helps reduce the "jiggering" of the curved movements. For example, instead of using the default "blurry dot" particle texture, the results will be a lot better if you use either a full white square (and apply the color through the particle system) or a vertical linear gradient (if you want smoothness in the trail lines).

    • @G76Dev
      @G76Dev 4 роки тому +5

      Thanks! This was very useful

    • @clssmusic
      @clssmusic 4 роки тому +1

      Thanks a lot. It looked so ugly on my version and your tips helped so much!

    • @dueckis
      @dueckis 3 роки тому +1

      Thanks, you saved me

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

      You saved me with the update info. Thanks bro

  • @meznaneTB
    @meznaneTB 4 роки тому +5

    I've taken a bunch of your tutorials, for some reason this one really stands out as one of the best. I think it's the way you describe what you're applying and why you're applying it. 10/10. Most reusable effect I have made following your tuts as well... THANKS!

  • @Swissdiv
    @Swissdiv 2 роки тому +1

    First Intro of a youtuber I skipped back because it was so satisfying

  • @Ofenkatze
    @Ofenkatze 2 роки тому

    That woldspace tickbox in the trails module.... dude, you literally saved my sanity. Thanks so much!

  • @alextronic4503
    @alextronic4503 4 роки тому +3

    I dont know why I didnt think of a particle system rather than using the trail renderer. This is so much better

  • @previll
    @previll 6 років тому +7

    Damn this is exactly what I was looking for, your tutorials are really nice. There aren't a lot of videos like these on UA-cam right now.

  • @AbdulRahman-vt4bw
    @AbdulRahman-vt4bw 6 років тому +28

    Best Channel for learn Unity Effects
    i really love it!

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

    To add onto this if you speed up the simulation speed you can get even smoother lines. It does effect performance and other numbers like particle lifetime.

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

    Thank you! Even in 2023 this tutorial helps!

  • @endaevor427
    @endaevor427 6 років тому +35

    Hey Gabriel, 'been asking you some advices for projectiles when i was still a student. I'm now working at Ubisoft ;) Good to see you going well with your channel.

    • @GabrielAguiarProd
      @GabrielAguiarProd  6 років тому +7

      Hey Steven. That's so awesome man, glad that I could help you out.
      I hope you enjoy your work at Ubisoft, couldn't be more proud.

    • @endaevor427
      @endaevor427 6 років тому +5

      I do enjoy it, even more!

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

      what a fairytale

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

      @@takacao8373 Not a fairytale if it's real.

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

      @@endaevor427 you're right. Do you mind writing another "fairytale"? I could really use an internship to step into the game industry...

  • @meenuchan7946
    @meenuchan7946 3 роки тому +1

    Thank you for teaching us such an awesome trail effect using particle system. This is very useful.

  • @Stinger-rq4gy
    @Stinger-rq4gy Рік тому +1

    Thank you.
    I made flame sword from this tutorial and light trails on another sword.

  • @zombievirals
    @zombievirals 5 років тому +2

    Frustrating at first due to my lack of experience with the particle system, but once I got it, wow!! This is beautiful, I can't thank you enough!!

  • @FrostshadowStudios0310
    @FrostshadowStudios0310 4 роки тому +1

    Really nice and somewhat complicated, yet easy to follow along. Thanks for the tutorial, my friend.

  • @davdev793
    @davdev793 5 років тому +4

    Thats pretty nice friend. I struggle a bit on particle system and vfx on unity and that helped alot. Thanks!

  • @FrostshadowStudios0310
    @FrostshadowStudios0310 4 роки тому +1

    Nice, friend. Now I can create a cool slash effect with a simple trail paired with a slash effect from another tutorial.

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

    Would you apply the same method to do a shockwave trail effect? And just swap the material / renderer with a shadergraph?

  • @GorasGamesStudio
    @GorasGamesStudio 3 роки тому

    Great Tutorial, I used this to make a water effect following the flow of a river ! Thank you
    There are some changes in Unity 2021 but not difficult to adapt !

  • @idle.observer
    @idle.observer Рік тому

    Hello! I noticed that video is a little old. Would you recommend using Particle System for the same effect in 2023 or VFX?

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

    Could you pls make a remake of this video for Unity 2023? I tried to do exactly same as you did, but my trail is just looks like fog.

  • @Banaaani
    @Banaaani 2 роки тому

    My particles are rotated wrong way. Rotating the whole particle system or the shape only make the emission shape rotate instead of the particles. Plz halp

  • @michal4736
    @michal4736 4 роки тому +1

    How about performance ? How many particles is minimum to use and keep good performence? I can see that you have between 50-80 per second, did you use them just to show the effect without care about performance or it is fine ?
    I am just curious because I am rather new with fx and I am trying to keep up to 10 per second for the mobile games.

  • @rizaljamaludin1288
    @rizaljamaludin1288 4 роки тому +1

    omg. this is very helpful. i will try to get your patreon!

  • @yuuxiao5323
    @yuuxiao5323 5 років тому +1

    When I create the glow on the sword, it doesn't align with the sword but is like a straight one (y axis). How do I fix that?

    • @clssmusic
      @clssmusic 4 роки тому

      Same for me. Did you find a solution?

  • @dmtuan
    @dmtuan 4 роки тому +1

    What a really, really amazing tutorial. Thank you so much for it!

  • @HHungriaP
    @HHungriaP 5 років тому +1

    I Hate youtube I got the bell Active and I Never found the notification for this awesome tutorial!!

  • @amuletgames1046
    @amuletgames1046 4 роки тому +5

    This is amazing..I'm really considering to take your udemy course

  • @Stinger-rq4gy
    @Stinger-rq4gy Рік тому +1

    Thank you for makiing these

  • @didiXxXify
    @didiXxXify 2 роки тому

    Why noone on youtube never show how to import end export my fbx after done why?

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

    I have a qeustion;: why is he using edge instead of mesh renderer?

  • @efc0s864
    @efc0s864 3 місяці тому

    how do you make it stay constant

  • @roberttorres3009
    @roberttorres3009 4 роки тому

    How do I make the trail I created follow the animation? (IE the way you have it set up for the sword swing) My character is making a sweeping claw attack, so I would like it to follow the movements/animation of the arm as it swings across.

    • @GabrielAguiarProd
      @GabrielAguiarProd  4 роки тому

      You can parent the trail to any object. In this case to the hand bone for example.

  • @aninuji8882
    @aninuji8882 3 роки тому +1

    Thank you so much for this tutorial!

  • @rudyongkogaming8262
    @rudyongkogaming8262 6 років тому +2

    WAW This is what i want to make my games.... Thank You So MUCH.......

  • @Shumi_Desu
    @Shumi_Desu 5 років тому +1

    Thanks for this awesome tutorial. But why is it that my glow particles is only visible in front of the sword and not behind?

    • @GabrielAguiarProd
      @GabrielAguiarProd  5 років тому

      Try to make the box cover the whole sword, if that doesn't solve it have a look into the layers or the order in layer of the particles.

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

      Use render mode box, instead of billboard

  • @backinjin1416
    @backinjin1416 4 роки тому +1

    There was a way like this !! Thank you very much

  • @AlanDarkworld
    @AlanDarkworld 5 років тому +1

    Nice one! Is there a way to make the particles refractive, such that it looks as if the sword creates a vacuum behind it (like in Devil May Cry)?

    • @GabrielAguiarProd
      @GabrielAguiarProd  5 років тому +1

      Yeah you can probably achieve something similar with Refraction also know as a Distortion Shader too.
      Good luck!

  • @bomfirit75
    @bomfirit75 2 роки тому +1

    Thx, this helped me a lot.

  • @Monroy518
    @Monroy518 6 років тому

    My trails don't make a smooth circle but a poligonal one, even though my minimal vertex is 0.01. I don't really know why, do you gys have any ideas?

  • @ahmedsiddique2998
    @ahmedsiddique2998 4 роки тому

    Hi, Nice tutorial I have question about performance using particle effects over trail renderer and especially for mobile applications

    • @creationsmaxo
      @creationsmaxo 4 роки тому

      In terms of performances, the trail renderer has a relatively stable performance impact based on its few settings while the particles effect method can be either far more optimized (lighter on the CPU) as you can actually produce a really good result with even just half of the faces generated by the most optimized trail renderer settings, but 2 to 3 times more beautiful results... but you can also totally kill your mobile application by not setting it right.
      The most awesome part of the particles method is the ability to change the particles on the fly in real-time and that includes 1 little trick that works wonderfully with mobile optimization.
      On mobile application, the best thing to do with things like particles effect is to keep them active and present, but without particles. This is to avoid having any of their ram-cached data eaten by the Garbage Collector (GC) as, if such is the case, it will have to reload the particles data (such as the texture(s)) again which then can again be eaten by the GC and so on. Having the particle system always present and active makes the GC unable to collect and waste the data hence being faster to start again without any impact on the CPU and, if applicable, GPU. To do so, simply change the emission rate to 0 through a script. Not only will this keep the particle system "alive" and avoid filling the GC, but it will also allow any remaining particle to "finish their life" and won't make anything disappear (such as if you disable the particles system).
      Another thing that is cool with the particle method, for optimization, is the ability to simply reduce the number of particles if the device is low-end. This might look slightly worse, but it's the best considering you don't break the (artistic) feeling of your effect due to the device not being able to render everything. After all, it's better to have a least-beautiful effect than no effect at all. The Trail Renderer has this issue as its available options don't work well with thing like per-device optimization. The few options that allow optimization (in the trail renderer) are options you, usually, already have optimized as much as possible from the start so any further optimization usually ends up looking way too bad or broken.

  • @zabuzay9869
    @zabuzay9869 3 роки тому

    Great video! But I have one problem, when I play the sword animation the trails are there, but after 3 seconds (The life time of the particle system) they are gone. But I think that you also had the lifetime set to 3 sec, or did I miss one setting where I can like restart the particle system when the animation plays again?

    • @AsianIdiots323
      @AsianIdiots323 3 роки тому

      There's an option that says "Loop" in the particle system. Enable it. Literally just that :P

    • @zabuzay9869
      @zabuzay9869 3 роки тому

      @@AsianIdiots323 Thanks! I think I just didnt saw that.

  • @TheBikeOnTheMoon
    @TheBikeOnTheMoon 4 роки тому

    is there an effect to leave a sword trail but with the actual sword? like leaving multiple image of the sword in a trail.

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

      there is a tutorial by Blackthornprod that shows how to do this. What you do is instanciate a copy of the sword prefab every 0.x amount of seconds while the animation is playing, and change the transparency for each one to give it a fade effect

  • @Niko_3D
    @Niko_3D 4 роки тому

    In unity 2019 trying to follow this and it doesn't even look close to it.

  • @PhoenixGameplay100
    @PhoenixGameplay100 6 років тому +1

    The problem is when you swing the sword fast, it creates a very polygonal shape instead of a circle one

  • @好一杯子
    @好一杯子 6 років тому +1

    easy and short video this is what i want!

  • @DJAultric
    @DJAultric 5 років тому +4

    Wipon trails!! MY favorite

  • @Malryni
    @Malryni 6 років тому +1

    Thank u so much! U're tutorial are awesome!

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

    NICE VIDEO!

  • @elevatexd
    @elevatexd 4 роки тому

    How did he do the black in the trail?

  • @midnightspark_
    @midnightspark_ 4 роки тому

    How could I get the electric effect shown on the blade shown first?

    • @GabrielAguiarProd
      @GabrielAguiarProd  4 роки тому

      You can get it here: www.patreon.com/posts/weapon-trails-21309236

  • @duztine
    @duztine 2 роки тому +1

    Awesome. Very helpful

  • @IQjohnking
    @IQjohnking 2 роки тому +1

    You save my life.

  • @thezzxc9904
    @thezzxc9904 4 роки тому +1

    really cool! Nice job!!

  • @ivan-petrovich-IV1
    @ivan-petrovich-IV1 3 місяці тому +1

    Thank you sooooooooooooooooooo much

  • @sayori3650
    @sayori3650 6 років тому

    How else can i add effects without vfx?

  • @soy300
    @soy300 5 років тому +1

    helped a lot.
    thanks man!

  • @outerstudios830
    @outerstudios830 4 роки тому +1

    Amazing video!!!

  • @michelsantos4236
    @michelsantos4236 6 років тому +1

    Uuooooouuu show! Fantástic friend!

  • @OmeedNOuhadi
    @OmeedNOuhadi 2 роки тому

    Thank you for sharing!

  • @manolov4074
    @manolov4074 4 роки тому +1

    Very good tutorial . Good job man I really love your videos and your effort Keep it UP LIKES ++ ;

  • @techbandhu5682
    @techbandhu5682 5 років тому +1

    Really awesome

  • @hernandon7533
    @hernandon7533 5 років тому +2

    Pretty good tutorial. It would be good if you can update it to 2019.11. Thanks a lot man!

  • @paulrobinson5490
    @paulrobinson5490 6 років тому

    Very nice tutorial. Could you do a tutorial how to make a main character auto aim weapon at enemy in a mobile game, that would be amazingly helpful. Thanks for your efforts making tutorials :)

  • @downthecrop
    @downthecrop 2 роки тому +1

    hey thanks brother

  • @erosjagatpulagana6403
    @erosjagatpulagana6403 4 роки тому

    hope this is still relevant, but does it work for 2D as well?

  • @omerkose8735
    @omerkose8735 6 років тому +1

    Can I implement this on 2D ?

    • @GabrielAguiarProd
      @GabrielAguiarProd  6 років тому +1

      Yes you can.

    • @omerkose8735
      @omerkose8735 6 років тому +1

      ​@@GabrielAguiarProd I am thankful for your really quick answer.Your videos are awesome.Keep up the good work

  • @nunosantos8290
    @nunosantos8290 4 роки тому +2

    O melhor deste canal é o facto de seres português JK

  • @neverclickbait7066
    @neverclickbait7066 3 роки тому +1

    Thanks you so much!!!!!

  • @motifgaming2080
    @motifgaming2080 6 років тому

    Pls do that 🌽 corn effect from projectile project..

  • @alnyroung705
    @alnyroung705 6 років тому +3

    I,m luck got this channel, this is so cool, can you please make the tutorial more details ? (Zoom, subs, or anything else) thanks dude
    Auto SUBSCRIBED! 😁

  • @mohamadthaier9660
    @mohamadthaier9660 4 роки тому +1

    Thank you

  • @ChernobylComedyAndWings
    @ChernobylComedyAndWings 2 роки тому

    thank you so much

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

    so good!

  • @TheUnityNoob
    @TheUnityNoob 4 роки тому +1

    You Are A BEAST!

  • @ererbe
    @ererbe 6 років тому +1

    Lol, exactly when I neede this. how did you know? xD (joke, but I really need this...)
    Thanks for this tutorial, I used this today to make 2 of my wepaons look very much nicer. (I added own particles, but the trails are very nice, thanks)

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

    thx

  • @timeforusjyc6056
    @timeforusjyc6056 6 років тому

    Awesome. auto subscribe!

  • @Mr-sy7lb
    @Mr-sy7lb 5 років тому +1

    Awesome !

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

    aha! thank you! (2023)

  • @jamesmcelroy414
    @jamesmcelroy414 6 років тому +1

    Thanks man

  • @TedThomasTT
    @TedThomasTT 6 років тому

    looks good

  • @tahirdevlog2047
    @tahirdevlog2047 6 років тому +1

    Thanks

  • @mrbetatool
    @mrbetatool 6 років тому

    hey gabriel, do you work freelancer? I have a job for you

  • @andremoraes7067
    @andremoraes7067 6 років тому

    are you brazilian?

  • @Dev-gp5hn
    @Dev-gp5hn 5 років тому +1

    greate tutorial guy 1 like and 1 subscribe for you thank you

  • @fabricioronison
    @fabricioronison 6 років тому +2

    Muito bom :)

  • @kichul1122
    @kichul1122 6 років тому +1

    good

  • @rf2642
    @rf2642 5 років тому +1

    How do you even figure this shit out?

  • @GG1440
    @GG1440 6 років тому

    Cool!

  • @aodoemela
    @aodoemela 5 років тому +1

    You say weapon like whypon lol. Good video tho

    • @TK-sr2hz
      @TK-sr2hz 4 роки тому

      Everytime I say weapon now I say whypon

  • @robertvalentic4939
    @robertvalentic4939 5 років тому +1

    "wipe-on trails"

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

    W Video

  • @GAMEENDEDMEMES
    @GAMEENDEDMEMES 5 років тому +1

    Wifepon

  • @glebkrel5526
    @glebkrel5526 3 роки тому +1

    Thank you for the cool video !!!

  • @ricogt7092
    @ricogt7092 3 роки тому +1

    Thank you so much for making this tutorial