Ripple Effects | Unity Particle Effects | Visual FX Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up guys this is dem keys and today I'm gonna teach you how to create ripple effects using unities particle system now real quick I wanna mention that in this tutorial we will be using this image which is basically a white ring with soft edges if you have a similar image then go ahead and use it if not then I'll be providing a download link to this image in the description down below and if you want to learn how to make this kind of a ring glowing dude has done an excellent tutorial on this the link to his tutorial will be at the end of this video so let's begin we're gonna start by creating a cube right click in the hierarchy click 3d object cue rename the cube to ground set its position to zero on all axes and it's scaled to 100 on X 0.1 on Y and 100 on Z also select the directional light and drag it down so it's not obstructing our view next we need to create a material for the ground so right-click in the project panel click create material name it ground matte and set its color to black then drag and drop the material into the ground game object next we need to create our particle system so right click in the hierarchy click effects particle system set the position to 0 on all axis and raise it up a little so it's not within the ground next we need to create a material for the particle system so right click in the project panel click create material name this particle mat change its shader from standard to particles additive set the tint color to white and drag and drop this image into the texture field next select the particle system and under the renderer module drag and drop the particle material into the material field so now the particles look like white rings now notice how regardless of what angle we look at this from the particles always facing the view this is because the render alignment right here is set to view change this to local so now the particles will always face the local Z direction of the particle system next notice how there's a cone shape being formed by these particles to change this expand the shape module and change the angle to 0 and radius to 0.01 so now our particles are always moving in one direction next we need to make sure that the spawn particles remain in the same place instead of going off so change the start speed to zero and now the particles stay in the same place after being spawned next change the start size to 3 so the particles are a little bigger now then under emission change the rate over time to 2 so that not too many particles are being spawned next enable the size over lifetime module the curve is perfect as it is we don't need to change it it goes from 0 to 1 which is exactly what we need keep in mind zero and one our multiplier values they're not the actual sizes now we have a ripple like effect but the particles seem to be lasting a little too long which is why this looks a little crowded here so change to start lifetime to two and now we can see individual ripples now notice how when the particles lifetime runs out it just disappears enable the color over lifetime module and expand it and now let's set the gradient in the gradient editor so we don't need to change the color at all so all we need to do is add an alpha key up here somewhere around this area you don't need to be very precise with it then select the first alpha key and set its alpha value to zero and then select the last alpha key and set its value to zero as well so now the particle spawns transparent then becomes opaque and then gradually becomes transparent again giving us a fading kind of effect now real quick I wanna point out here that where you place this middle alpha key will depend on what kind of effect you are looking for currently when the alpha key is in this area you can see what kind of effect we are getting if I place the alpha key somewhere in the middle then towards the middle of its lifetime the particle will be fully opaque and that gives us a different effect and if I place it here then towards the end of its lifetime the particle will be fully opaque and that gives us a different kind of effect so where you place this key will depend on what kind of effect you are going for so now we have a nice ripple effect going on however if we go close to the particle system you'll notice that the Rings start to look a little different this is because of the max particle size in the renderer module this is the largest particle size that will be shown on the screen and it's expressed as a fraction of the viewport size currently it is set to 0.5 which is why you can see the particles sort of stop at a certain size set this to 10 and the problem is solved finally we need to set the start color for our particles I'm gonna set it to cyan but you can set it to whatever color you want all right so this is one of the ripple effects next make a duplicate of this particle system and bring it over here so that they are not overlapping each other and now let's make the second type of ripple effect expand the size over lifetime module and enable this curve select the last node in the curve and bring it down now you'll notice that this line is kind of curved over here so in order to straighten it out I'm gonna hit ctrl a to select both the nodes and then right-click on one of the nodes select both tangents and click linear next double click in the center of this line that's gonna add a node and drag that node up so as you can see this is a linear curve alternatively if you want it to be a smooth curve select all the nodes right click on one of the nodes and click free smooth but in our case we want it to be a linear curve so now the ring starts small becomes big and then becomes small again now again this looks a little crowded here so change the emission rate over time to 1 and now you can see individual rings next change the start color from a color to a gradient and let's create a gradient for this so I'm gonna set the first keys color to red second blue and third green so now the start color will be chosen from between these color keys and this gives us a nice effect where each ring has a different color so this is our second type of ripple effect now here's a couple of things you should know this right here is an illusion these are not 3d rings they're flat images so you want to keep that in mind when you're deciding how to use this effect next let's say I have a wall really quick I'm gonna make a wall over your right click in hierarchy click 3d object cube place a cube near the ground resize it and then drag and drop the ground map onto the wall also bring this particle system closer to this wall now it's understandable that you might need to place the particle system close to the surface of some geometry like how I'm doing here but when you do that you might run into this problem where the rings of the particle system are really dim if you run into this problem select the particle material and under tint color you'll notice that the alpha value is set to half of its max value so set it to the max value and already you can see a change in how the Rings look and then increase the soft particles factor from 1 to let's say around 2 it doesn't have to be max this is enough and now the particle system looks fine however I should point out that while these settings work for situations where the particle system is close to some sort of surface they are not that great for situations where the particle system is not near a surface because now when I bring this particle system away from the surface you'll notice that the Rings appear really thick so you might want to keep this in mind all right now I'm going to change the material settings back to what they were before and let's move on now there may be situations where you might want to use this as a one shot ripple effect instead of looping ripple effect to change this into a one shot ripple effect uncheck looping change the duration to two so the simulation doesn't last very long and change the simulation speed to five so it's a little faster and this is now a one shot ripple effect so yeah that's it I hope this video was helpful if you want to check out more videos head over to my channel if you want to watch glowing dudes tutorial on how to make a ring with soft edges and hard edges in Krita the links gonna be up on the screen right now I'm also accepting donations so if you want to help me out my paypal email address will be up on the screen and in the description down below don't forget to Like share and subscribe leave your comments below and I'll see you guys next time
Info
Channel: Abhinav a.k.a Demkeys
Views: 76,544
Rating: undefined out of 5
Keywords: unity ripple effect, unity particle system ripples, unity ripple effect tutorial, unity particle system tutorial, unity visual effects, unity particle effects tutorial, particle system tutorial, particle system ripples, unity game development tutorial, unity ring effect, visual fx tutorial, unity visual fx, unity tutorial 2017, unity 3d tutorial, unity particle system, ripple effects, video game effects, unity game effects, game visual effects, video game development
Id: byxivSC1xYM
Channel Id: undefined
Length: 6min 45sec (405 seconds)
Published: Fri Nov 03 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.