This is the 27th day of my participation in the August Genwen Challenge.More challenges in August
👉 About the author
As we all know, life is a long process of constantly overcoming difficulties and reflecting on progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share my thoughts, experiences and stories to find resonance!! Focus on Android/Unity and various game development tips, as well as various resource sharing (websites, tools, materials, source code, games, etc.)
👉 about to learn
Using particle system to achieve rain effect.
We must master core science and technology and raise productivity. The key things are falling speed, size change, color change, and renderer selection
👉 effect preview
👉 background
A normal rainy day.
🙎 Xiaozhi: Look, it’s raining.
🙈 Xiao Kong: Yeah, it’s great. I love the rain.
🙎 small zhi tilt head: why ah?
🙈 Xiaokong meditation: because rain makes people very comfortable, the more important is that rainy days can be quiet to do special things.
🙎 Xiaozhi: Something special? (Small zhi is suddenly surprised) ah, can’t be, can’t be that, how can do that kind of thing? We haven’t… Ah! Ah! Ah! And shy!
🙈 Xiao Kong: You are sick. What are you muttering about? I’m talking about sleeping.
🙎 Xiaozhi: Huh? Just sleep? No other?
🙈 Komon: Of course, according to some research, who knows who — maintaining a long term focused attention will make people mentally tired, and people need some ways to replenish their energy after mental exhaustion. When surrounded by the soft beauty of the natural environment, people unconsciously empty their minds, not to achieve any destination to experience the unity of nature and man. In this sense, people no longer care about worldly values, no longer worry about fame and wealth, and it is these experiences that replenish people’s wasted energy and restore their attention.
🙎 small zhi thought to oneself: I somehow also be a girl, you can’t have a little other idea? I’m so passive!
…
Chatting, small empty opened the computer again.
👉 Case Environment
Unity 2020.3 LTS series
👉 Practice
The base attribute lasts a little longer because it has to rain from top to bottom
It will always rain, so turn on the loop (it’s on by default)
Rain comes in different sizes, so we take a range (0.2-1) to simulate different sizes
The color of the rain is transparent and inconsistent, so in fact the color (white changes transparency A) we have to have some interval and let it be randomly generated
Launch and shape and what to say. More particles are produced per unit time if it rains heavily.
The number of particles per unit time is 1000 on the left and 10,000 on the right
The rain is definitely falling down, so we need to add a force, and the Y-axis is up and down
Then there’s the color and size of the life cycle. Color does not change, the change is transparency, size, follow, see what you want to rain.
The most critical is of course the renderer, without her is not showing the effect.
Since we need to flex the ions, we use stretch Billboard mode
Scale the length
Turn the biggest particle down a little bit, because it’s not raining that hard.
Well, the rain stops here, so let’s run it.
In fact, this is not the real rain, rain on the ground not only water, but also sound, wind, and so on.
But don’t worry, we’ll continue with the rain effect in the next video.
👉 source address
Unity particle effects series – Rain Effects – Drizzle. Zip -Unity3D document resources
👉 follow-up
That’s it? It doesn’t exist.
Kongon has another canto. Jesus can’t change that.
I said.
Here’s a preview of the new content:
👉 other
📢 author: Kom and Kom in Kom
📢 Official account: [Mr. Empty Name]
📢 reprint description: be sure to specify the source: Zhim Granular’s personal home page – column – Nuggets (juejin. Cn)
📢 welcome to like 👍 collect 🌟 message