How to Make FALLING SNOW With Particles in Unity!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up guys justin here with the realtimeessentials.com in today's video we're going to check out how to quickly add snow as particles inside of unity let's go ahead and just jump into it alright so snow is probably about the easiest particle system you can make so it's probably a good start for um your first particle system so what we want to do is we're going to start by adding our particles right so we're just going to right click over here in our hierarchy we're going to go down to effects and we want to add a particle system so we're going to bring the system in and let's go ahead and let's bring it back closer to our camera so we're going to bring this over and actually i think you can do a control shift f in order to do that alright so now we've got our particle system in our corner here and we need to start adjusting the way that our particles look so what we want to do is we want to start by going by selecting our particle system and going into the particle system settings so i've got my particle system selected and we're going to make some changes to the settings i will link to a video down below where i talked a little more in depth about the particle system settings but the first thing we want to do is right now this is just kind of like shooting particles out right like in all different directions what we want to do is we want to start by we don't want this to shoot this out and give these any initial velocity so we want to go into our particle system and set our start speed to zero right here so then this is just going to kind of generate those particles in a 3d space but they're not actually being affected by the gravity in the scene so we need to go in and we need to turn our gravity modifier to one and so when we do that what that's going to do is now those objects are going to fall inside of our scene and so the first thing is these are kind of big right like they're kind of big for snowflakes so we want to adjust the size of these objects and so all we're going to do here is just bring our start size down and maybe like .15 or something like that we basically want these to be little spheres falling in our scene right so these are now falling inside of our scene but um there's a few things that are a little weird about this like first off these are just kind of like popping into a random 3d space at all different heights and we don't really want that so what we want to do is we want to change the shape that these are being emitted from notice how right now this is set to emit as a cone well instead of having this emit as a cone what i want to do instead is i want to go in and i want to set this to maybe like a box so if i set this to a box then notice how now these are all going to come out of this box shape and i'm going to go ahead and set my box rotation back to 0 0 0 like this but then what we can do is we can adjust the size of the shape that these are coming out of right so right now what i want to do first off i'm going to move this over a little bit is i'm going to take this box and i'm going to scale the y value down like this so it's kind of flat because what i want to be able to do is basically set the area that these are coming out of but then i'm also going to adjust my x value like this and my z value like this just by dragging this and so we could either we're gonna put these right here for now but we may move these out into our hallway in a second um but for now let's go ahead and keep working so at the moment notice how we're not getting a lot of snow right we're getting kind of like sporadic snow well we can get more snow in here by adjusting your emission settings so notice how right now this is set to a rate over time of 10 meaning it's going to emit 10 particles per second however if we were to bump this up to like 50 notice how i'm going to get a lot more particles and you can bump this up to as many as you want just remember the more particles you have in your scene the um harder this is going to work and so let's say we were to set this like a thousand right well notice how nothing so what's going to happen is you're going to get a whole bunch of snow falling at once and then it's going to stop and so the reason it's going to stop is because our particle system is currently set to a max particles of a thousand so it just makes a thousand particles and then stops so that you don't create so many that it bogs down your computer now we don't want our rate over time to be a thousand we want to set it to maybe like 100 or something like that we may even make it a little bit less but one thing that you can do if your particles start disappearing like if they're not sticking around very long is you can adjust the number of maximum particles that the system can make inside of your particle system settings but for now let's go ahead and let's put this on like 55 or 50. for the moment and let's go ahead and set this so these aren't falling through our floor anymore so they're falling through our floor and what we want to do is we want to scroll down and we want to find the option for collision and we want to turn collision on because what we want is we want these to fall and then hit the ground right here and so the way that we're going to do that is we're going to change our planes type to world and so as soon as we change this to world what's going to happen is these are going to fall down and they're going to actually interact with your world right here now that's a bit of a problem because what they're doing is they're bouncing right they're hitting the ground and they're bouncing almost like they're a bunch of like gumballs or something like that well what we can do instead is we can set the bounce in here to zero like this and what that's going to do is that's going to make those fall and kind of stick to the ground now one thing we want to do though is these can when they hit the ground and they're not doing it very much right now but they can if they have any like sideways movement they can roll and we don't want them to roll so we want to go ahead and set the dampen to one and so when we set the dampen to one what that means is that means when they hit the ground the ground is going to make them stop rolling so now we've got our snow kind of falling in one place and this is kind of where we want to move this out into our corridor a little bit so we can see the effect a little bit better and so notice how when your collision is on this gets a lot slower to adjust these so sometimes i'll toggle collision off when i'm making this adjustment so i can do more of like a live adjustment in here but i'm going to set my my z value to something wider so basically the whole width of this open space right here so i'm going to set my z value to something wider like this and then we're going to toggle our collision back on right here so that means that now the snow is going to fall and it's going to stick to the ground like this so it's basically doing what we want it to do and then from there it's just kind of a question of fine-tuning this right so for example do you want more snow then you can go in and you can turn your emission rate up remember that you do need to turn your max particles up as well though otherwise these may not stick around very long so notice how they dis disappear kind of quickly so i might set my max particles up to maybe like 1 500 or something like that so just so i can get a few more particles in here and again notice how when i do this it's getting slower the more particles i add the other thing we can do is if you think this is falling too uniform what you can do is you can add a little bit of noise to the particle movement so if you go into the noise setting right here and add noise notice how you're going to start getting a little bit more side to side movement so these are going to be a little bit crazier right now depending on the amount of wind that you want to see um in your scene you can adjust this um to make these stronger or weaker so for example what i could do is i could bring the strength down to like 0.25 or maybe even a little bit less in order to get that kind of like gently blowing look the snow gets when it's actually falling so now if we look at what we've created notice how we're getting our snow falling right here we're getting a little bit of sideways movement and we're getting this kind of like nice snow effect and so if we had our camera set up to look at this space and click on play notice how our snow is falling inside of our scene just like this so you can use this in order to quickly create a snow effect and you could still come back in here and make adjustments to these too so for example let's say you wanted them to be a little bit larger you could also come in here and set your start size to maybe like 0.25 instead of 0.15 in order to get bigger flakes all right so now if we move our camera forward and we click play notice how you're going to get this nice falling snow effect inside of your scene all right so leave a comment below let me know what kind of particle effects you'd like to see i've got some more on the list already but i'd love to hear your thoughts on it as well as always thank you so much for taking the time to watch this and i will catch you in the next video thanks guys
Info
Channel: The RealTime Essentials
Views: 2,891
Rating: undefined out of 5
Keywords: unity, unity software, unity 3d, unity 2020, unity 2021, unity snow, unity particles, unity particle snow, unity snow falling
Id: 3qHxSBG_ZKw
Channel Id: undefined
Length: 8min 34sec (514 seconds)
Published: Mon Mar 14 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.