Futuristic Gun Design


♪♪♪ zak parrish: greetings and welcome. my name is zak parrish. over the next several videos, i am going to be showing you how to work with particles in ue4. before we get into that, there is some key terminology i want you to understand. there are a lot of terms involved with creating particle systems in ue4. a lot of them sound alike, and it is important to know the relationship between each one. the first term is going to be pretty straightforward, so i am not going to spend a lot of time on it. the first term is particle. a particle is really just a point in space. you will spawn these and then

you will give some behavior. you will make them move around in some interesting way. you can make them bounce off things. they can be rendered out in a lot of different ways. they can look like static meshes. they can look like a sprite. a sprite is really just a sheet that is always going to face the camera. they can look like laser beams or lightning bolts. there are all kinds of things you can make a particle look like. a particle is a point in space with some behaviors attached to it. the next one sounds pretty similar. this is a particle system. in ue4, a particle system is the asset that resides

in your content browser. here, we can see these. over inside my content browser, there are a lot of particle systems. this is in the content examples project. the map you see here may not exist in your content examples project. it is something i put together specifically for this video. fear not because over the next several videos, you are going to create all of these effects. don't let that distract you too much. i want to show that in this case, here are all the particle systems available in the content browser. all i did was go to the game folder and click filters.

then, select particle system so we can see them all. now, the next term is an emitter actor. emitter actor. an emitter actor is the object that will reside in your side which will hold a reference to a particle system. i am going to get out of game mode by pressing the g key. you can see these tiny starburst icons. these are each particle actors. in the details panel under the particles category, you will see a property

called template. template holds the particle system that you want this to show. for example, i can change this from the gpusprites to p_black_body. i can drag-and-drop that onto the template property. now, this particle emitter actor is now using an entirely different particle system than it was a second ago. i want to press ctrl+z so i can jump back. or, not jump back. go ahead and

drag-and-drop gpusprites onto the template. the important thing to keep in mind is there is a difference between a particle system an an emitter actor. the particle system sits in your content browser. the particle system is the asset you create to define some sort of particle effect. the emitter actor sits in the scene and holds a reference to that particle system. another important term is particle system component. i have to be a little careful here because a particle system component is actually

a part of the blueprint system. i don't want to compound matters anymore than i have to, but this is kind of important. take a look here. i have a blueprint i put together just to show these off. if we are going to talk about emitter actors, we should also talk about particle system components. i am going to take this particlebp, and drag-and-drop it into my scene. all it is going to do is spawn an explosion every random x number of seconds. i have to click play in order to watch this happen. you see it is exploding over and over again. let's take a look at the blueprint

itself. i will open up the blueprint editor. we are not worried about the graph tab right now. i want to focus just on the components tab. the only component in here is a particle system component i have named myparticles. if you go under add component and start typing "particle", you will see particle system right there. if you take a look in the properties for this particle system component, you will see a template property just like on an emitter actor. that means this is the component you will use to make a blueprint emit some kind of particles. minimize the blueprint editor.

i am going to delete that particle because seeing it explode over and over again is just going to be distracting. press g to get out of game mode. i didn't put an actual icon on that, so i have to delete it from the scene outliner. that is kind of funny actually. good. that is all gone. over on the chalkboard, let's go to our next term which is cascade. cascade is the particle editing system inside of ue4.

it is the same as it was in unreal engine 3 (ue3) actually; it got a little bit of a face lift. if you are familiar with creating particle systems in ue3, then the transition to ue4 should be fairly straightforward for you. to show this off, i am going to grab some random particle system. let's get something a little more interesting than the ones i have prepped for this video. i am going to go to my game folder. filter by particle system. let's look for that explosion effect i was using a second ago. there is p_explosion_bomb. i will double-click p_explosion_bomb, which opens cascade. i will go over

what you are looking at inside of cascade in a little bit. the important thing is that you are familiar with the concept of that cascade is the particle editor. you can access it by double-clicking on any particle system in your content browser. that is the primary means of getting to cascade. our next term is an emitter. an emitter is not the same as an emitter actor; it is something else entirely. let's jump back over to ue4. inside of cascade, i am going to open up p_explosion_bomb effect again.

in the central area of cascade is this big window called the emitter list. this has all of the different emitters for this particular particle system. each column you see here is a separate emitter. this can be a little bit confusing at first if you are completely unfamiliar with creating particle effects in ue4. you might wonder why you have all these different columns. the reason you have these separate emitters is to break apart the different aspects of a single particle effect.

here, we have an explosion which is made up of lots of bits and pieces. for instance, we could take a look at the first emitter. all the first emitter is creating is this sort of little orange shockwave. the next emitter is adding the fire. the next emitter is adding the sparks that fly out in all directions. the next emitter is called bits. you can see that is some shrapnel. then, we have a light source (fire_light). it has a light module on it, so it really would be emitting light into the scene. finally, we have some smoke. when you add all of these

different aspects together, you get a complete particle effect. in this case, the effect is our full explosion and that is why you have separate emitters. to be an effects artist for ue4, you have to be able to think of a complete effect as a group of individual aspects. consider a campfire. it would have flame, it would have smoke, and it would have sparks. each one of those things would be its own individual emitter inside your particle system. that moves us on to our next topic, which is a module.

a module is a modular component of an emitter that defines some single aspect of behavior. that is kind of a mouthful, but it is easy to understand if you take a look. inside my emitter list, you see all the different columns. each one of these is a separate emitter. within these columns, you see each of these rectangular objects which are your modules. each module controls one aspect of behavior for the particles in that emitter. we will go into solo mode for one of these emitters real quick.

under bits, click on the s icon to go into solo mode. now all we see are the little pieces of shrapnel flying out. each one of these objects in the list are the modules. we have one that controls the lifetime, which is how long these particles are going to live. we have one for the initial size, which is how big these are going to be when spawned. size by life is how their size is going to change as the particles live. over their lifetime, the particles are either going to get bigger or they are going to get smaller in some way. i want to share some notes about that. you will notice there are some modules that are the same throughout.

you have the required module that will always be there. you have the spawn module that will also always be there. you can't get rid of those; they are always going to be present. you can add or remove every other module as you need to. you can right-click and you have all of the modules available for this particular type of emitter. the type of emitter is something i will address in a moment. you will notice each one of these is actually a submenu, so you just have to think about what you want to do. for instance, you can change the rotation of these.

maybe we want them to spin as they fly through the air. right-click and go down to rotation rate. select initial rotation rate to set the rotation rate for these objects and make them spin as they fly through the air. you can also move modules between different emitters. we can select size by life and drag it over to another emitter, or drag it back. we could press alt+drag size by life to make a copy of it, just like you do in most things in ue4. you can press alt+drag to copy something. click the s icon under bits to unsolo the emitter. you can also press shift+drag and that will copy and share the module.

that means if you change one module, you are effectively changing the other as well. it is kind of a way to create an instance of a particular module. we will go ahead and remove size by life and put everything back the way it was. at a glance, that is what a module is. an important thing to note is modules execute from top to bottom. if you have the same module twice, the bottom one is going to override the top. generally, you don't want to do that. if you have one color over life module, you don't need another one later. that one module would control all of the color for the lifetime of the particle. you don't necessarily need to repeat any modules

inside your emitters. again, the important thing is modules calculate from top to bottom. also, each emitter is calculated from left to right in the emitters list. that takes us to our next term, which is type data modules. type data modules control what kind of particle you want to create. these are special modules. only one module can exist on any given emitter. you see a couple of them right here. the sparks and the bits emitters have gpu sprites type data modules

associated with them right now. that means these are gpu sprite emitters and not just regular sprite emitters. we will go over the difference between those a little bit later as we create one of each of the different types. i can also show them to you. i will minimize cascade for a moment. we can take a look around the scene. here, we have a standard sprite emitter. it is kind of being a bit overshadowed by the gpu sprite emitter, who wants all the attention apparently because it is flinging particles everywhere. it really needs to calm down. meanwhile, the standard

sprite emitter is pumping out some basic sprites. a sprite is just a polygon sheet that always faces the camera. it is kind of like a little picture of something. in this case, it is just a picture of a tiny spark that is stretching in the direction it moves. you will see how to set all that up later. next to this, we have the gpu sprite emitter which is doing all kinds of cool and fun things. this is very similar to the standard sprite emitter. a gpu sprite is just a sprite;

it is a picture or polygon sheet that is always facing the camera. what makes it special is the moment each one of these particles is spawned, it is passed off to the gpu for all of its calculations. hopefully, your gpu has a lot of processing power. you can probably do great things if you are using the 400-500 series of nvidia graphics cards. of course the more powerful your gpu, the better your gaming experience is. the gpu sprites get calculated on the gpu, allowing you to have tens of thousands, or hundreds of thousands,

or potentially millions of particles, if that is what you wanted to try. next door to this, we have a mesh emitter. a mesh emitter is made of particles that each have a static mesh attached to them. as the particle moves around, it moves a mesh around with it. it looks like static meshes cascading around and falling, and bouncing on a surface. next, we have a beam emitter. this is a simple beam. in this case, it looks kind of like lightning. we provide two (2) points: a target and a source. we have controlled

the location of those points, but also their tangents to create that upward arc. later, you will see how to set up the beam emitter including adding the noise to make it jitter and look like lightning. next, we have a ribbon emitter. the actual ribbon is a secondary particle system. again, you will see how to set up each one of these. we have one (1) particle emitter. let me open up the particle system for this because it will be easier to explain. we have one (1) particle emitter, which is just creating the particles that go up in the air

and fall back down. then we have the ribbon emitter, which is creating the ribbons that follow each particle as it flies around. you can see how that works. finally over here at the end, we have some animtrails. the animtrails required we have an animated skeletal mesh. i need to click play to simulate and show that. you can see those animtrails following his arms around in sort of a very awesome disco queen music video kind of way. let's jump back. you have seen all of the type data modules. the last term

i want you to be familiar with, or at least know about, is distributions. distributions are really just ways to handle different types of numbers. that sounds like a really complicated way to put this. i have seen distributions scare some people and put them off, so let me show you what a distribution actually looks like. any of these will do. i am kind of picky. i will grab this cow particle system,

and open it up. if we go to just about any of the major properties, you will see the word distribution pop up. there are several different types of distribution. the one to choose depends on what type of number is expected. this is the initial size module, which is the size the cow meshes will be the moment they are actually spawned. this is expecting a vector value of x, y, and z size. in this case, we are going to see vector distributions.

we have distributionvectorconstant, distributionvectorconstantcurve, distributionvectorparticleparameter, distributionvectoruniform, and distributionvectoruniformcurve. at a glance, this means distributionvectorconstant will be a number you set and it is never going to change. distributionvectorconstantcurve is going to be defined by way of a curve, which is why we have a curve editor in here. if you had a property that needed to change over the life of a particle like something that made these meshes get smaller over time, you could do that. you would use something like a

distributionconstantcurve so that they would steadily get smaller. distributionvectorparticleparameter is something you would use if you wanted to talk to a parameter via blueprint, code, or even matinee if you wanted to control something from outside the particle system. a distributionvectoruniform is going to give you a min and a max value. then, you can get a random number from between those. a distributionvectoruniformcurve will give you a curve. each point in the curve has its own min and max values. if you would like more details than that, i highly recommend the documentation.

i don't usually open up documentation in the middle of a video, but this is pretty good. there is a distributions page in the ue4 docs, which has some nice graphs to explain what each one of those does. there is a distributionfloatconstant, a distributionfloatuniform, there are curves, etc. you can see kind of how the numbers disperse across all of the different types of distributions. if you have never seen distributions before, they can be a little bit confusing. don't be alarmed. keep in mind what type of number you want. let's say you want a little bit of randomness,

which is wanted wanted for the color. we selected initial color. i knew i wanted a random color so we set the distribution to distributionvectoruniform, which gave me a min and a max. i set the min to 0.0 and a max of 1.0 for x, y, and z which correspond to red, green, and blue in this case. therefore, i was able to get a random value between black and full color. the values are between 0 and 1.0 for each of the color channels, and that gives me a random number. with that, we have covered all of the key terminology i want you to know

in order to really utilize the particle system in ue4. you know what a particle is. a particle system is the asset that sits in your content browser. the emitter actor is the actor in your scene that is going to hold a reference to a particle system so you can put particles into your scenes. a particle system component is a component inside of a blueprint that holds a reference to a particle system. cascade is your particle editor in ue4. you are going to play with cascade a lot as you create various particle effects. an emitter is a single column in cascade that represents a single aspect of an overall particle effect.

in the case of our explosion, remember we had just the fire, just the smoke, or just the shrapnel. each one of those was its own emitter. a module is a modular component that controls one aspect of behavior within an emitter. modules go into emitters. type data modules are special types of modules that control what kind of particle you want to create. do you want to create a gpu sprite particle? do you want to create a mesh particle? do you want to create a beam particle? finally, a distribution is a way to handle numbers

in a special way. do you want just a constant value? do you want a min and max value? do you want a value that changes along a curve? you will change between different types of distributions depending on your needs. that is going to wrap up this video. thank you very much for watching.

Labels: Futuristic Design

Thanks for reading Futuristic Gun Design. Please share...!

0 Comment for "Futuristic Gun Design"

Back To Top