Unity particle effects-Episode 2-Smoke effects

1. Smoke effects preview

2. Production principle

smoke material

Link: https://pan.baidu.com/s/1D2TGRRZJnxXIzy97Iqf0gw?pwd=dn4x 
Extraction code: dn4x 

1. This is a combination of sequence frame pictures + particle effects.

This is a single entire smoke animation

The following are all the pictures of this animation. Playing them one by one is the video above.

Note here,We have 8 rows and 8 columns

3. Display smoke animation in particle effects

1. We first put the texture pack into the texture of the Renderer card. We found that it is a normal set of pictures and does not play the pictures in order.

2. Find the textureSheetAnimation tab and check it. This tab will help us split the entire animated picture into small pictures to play as animations.

Because our picture has 8 rows and 8 columns, the x and y of our tiles are filled with 8

At this point, we are playing the animation normally instead of rows of pictures.

4. Adjust smoke basic information animation

1. I hope this animation will play for 1 second in total.

2. After being launched, each small smoke plays for 0.8-1 seconds.

3. The speed of launch. Between 0.3-0.5

4. The size of the smoke emitted is between 2 times and 3 times

5. The starting angle is between -360 and 360

6. Change the maximum number of particles to a smaller value, change it to 25

Effect (already almost the same):

5. Adjust smoke emission information

1. We launch 4 smokes in one second (to create a sense of atmosphere)

2. We launch 2 smokes at once (to create a little explosion feeling)

result:

6. In which range are particles emitted?

We can set the range in which particles are emitted, such as emitting averagely in a rectangular direction, such as a fan-shaped direction,

For example, if I want the smoke to be emitted in all directions, I want it to be emitted in the shape of a sphere

I don’t want his shots to be too scattered, so I set the radius of the ball a little smaller.

result:

The previous result was a flat smoke emitted, now it has a round shape.

7. Effect optimization

The final result (the color can be changed by yourself):

Guess you like

Origin blog.csdn.net/weixin_49427945/article/details/134123835