“This is the 18th day of my participation in the First Challenge 2022. For details: First Challenge 2022.”
👉 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.)
Welcome to pay attention to the public account [Mr. Empty name] for more resources and communication!
👉 premise
Continuing our special effects series, today we realize the blast ripple effect.
It’s well known that explosions release a lot of energy in a very short period of time, producing high temperatures to release gases and causing high-pressure reactions around them.
So we see the explosion in several stages, first light, then fire and shock wave, then sound and then smoke.
Small empty in order to facilitate more people (novice) to understand, the use of Chinese characters, real projects as far as possible to use English rules.
Novice (√√√)
Big guy (√)
So our blast wave prefab consists of the following: blast light, fire, blast wave, smoke, sound.
Case environment
Unity 2020.3 LTS series
👉 Practice
😜 explosion of light
The burst light increases suddenly at a rapid rate, then “slowly” increases, and then disappears. The total duration is quite large, so we used lifetime color and lifetime size.
[Launch] module, the explosion is sudden and there is a certain number, so use the above effect
[Shape] module, is a sphere this is not much to say, if the ground can use a half sphere
[Life Cycle color] module, is gradually transparent
[Size within life cycle] module, which rapidly becomes larger to slowly become larger
[Renderer] module, use the default
😜 spark
It doesn’t make sense if there’s no fire, so let’s add a firestar effect.
Let’s see what sparks look like as a whole:
[Basic] Module, the starting speed of the spark is different, use the interval random value, the starting size is different, use the interval random value, of course, also need to change the color, make an orange color.
[Emission] and [Shape] modules, similar to the explosion light, but with more particles in the burst
[life cycle speed limit] is necessary, after all, it is impossible to send out without resistance, let’s do 0.01
[Color within life cycle] module, the transparency changes all the time. When burning incense and paper, you can see the flame flicker and flicker.
[Renderer] Default.
😜 shock wave
Shockwave is one of the more sensuous effects. In fact, it is not difficult to figure out the implementation, as long as it is limited to a single particle, the size changes with the life cycle, and the renderer uses [grid Plane] to make a circular material.
😜 smoke
Do this, needless to say, I believe many students also know how to do: make a smoke material, the size of the life cycle gradually increase, the color from transparent to translucent to transparent.
Because the color happens a little bit after the explosion, we need a delayed start.
😜 Final Effect
👉 other
📢 author: Kom and Kom in Kom
📢 reprint instructions – be sure to specify the source: Zhim Granular’s personal home page – column – Nuggets (juejin. Cn)
📢 the road friend please stay ☁️, I see you extraordinary, talk between the faint king imperious 💚, in the future will have a great as 📝!! Next to a little like 👍 collect 🌟 pass you today, point it, in the future you successful ☀️, I do not take a cent, if not successful ⚡ 🌟, or come back to me.