토네이도와 폭발효과 만들기



토네이도와 폭발효과 만들기

금별 0 6,775 2019.08.18 17:38

원문 : https://halisavakis.com/write-up-tornado-explosion/

 

Tornado & Explosion

 

 

 

 

Recently I started experimenting with VFX and my 2 first entries on the field were 2 pretty standard concepts: a tornado and an explosion. Actually the whole idea of getting into VFX dawned on me after watching an awesome VFX tornado by Spyro. So I tried approaching VFX my own way, with my existing assets/shaders and knowledge, and started with these 2 simple concepts, with a style I had in mind which was similar to the waterfall shader I covered before.

 

Tornado

 


In case you missed it, the tornado turned out something like this:

 

 

 

 

By now, you’ve probably figured out that it’s all about layering stuff, and this effect was no exception. It’s a combination of 3 distinct effects (4 if you include the clouds, which I won’t cover here): the tornado core (which consists of 4 meshes using the same shader), the top and bottom spiraling planes (can’t think of a better description) and the particle system on the bottom.

 

Tornado core


The only custom mesh I used, looks something like this:

 

 

 

 

It’s nothing special, I did however make sure the UVs cover the whole square, so that the noise texture tiles as it pans on it.

I made a custom shader for the tornado which does the following effects:

Takes a noise texture and pans it in both axes according to a given speed.
Takes 2 HDR colors and, after rounding the texture’s values (like in the waterfall), lerps between them based on the banded value.
Displaces the vertices of the model based on the noise texture (white = outwards, black = inwards).
Uses a cutoff value to clip the pixels according to the texture’s grayscale value (without the rounding, for more values).
To get a better idea, each of the 4 layers of the core look like this:

 

 

 

 

Each layer has a different material with different colors, amount of clipping, scaling and vertex displacement power.

An important factor to get this look was the noise texture, created in substance designer:

 

 

 

 

 

Since I pan the texture in both axes, having a noise texture that was tilted 45 degrees like that was imperative to having the tornado swirling look.

 

Spiraling planes

 


The planes on the top and bottom of the tornado, while not fitting without a context (and the sky is not really fitting to the scene), contribute significantly to the impression of the sucking power of the tornado. They use a shader which is more or less the exact same as the tornado core, but with one big difference: they sample the noise texture in polar coordinates. That way, they give the impression of the texture being sucked towards the center, like a portal. That’s obviously why using polar coordinates is common to portal effects.

 

 

 

 

 

The particles
 

The more keen-eyed of you might have seen the shader before; it’s the one from that waterfall shader I mentioned above. The shader for them is explained and written in the second part of the tutorial so you can check it there!

 

 

 

 

Explosion


Following the same style as the tornado, I wanted to make an explosion effect, as it’d probably be way more commonly used than the tornado. Because I was following the same style and the principles were more or less the same, I ended up using pretty much the same exact shaders with different parameters. The end result was something like this:

 

 

 

 

Just to see it a bit better, here’s the effect without the animations:

 

 

 

 

You probably guessed it already: it’s a bunch of layers. No more than the tornado too. Here there are 3.5 distinct effects (3.5 because there are just 3 different shaders but one is used differently and on a separate mesh): The inner core of the explosion, the outer layers, the bottom spiraling plane and the outer air layers.

 

Inner core

 


While this was a separate shader, the principle was the same: Noise texture that pans with some speed, used for both coloring by lerping between 2 HDR colors (no banding here though) and for displacing the vertices.

Without the extra layers, it looks like this:

 

 

 

 

With a noise texture that looked like this:

 

 

 

 

 

Outer layers


There are 2 outer layers, using the exact same shader and setup as the tornado layers. Easy to figure out when you see them away from each other:

 

 

via GIPHY

 

 

Having them pan the opposite way really contributes to the chaos of the explosion, at least for me.

FYI, all these meshes are spheres, they just have a plane hiding the rest of the mesh.

 

Bottom spiraling plane


No surprises here, it’s the exact same thing as before.

 

 

via GIPHY

 

 

Air layers


Just for this one, I’ll remove the ground plane to see what’s going on:

 

 

via GIPHY

 

 

Yes, it’s the tornado mesh with the same shader. I’m that lazy.

 

The animation


Clearly most of the work went into animating the thing, to have a somewhat nice feeling on the impact and the timing. Lucky for me, I have a custom tool I made that takes care of simple “programmer” animations, using coroutines and such.

With that tool I can move, scale, rotate transforms, but I can also change the color of sprites/UI elements and (the more underutilized feature which I loved for this effect) change the property of a material. I can also sequence the aforementioned animations, delay them and make them use specific easing curves (or custom ones). It’s a handy tool, but right now it needs a massive refactoring and major UI/UX improvement cause this is an editor that only I can love:

 

 

 

 

The good thing is that all the aforementioned shaders have a “_Cutoff” property, so it was easy to dissolve the effect over time, while also scaling it.

 

Radial blur


To give more of an impact during the explosion, I used a custom shader for radial blur, for which I also happen to have a tutorial with the code right here. Lucky you! I do have to note that I’ve added a slight chromatic aberration effect on the existing shader though.

Here’s a comparison of a screenshot with and without the radial blur:

 

 

 

 

Without radial blur

 

 

 

 

Conclusion


And that’s it! Hopefully this breakdown gives you a good idea about how to achieve similar effects! For me these little experiments are super fun and I want to explore what else I can do with these simple techniques and shaders. Until then, see you in the next one!


These posts will never go behind a paywall. But if you really really super enjoyed this post, consider buying me a coffee, or becoming my patron to get exciting benefits!

 

Comments


번호 포토 분류 제목 글쓴이 날짜 조회
803 언리얼4 Fire Beam from Ground in Unreal Engine 5 Niagara ashif 04.10 11
802 언리얼4 Arcane Ruin FX in Unreal Engine 5 Niagara ashif 04.09 32
801 언리얼4 Arc Slash FX in Unreal Engine 5 Niagara ashif 04.09 27
800 언리얼4 【UE5+후디니】UV 커스텀 무기 디졸브 기반 빠른 모델 제작_파트 2 금별 04.09 27
799 언리얼4 【UE5+후디니】UV 커스텀 무기 디졸브 기반 빠른 모델 제작_파트 1 금별 04.09 27
798 언리얼4 【UE5+후디니】루빅 큐브형태 애니메이션 연출 생성과정(한글자막) 금별 04.09 29
797 언리얼4 【UE5+후디니】Stylized형태 검기을 생성 제작과정(한글자막) 금별 04.09 26
796 언리얼4 【UE5+후디니】 동적 디졸브 구쉴드 생성 과정(한글자막) 금별 04.09 27
795 언리얼4 Arcane Magic Lightning Eruption FX in Unreal Engine 5 Niagara ashif 04.05 68
794 언리얼4 언리얼 - HLSL 커스텀노드_소벨 외곽선 추출 금별 04.04 75
793 언리얼4 언리얼 - HLSL 커스텀노드_픽셀화 효과 제작과정 금별 04.04 62
792 언리얼4 AOE Slam FX in Unreal Engine 5 Niagara ashif 04.01 75
791 언리얼4 Illugen 활용 절차적 지면 크랙 효과 텍스처 생성(한글자막) 금별 04.01 102
790 언리얼4 언리얼 - 파티클 원형 궤도(Circular Orbit) 위에서 자동 정렬방법(한글자막) 금별 04.01 107
789 언리얼4 언리얼 - 간단한 머트리얼 디졸브를 구현하는 세 가지 방법(한글자막) 금별 03.22 211
788 언리얼4 언리얼/후디니 -VAT 이펙트 툴체인 40분 설정: Niagara 워크플로우를 구축 방법(한글자막) 금별 03.22 168
787 언리얼4 언리얼5 - 기본 스트라이프 렌더러 재질 효과 작성 방법(한글자막) 금별 03.22 145
786 언리얼4 언리얼5 - 나이아가라는 입자를 나선형으로 움직이며 타깃에게 공격방법(한글자막) 금별 03.22 162
785 언리얼4 언리얼5 - 나이아가라 입자의 원형 운동을 수동으로 조작 방법(한글자막) 금별 03.22 118
784 언리얼4 언리얼5 - 나이아가라 입자를 특정 순서로 발사하여 적을 공격 방법(한글자막) 금별 03.22 131
783 언리얼4 언리얼5 - 나이아가라 원형으로 입자를 발사해서 타깃에게 움직이기(한글자막) 금별 03.22 113
782 언리얼4 언리얼5 - 나이아가라 입자를 원형으로 움직이게 하는 방법(한글자막) 금별 03.22 137

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand