Unity 5 - Game Effects VFX - Electric Implosion and Explosion

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Very cool! Nice work.

👍︎︎ 3 👤︎︎ u/MadParkGames 📅︎︎ Jun 17 2017 🗫︎ replies

Wow its soooo good , the best 😄👌

👍︎︎ 2 👤︎︎ u/WitherSS_Studio 📅︎︎ Jun 17 2017 🗫︎ replies
Captions
hey what's going on guys welcome to the sixth tutorial of the series special effects for games I'm using unity 5.5 and today we are going to see how to create this crazy implosion electrical effect and you can find more tutorials of special effects in my channel and you can have access to all of the effects if you support me in my patreon page so let's say we can do this and that's a good practice if you have been following this series we already know that we always start by creating an empty game object which in this case is going to be called particle system electric explosion and it's going to hold all the particle systems that we are going to use we also need to create a folder with the same name and now let's add our first particle system which we can rename it to implosion circle we can start by setting the duration to 6 which means that the others particle system we also have 6 seconds if you want them to look at the same time now we can rotate this - 90 degrees in the x axis to size up and before doing anything else we need to create the material which will have the same name as the particle system imposing circle just for consistency and this material is going to need an image of a distorted circle that I created in Photoshop in Photoshop I simply create a new file with 1000 by 1000 uses the left tool and by holding alt and shift I proportionately created the circle the field is empty and Stroke is white with around 15 pixels don't worry about color because we can control it in unity I double click in the circle layer to open the layer style and in the alter go actually white with the spread of 16 and 100 pixels for the size now I duplicate this shape as a backup because we are going to need this circle in just a few moments so I suggest that you export the circle and save it somewhere because we are going to need it now I use this much tool to disturb the circle and as soon as I do it Photoshop asks if I want to restaurant the shape and we can say yes now I basically start creating these shapes with a strength of 40 in smudge tool and we may need to adjust the outer glow but after that I had the black background and export it as a PNG to unity and not so it's learn now immunity we want to change the shader of our material to particles additives and we can drop the image to this slot and drop the material on top of the particle system okay that's great but let's make a few changes like we don't want these to go up so let's let the start speak to zero and the third size is going to be random between two constants something like between 10 and 15 let's also limit the max particles to 15 and since we don't want these to keep emitting we set the rate over time of the emission to zero and we are going to use bursts we only need one burst at the beginning with a minimum of 10 and a maximum of 15 particles so the lifetime now of this particle system will have a random number between 1.4 and 2.4 which is a very small lifetime and that's what we need to create the implosion and we also want to the particles to start with a random rotation between 0 and 360 degrees we also don't need any shape since this is going to be in the middle now we want to change the color over lifetime which in this case it's going to create a smooth ending and basically these keys on top control the opacity and the keys on bottom controls the color and the in this case we want the hand to be transparent so let's set the Alpha to zero now let's turn on size over lifetime and create a curve similar to this one you can add keys with the right mouse and this curve will make the particles grow quickly in the beginning and then they will get smaller towards the end of their lifetime which will look like imploding now let's turn on rotation over lifetime which will make the circle rotate at a velocity controlled by this value now we can change the start call to random between two colors to whatever you want mine is going to be running between a darker and a lighter blue so let's duplicate the infolding circle and rename it to electric beams now we are going to need an image similar to this one and it's really easy to create one in Photoshop just use a brush with an opacity of around 25 and start painting from big circles to small circles or you can google for point of light so after you have created this image you can import it to unity and now we can duplicate the imploding circle material with ctrl D and also rename it to electric beam and drag the image tool slot and material to the electric bin and by the way let's go to whether in the imploding circle which is the last parameter and increase the max particle to at least three which will prevent the image and the particle to shrink every time we get closer and you can see how everything is working together if you drop the electric bin on top of the imploding circle and we want to make sure that electric beam is in the center of the importing circle so we will make the start size just a little bit smaller now let's turn on light and this is only available in unity 5.5 and what we need is to create a light and then if you want you can create a prefab from the light or you can simply make it a shy above the electric beam the idea is now that with that light you can import to the input of the light of the election like these now we want to increase the Rachel to one I'm going to just decrease the maximum light to one or two and play a little bit with the range multiplier and win the intensity multiplier now let's create a new particle system and these ones will be for the particles we can rotate it - 90 degrees and the duration will be six as the other ones we can use the same materials that we use it for the electric beam and drop on top of the particles let's change the shape to a sphere and increase the radius to around 8.5 and we want them to emit from the shell now we can set the start speed to random between minus 1 and minus 6 and this is what will give the sensation of imploding now we can also set the start lifetime to between 1.8 and 2.2 it should be enough we don't want the particles to keep anything so we want to set the rate over time to zero and we are always going to use bursts in all of our particle systems and we want to burst at 0 another one has 0.2 and why not 0.4 and I set these values which I think it's good enough 70 for the minimum and 150 for the maximum and now we want to turn on color over lifetime which in this case it will smooth the beginning and the ending like this we also want to change the start size to something between 0.1 and 0.4 maybe more this really depends on the look you want to give it and now the size of a lifetime can have a curve similar to this one which make the beginning big and the hands small let's go to render and change marks particle size to tree and now what really matters is that we want to turn on trails and you basically don't need to change pretty much anything now we can drag the particles on top of the unfolding circle so you can see everything working together now let's go to the electric beam and we want render between two constants for the start delay and we want to delay between 0 and 0.2 it is a very small delay we also want to apply that delay to the importing circle so you can see first the particles and then we'd see the rest okay this should be fine now now let's create a new particle system and this time is going to be for the smoke inside rotated minus 90 degrees in the x axis and as always we want to set the duration to 6 and we don't need shape for this particle system and start speeding it also zero so if you want this to be in the center now let's create a new material and call it smoke inside we can go to Google and search for sprite sheet smoke you can also create your own spice sheets of smoke there are plenty of tutorials that can teach you how to do it but for the sake of this tutorial we are going to use Google after you have found one you can import it to unity change the shader of the smoke inside material to particles Altis and drag the sprite sheet to the slots material now we can drag material to the smoke inside and as you can see the particle system starts emitting the sprite sheet then we are going to solve that in just a moment let's first change the start size between 15 and 20 it's quite a lot actually and let's change the max particles to 15 then set the right over time to zero and use one burst with five for the minimum and then for maximum now we can go down here and where it says texture sheet animation is where we can tile our sheet encounter many image that are in X and how many there are in Y and these image are six sprites in X and five in Y so that's actually what I'm going to set in the tiles six into X and five in Y and now we can speed up things in cycles I'm going to set for for this bright sheet so it can be faster okay so this is already starting to like something interesting let's change the start lifetime to between 1.8 and 2.6 now what we really needed is to set the Alpha of the start color to something like this and we can change the color to random between two colors you can copy and paste the first color to the second color if you want now let's also set the start rotation between 0 and 360 degrees so it always starts with the different rotation and we also want to set the start delay between 0 and 0.2 now let's move the beginning and the ending as we always do in the color over lifetime okay so let's also use the size of a lifetime and we want a curved single-edged this one I always save my curves as preset so it's always faster the process of creating art consistent and now let's drag the smoke inside to the imploding circle as a child so you can see everything working together and it is already starting to look good so we have the importing system done now let's create the explosion system then we can basically duplicate the imposing circle because it's going to be the opposite rename it to exposing circle we can erase the smoke inside because we are not going to use it and we can select the electric beam and the particles and we can turn them off so we can work with only the exploding circle okay now we want to set the start delay to 2 dot six because we will wait for the importing start to implode and that we will generate the explosion and now we basically need to make this explosion bigger than the implosion so let's set the start size between 5 and 25 and we want more particles so let's set the emission minimum of 15 and maximum of 30 and let that max particle to 30 so now let's turn on the electric beam and we are basically going to do similar changes we want to start delay to be 2.6 we are going to increase the start lifetime just a little bit you can increase it more if you want and now the start size is going to be between 5 and 20 remembered if we don't want the electric beam to be bigger than exploding circle and now we also want more bursts on the legs beam let's set the burst at 0 at 0.2 and at 0.4 with these values let's increase the max particles to 25 and basically that's pretty much it we don't need to change anything else let's make a few changes to the particles we are going to rename it to spherical particles and let's turn it on and the first thing we want to do is change the shape to sphere I'm going to set the radius to 0.3 now let's change the delay to 2.4 and the start lifetime is going to be smaller so 0.7 and 2 should do the work in this case we are not going to use the start speed by the way and let's change the start size to 0.1 and 0.6 and we are not going to use the start speed because we are going to use the velocity over lifetime which is familiar just to show you how this works so we are going to set this to be random between two constants and we can set values in the XY and Z I'm going to set a maximum of 17 and a minimum of minus 17 for every axis we also change now the color of lifetime's so it has a smooth beginning and a smooth ending and I'm going to use this curve for the size over lifetime now I'm going to press play to see how it is going okay it's looking good let's add a few more scenes now we want to duplicate the exploding circle we can delete the Electra Beeman's farakhan Sparks and rename this plug-in circle to circle let's change and start to light 22.4 so it starts a little bit earlier than the others now the third lifetime we also want it to be shorter so let's sell it to between one and two now we can duplicate one of these materials with control D and rename it circle and we need to import the image that we firstly create it in Photoshop before distorting the circle now let's change the max particles to 15 and the rate over time to zero let's set for bursts one at zero when at 0.2 0.4 and 0.6 and we only want one particle in the minimum ending a maximum for each one we don't need the start rotation so we can set it to zero and let's set the start size to 20 and 240 so we want to make sure that everything is inside that circle it's very subtle we don't see it at first but it's there let's change the color over lifetime to something like this ok now let's duplicate the spherical sparks and we are going to rename it to spherical particles so now that we have the spherical sparks we also want some particles from bigger particles without trails so let's turn off trail [Music] while certain start size to between 0.7 and 1.8 that should be enough in my case as you know you always have to try to see what fits best for you let's set the radius of the sphere to around 2 we want to velocity over lifetime to be much smaller so we are going to set 4 and minus 4 like this and now we are going to increase the start speed to around 10 it's looking good we have some big particles now let's turn on the other particle system so we can see how everything is working together and it's looking good in my opinion I think we had a lot of details yeah it's looking good now let's go ahead and again duplicate the spherical sparks that time they are going to be called spherical electricity so this is going to be the particle system lights going to emit all the electricity that we have seen earlier and it's really simple to do and create an amazing effect I'm going to turn off all the other particle systems so we can work better with this one now we also turn on noise and noise it's going to do something really amazing if we push up the frequency and push up the strength to 10 like this you can see that the amazing effect that it creates this electrical effect is simply made with the noise and trails now I'm going to decrease the ratio to 0.5 maybe we don't want all the particles that trail so we can decrease it to 0.5 or something like that that's up to you and I'm going to set the lifetime of the trail to between 0.6 maybe and 1 which means that some trails will not live the same time as the particle you can also change the color if you want I'm not going to change it by the way but that's pretty much it with the strength and the frequency increases in the noise we can create these electrical effort and you can play with these values and see what fits best for you it's really a great great great feature let's add some more particles in the ignition I'm going to add another burst at 0.6 and increase the burst at 0.2 and developed four to around 100 something like this maybe more that's up to you and I'm also going to increase maximum start size to 1 yes something like this ok now that looks much better I'm going to turn on all the other particle systems so you can see out it is working together and it's looking good I believe we just need to increase the radius to 3 because most of the electrical stuff is inside all the particle systems and we can't see it outside in the velocity over lifetime we don't want that much of strength I'm going to decrease it to 15 and minus 15 ok that's it for this particle system okay that's looking good now we can duplicate the circle and rename it to impact let's create another material called impact and now we need an image like this one and this is really easy to create let's create a new file with 2000 by 2000 paint the background to black and select this custom shape tool and in this drop-down menu select this shape now we can personalize it with a pen tool or by pressing T and if you want control the white arrow will appear which will allow us to move these vertices around until we reach a shape similar to this one now press two times in the shape layer to have access to the layer style and turn on outer glow change it to white and play with the size and spread of the glow to make this smoother we also want to add some Gaussian blur in the filters and let's adjust the altar glow again and finally we can I to the black background and export to unity as a PNG you can change the material to particles additives and drop the image in the material slot now we can drop the material on top of the impact particle system and I'm going to hide the other particle system so you can work better with this impact city now what we really need is more particles in this case I'm going to push it to 500 maybe you're not going to use that limit just limit in start size it's going to be between 1 and 30 it's really crazy we want some big and some small impacts the start rotation we want to Rhoda my zit so we're going to select it between 0 and 360 now let's decrease the start lifetime this is going to be an impact is going to be quick so we won't start lifetime to be between 0.4 and 2 and we want to start delay to be at 2.2 it's going to be earlier than the other exploding particle system now we are going to need to talk on the shape and we want to steer with a very small radius just to make sure that they don't spawn at the same place I'm going to change the curve of the size of a last time to something like this which is going to quickly grow at the beginning and then it slowly decreases okay so this is almost done it's looking great and now to make sure that we had a lot of electricity going around what we want to do is duplicate the spherical electricity and rename it to circle electricity and it requires small adjustments like going to the shape and select circle and increase the circle a bit we also need to turn off velocity over lifetime to create something like this let's just give it some start speed between 0 and 0.5 now I'm going to turn on all the other particle system and that's it for the circle electricity I'm going to probably rotate it in the vertical in just a few moments now let's add another particle system to create some smoke this is optional you don't need to do it but it gives some more detail to the electric explosion so let's go ahead and duplicate the spherical spark and we want to rename it to round smoke let's create a new material with the same name and we can go to Google and search for smoke PNG after you have found one you can import to unity and change the shader of the smoke particles additives I'm going to turn off all the other particles so we can work better with this one and it's going to have a bigger start lifetime something between 1 and 2.7 the start speeds also between 1 and 3 you want to change the shape to a sphere with the radius of seven something like this and we meet from shell okay so let's change the color to something similar to what we have let's also make the start rotation random between 0 and 360 degrees and now we want to increase the start size something like between 2 and 5 and that's when we see some different I'm going to increase the amount of each burst like this and the color of a lifetime is good as well as the size of a last time what we want is some rotation over lifetime yeah something like this it's looking good now I'm going to turn down all the other particle systems to see how this is going and I'm going to press play and yeah it's looking good it's looking good now we can do some small just move these up to you and to your taste but that's mainly it guys now that you have the basic structure you can play around to see what you like I hope you have enjoyed guys this is it for this tutorial you can download these in my patron in case you want to support me I will appreciate a lot if you do so and please leave a like subscribe for weekly games drop-in tutorials and see you in the next tutorial guys [Music]
Info
Channel: Gabriel Aguiar Prod.
Views: 78,356
Rating: undefined out of 5
Keywords: Unity tutorial, unity 5 tutorial, unity effects, unity special effects, game effects, game effect tutorial, unity magic effects, unity 3d effect, unity particle system, game effects for games, special effects for games, unity particle system for beginners, particle system tutorial, unity game effect, unity vfx, unity explosion, unity hit effect, unity electricity, unity implosion, electricity effect, unity electric, unity electric explosion, unity electric effect, unity
Id: uR2jcU3x3kU
Channel Id: undefined
Length: 25min 47sec (1547 seconds)
Published: Fri Jun 16 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.