Unity VFX - Lightning & Electricity w/ Realtime Lights (Particle System Tutorial)

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

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

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

    6 years after upload and this is the best tutorial on this trail system i have found so far

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

    Holy crap, three years later and this is still amazing, thank you!
    Helped me with some of my VRChat woes - specifically a lightning effect for the Doom Eternal Crucible, and more indirectly showing how particle collisions and sub-emitters work.
    Might be able to tweak some of this for some slightly weird things - specifically, maknig a throwable axe. Still not convinced it'll work, but it's worth a shot...

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

    By following your advice step by step I got a vastly different lightning.

  • @teh1archon
    @teh1archon 7 лет назад

    Truly the best tutorial series on VFX in Unity. No doubt I'll buy the package at some point just to master new techniques.
    I haven't seen all the tutorials yet but here's an idea for one (in case and there isn't one). In the last Unite conference there was a live training on Unity 5.5 particle system and it was said there that the game Assault Android Cactus used only particles as projectiles and the hit detection was a callback from the particle collider. Maybe show a small demo how to set it up? While I'm confident I can do it myself, you seem more knowledgeable about optimizations thus maybe you can enlighten me and others. It could even be a follow-up to this tutorial to show how "random lighting attacks in an area could deal damage to targets within that area of effect" in a way that really only "true strikes" deal damage.

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Sounds like a great idea! Although it could be a while to get through my queue of tutorials I have planned.

  • @random_precision_software
    @random_precision_software 5 лет назад

    I love it when I come across channels like this.😁 keep up the great work.

  • @anthonystewart7762
    @anthonystewart7762 7 лет назад +6

    Great tutorial and subbing for sure

  • @TheMhankel
    @TheMhankel 7 лет назад +1

    Love you tutorials! Good on you, man!

  • @prathameshlondhe4522
    @prathameshlondhe4522 7 лет назад +2

    Nice Tutorial Learned A Lot

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      Thanks for watching and commenting. Glad you learned a bunch!

  • @alaslipknot
    @alaslipknot 7 лет назад

    Your channel is a blessing

  • @CelestiaRosa
    @CelestiaRosa 4 года назад

    Underrated Video! :( I'm trying to master Electricity and Lightning this is way to easy to understand

  • @TrueTempleDog
    @TrueTempleDog 7 лет назад

    Hey, big thanks for the runthrough, man! This is gonna add some serious panache to this puzzler project I'm working on. Cheers!

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

    Great video dude

  • @3djohnboy
    @3djohnboy 7 лет назад

    Thank you best part no coding required, appreciate it

  • @soy300
    @soy300 5 лет назад

    Thanks man, good tutorial.
    Very, very easy to follow.
    Cheers.

  • @nerdyMUG2020
    @nerdyMUG2020 6 лет назад

    Thanks! It helps me a lot! It's really cool and easy to make.

  • @KaninTemsrisuk
    @KaninTemsrisuk 7 лет назад +1

    This is awesome! Thank you very much.

  • @pizzaguyrecording1666
    @pizzaguyrecording1666 6 лет назад +1

    Nice tutorial

  • @Pr3DaToR15
    @Pr3DaToR15 7 лет назад

    This channel is awesome!

  • @Sefsama
    @Sefsama 7 лет назад +1

    Thanks! That was a lot of help to me!

  • @zephyrusmckinnon6546
    @zephyrusmckinnon6546 6 лет назад

    Great Tutorial!

  • @mikmik2490
    @mikmik2490 4 года назад

    wow it was very useful thanks

  • @macielc89
    @macielc89 7 лет назад

    Amazing Tutorial, loved it! I've already watched some of your tutorials, not a lot, and always end up with the same question: How do you design the textures of your particles and how do you set the material?
    thanks a lot for your tutorials!

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Hi there! Standard stuff for textures: mostly Photoshop and also After Effects. Materials just hold the values for the shader as a preset, so nothing special there either.

  • @ljreizen4129
    @ljreizen4129 6 лет назад +1

    hey! thanks for the tutorial it really help me~ anyway i have a question about the lightning can you make it spin around an object? but just in circle? if so mind if you tell me how? thanks!

    • @MirzaBeig
      @MirzaBeig  6 лет назад

      Yes, you can map the velocity over lifetime or use the new orbital velocity in Unity 2018.1.

  • @r8Rusoski
    @r8Rusoski 6 лет назад

    Awesom man! Thank you! :D

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

    PLEASE, does anyone know why my particle trails are flickering? I've followed this tutorial several times, and it keeps ending up with flickering particle trails. I've even done this a couple years ago and it worked properly, but now I can't replicate this without flickering/stuttering particle trails. Does anyone have any suggestions?

  • @feliperafael8104
    @feliperafael8104 6 лет назад

    Amazing

  • @user-tf7hn9st5b
    @user-tf7hn9st5b 5 лет назад

    nice tutorial
    dosent need other software or plug-in
    Real Origin Unity

  • @TheAlienpope
    @TheAlienpope 7 лет назад +7

    Well..... I know how to code and make cool games. All i am lacking is making special effects! Thank you so much for these! Exactly what i need to start learning! Insta sub!
    I've been looking at the popcornfx plugin/software for unity. Anything you'd consider making tutorials with?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      I've never used PopcornFX. As far as I know, Shuriken holds up just fine.

    • @TheAlienpope
      @TheAlienpope 7 лет назад

      Yeah well... If anything, you're proving that true ^^
      Just bought your pack over at the unity asset store! I'll make sure to credit you if I ever get something released :)

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Good timing :)
      You can check the forums for progress. Another update is in the works.

    • @TheAlienpope
      @TheAlienpope 7 лет назад +1

      Okay cool! Will check it out!

  • @diveshnair7543
    @diveshnair7543 7 лет назад

    you absolute legend!!!

  • @jan050375
    @jan050375 7 лет назад

    i had my doubts about particle effects when i switched from UE4 to unity, not anymore.
    actually, there is one problem, in UE4 you can give the particles sort of a bloom, even in daylight, so they always look like they glow, not only at nighttime.

  • @sskenth
    @sskenth 7 лет назад

    That was amazing, does you pack also include a prefab of that?

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      Yes, it includes all the effects shown in the video (including the one made in the tutorial itself).

  • @aaronrory5175
    @aaronrory5175 7 лет назад

    Thanks for this...!

  • @RaghunathRajaram
    @RaghunathRajaram 7 лет назад

    Thanks for making this video. I use unity for mobile games so I'm wondering how processor heavy these effects are and if they will have a massive performance hit on phones? Esp the dynamic lighting effects. If the stuff you showed in this vid is in fact too heavy for mobile, It would be super helpful if you did a video on how to achieve similar results on mobile, while still maintaining 60FPS.

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      I'd check the profiler and do some tests with whatever hardware you're targeting for mobile platforms. There's a generic set of rules to follow for optimizing particles involving switching shaders, reducing overdraw, and of course... the particle count. For the noise module, take a look at reducing the complexity by using 2D or 1D noise. And you can also setup your particle systems to be deterministic. Unity has a whole blog post on that.

  • @IIIQZAIII
    @IIIQZAIII 5 лет назад

    Best one!!!

  • @dvdicecold666
    @dvdicecold666 7 лет назад

    Is it possible to combine the trailrenderer with something like the clothsimlutlation?
    I have a huge moving ball.
    My target is that 4 Trailrender, attached to the ball, draw a trail along the movement BUT I want that the produced trails get dragged within the wind-shadow of the ball.
    --,,,,,,,,,
    O --------
    --``````
    Or simply: trails get pushed to the ground.
    (Sry about the broken english)

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      If I'm understanding you correctly, then I think for your case you'd be better off using the actual trail renderer, not the one built into Shuriken since you'd need to specifically assign the positions to the trail origins. With particles, you'd need to get and set the positions by getting the particles from the system and then putting them back. You'd be better off just using four trail renderer components. Or, you can use four particle systems with trails enabled. Either way, you're using four game objects.

    • @dvdicecold666
      @dvdicecold666 7 лет назад

      hmm ok.
      Gonna try something.

  • @vadermemo
    @vadermemo 7 лет назад

    Hi Mirza, great tutorials. I wonder if this effect can be create from point A to point B, Is there exists some configuration in unity 5 or 2017 to make this effect? thanks in advance

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      You can either set the velocity over lifetime for the particle in the editor, or use scripting to do that. I have a tutorial already for it :)

    • @vadermemo
      @vadermemo 7 лет назад

      well done, but you have a lot of tutorials :) . Which is the one with this explanation? thanks in advance

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      ole Custom particle programming.

  • @waylee5888
    @waylee5888 7 лет назад

    Hey , I am intrested in your ultimate vfx on asset store. But could you tell that whether the lightning in this video included in the ultimate vfx or not? Beacause in this video, you used unity 5.5. But the version on asset store is 5.4..Thanks. Forgive my english.

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Hi there! The version on the Asset Store already includes this effect, and is live with the Unity 5.5 update. The description says that the minimum requirement is Unity 5.4.1, but if you look below at the details, you'll see that it was submitted with multiple versions of Unity, including 5.5.

  • @shitaoli7352
    @shitaoli7352 7 лет назад

    Awesome effect.And the most suprising thing is the tutorial is just 9mins.
    But when I do the same in my unity, it just looks not so beatiful.I think it may caused by the surrounding enviroment.
    Could you tell us how to build such a beautiful enviroment?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      I use some image effects. Check out the Post-Processing Stack by Unity for a great free plugin for that.

    • @shitaoli7352
      @shitaoli7352 7 лет назад

      Yeah,thanks a lot.

  • @rush9188
    @rush9188 6 лет назад

    How are you able to see the lights in the scene? Mine is just the default scene so I can't see any actual glow effects

    • @MirzaBeig
      @MirzaBeig  6 лет назад

      You can use Unity's post-processing stack for bloom.

  • @VGamingJunkieVT
    @VGamingJunkieVT 7 лет назад

    Is there a way to send damage to something that's colliding with the particle trail?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      With the trail, no. With the particle itself you can send messages.

    • @VGamingJunkieVT
      @VGamingJunkieVT 7 лет назад

      Guess I can fake it by having a trigger box around the lightning and anything inside of it takes damage.

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      I'd assume that's how they do it in many games. If you really need more precision, you can always save the position of the particles over time and then raycast between the saved points to get collision as if it was actually with the trails.

  • @thenameisnik
    @thenameisnik 7 лет назад

    hey nice tutorial, one question i dont have the Noise option on my particle system any idea why?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      It's a new module that was added in Unity 5.5.

  • @RamonWinshester
    @RamonWinshester 6 лет назад

    How can I reduce the size of lightning except for "scale" ??

    • @MirzaBeig
      @MirzaBeig  6 лет назад

      Decrease the lifetime and the size of the particles.

  • @knightpraetor
    @knightpraetor 7 лет назад

    how do i make the lightning go between two points? I was wondering whether to use line renderer or to try to create a particle attractor of some kind. do any of the other tutorials cover something like this? i've only listened to the first 3 so far

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      The custom particle programming tutorial video I have covers how to make an attractor :)

    • @knightpraetor
      @knightpraetor 7 лет назад

      oh awesome. i just bought your pack. there look to be a lot of nice examples. however, i'm not sure if i really ought to use particle effects for what i want or not.. may i ask your opinion on it?
      I basically want to have the user be able to select words in a sentence and then have some sort of line created that connects the words on screen as the user drags the mouse to the next word. however, particle physics effects look a lot cooler than just drawing a line.
      i guess i could also use linerenderer, but it would be so much cooler to have some sort of glowing energy line/lightning instead.
      is it possible to just edit a particle effect's particle's motions from a script? i'm just wondering whether i should just use a particle attractor or need to code up something manually. Since I know the actual target (the next word moused over), i think maybe angle the particle physics effect based on the next word, then have an attractor that only attracts in a small range would work.
      Can attractor's be set up to not attract all particle's? or s
      should i be using some other method.
      Sorry for being a noob. i've only coded windows/wpf/work related stuff before, and don't really have much experience with unity.
      i just don't want to spend time redoing stuff that has already been done if there is an easier way. saving time is always good

    • @knightpraetor
      @knightpraetor 7 лет назад

      I think i figured most of it out or will be able to. it looks like your attractor can be set for a particular particle system, so i could set that up to work. Or what might be easier is to just use a script of this form.
      forum.unity3d.com/threads/particles-system-end-point.174836/
      to just make a particle system move in the direction i want. Anyway I will play with it a bit
      oh it looks like the tutorial you linked does something similar. I will try finishing it first then. anyway hopefully i can figure it out from here. i was just worried that maybe i should be using some other method. like maybe i just used some line-renderer option that

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Hey again! Yeah, you can use the particle attractor component in UVFX to do that if you want actual particle physics. You can use a line with an animated UV if you just want a cool effect, and if you want particles, but not the physics and other components, you can use something along the lines of the script you link, which interpolates the position directly rather than working with the velocity. It's context sensitive, and will work globally if put on a non-particle system object (not recommended due to being very unefficient). If you attach it to a particle system, then it will work on that particle system only. If you define specific particle systems it should work on, then that will override any other settings.
      You can use the API with AddParticleSystem and RemoveParticleSystem for affectors to dynamically change these at runtime. You don't need to angle or rotate the system itself in anyway, because it works on per-particle level for the affected systems. Just setup which particle system it should work with (which would ideally have a position at the first word), then set the attractor to be the target position and the particles will flow from the first word to the second.
      Just a side note: RUclips comments is a weird place for support, I think. E-mail is better for this so I can format and read over comments/replies. You can find my contact information in the README :)
      Let me know if you need clarification!

    • @knightpraetor
      @knightpraetor 7 лет назад

      thanks. just went through the tutorial and it was a lot of help.

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

    Why does your line look so much cooler than mine?

  • @amaurote1
    @amaurote1 7 лет назад

    Is there an option to aim every arc? To hit a specific position for example...

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      With scripting only. You can probably modify the curves to do that, too.

    • @Sparclen
      @Sparclen 5 лет назад

      I know it's a bit late, but one way of doing it is by adding a windzone which pulls the particles in.

  • @sudharsanuthayasuriyan2717
    @sudharsanuthayasuriyan2717 5 лет назад

    bro i need the sky box and the platform you used in all of ur videos. i request

  • @Simon-fg8qu
    @Simon-fg8qu 7 лет назад

    Quick question. I'm trying to make the sub emitter branch out just like the original particles to make it look more like lightning but I'm running into a problem. The trails (for both the original and sub particles) start a little bit after the particle has started moving as opposed to right at the particle system location, so the sub particles don't "connect" to the original trail. Do you know how I could fix this?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Is it the texture? It might be because there's space at the two ends, so when the trail gets stretched out it looks like it starts off a bit later since there's fully transparency at the start and end.

    • @Simon-fg8qu
      @Simon-fg8qu 7 лет назад

      That's what I thought, but I get the same thing using a square as the texture. i.imgur.com/vlQQGzT.png

    • @Simon-fg8qu
      @Simon-fg8qu 7 лет назад

      Also just noticed at around 1:35 when you turn on the trails module you can see that the trail doesn't start right at the start of the particle system. I guess it might be part of how trails work

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      I just tested on Unity 5.6, and you're right. Seems like it's a bug, actually - because with high velocities the particles spawn slightly off from the position of the emitter where they're supposed to start off at. You'll probably notice that the issue is less obvious with slower velocities. What's strange is that the trail is consistently at the same start position, which is some distance based on the velocity for the first frame, but the particles themselves are off. I think the expected behaviour should be that both spawn at the origin for the first frame, then simulate forward however much the next rather than having simulated forward already.

    • @Simon-fg8qu
      @Simon-fg8qu 7 лет назад

      Whelp, there goes my lightning dream for now. I Thanks for the help and all of your videos, btw! I gotta say that plexus effect is extremely sexy

  • @司焕瑶
    @司焕瑶 7 лет назад

    Just one question, why I can't find tail render in partical system? Is it new in 5.5?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Yes, it's a new module added in 5.5.

    • @司焕瑶
      @司焕瑶 7 лет назад

      Thanks!

  • @mooam231
    @mooam231 4 года назад

    👍

  • @jan050375
    @jan050375 7 лет назад

    do you know how to make the lightning gravitate toward the nearest surface?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      What defines, "nearest surface"?

    • @jan050375
      @jan050375 7 лет назад

      just any object, similar to winstons lightning gun from overwatch for example, it tries to find a surface or object if you will for the lightning to arch to.

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      I don't play Overwatch, but what you're describing requires scripting and I have a tutorial for that, too :)

  • @Guajos
    @Guajos 7 лет назад

    How do you do the Attract part? (at the start of the video 0:18 ) Script or in Unity?

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      Aha. BOTH! A script IN Unity... (see my tutorials on custom particle programming).

    • @Guajos
      @Guajos 7 лет назад

      Oooh yeah. Thanks a lot. I'm more of a animator, but due to a project we do I have to go and learn about vfx x)

    • @Guajos
      @Guajos 7 лет назад

      Which one exactly?

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      You should start with the intro: ruclips.net/video/KsT_ZyTv1ms/видео.html.
      Then move on to the other videos that cover more advanced concepts like optimization.

  • @bizkit.
    @bizkit. 7 лет назад

    Is there a way to export these effects to a sprite sheet? or even a png sequence?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Yes! - u3d.as/nG8

    • @bizkit.
      @bizkit. 7 лет назад

      You are the best!
      Fanboy from now on

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

    Can you do this for 2d aswell?

  • @reyboyvideogames
    @reyboyvideogames 7 лет назад

    what can we do so that they end at a single point?

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      Change the velocity curve so they end up in the same place. Or you can programmatically have them seek towards a target.

    • @reyboyvideogames
      @reyboyvideogames 7 лет назад

      Okayy thank you so much! Btw keep up the great work!

  • @111wxnderland
    @111wxnderland 7 лет назад

    Could I make the flash's trail with this?

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      If it looks like the effect, then the answer is yes.

    • @111wxnderland
      @111wxnderland 7 лет назад

      Thanks!

    • @kharief8008
      @kharief8008 7 лет назад

      +Mirza Hello about the guys question, can I just add the effect to the character and it will follow him. Please answer i'm trying to get the lightning to follow my character like flash

    • @MirzaBeig
      @MirzaBeig  7 лет назад +1

      Yes, but you'll have to tweak some things.

  • @신문영-f5l
    @신문영-f5l 7 лет назад

    wow...

  • @bbs-borutoblazingstrike7513
    @bbs-borutoblazingstrike7513 7 лет назад

    Mirza

  • @johnriggien4167
    @johnriggien4167 7 лет назад +1

    i think it outdated :(

    • @MirzaBeig
      @MirzaBeig  7 лет назад +2

      No, it isn't. It works the same exactly as in this video even with 5.6.

    • @joaqstarr
      @joaqstarr 6 лет назад

      it is not outdated, you are! This is running on a beta version of unity that you have to download from the website.

    • @blxxdbvrn
      @blxxdbvrn 5 лет назад

      Wacko Sir, chill please xD

  • @DannyBoy443
    @DannyBoy443 6 лет назад

    This doesn't look like lightning lol. This looks like colored streamers.

  • @xdragon5502
    @xdragon5502 7 лет назад +2

    how to do y\this uni Unity 5.6? This will not work!

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      What won't work? I don't see any reason why it wouldn't work with 5.6.

    • @MirzaBeig
      @MirzaBeig  7 лет назад

      Just tested. This works perfectly fine with 5.6.

    • @wertw120
      @wertw120 7 лет назад

      And also Unity 2017.1! Thanks for a great tutorial!

  • @linuxtuxvolds5917
    @linuxtuxvolds5917 6 лет назад

    cracked version please?

  • @heatsinkers2338
    @heatsinkers2338 7 лет назад

    how did u make the lightning go slow mo?