유니티 쉐이더 팁 - 유령 트레일효과 SIN WAVE TRAIL



유니티 쉐이더 팁 - 유령 트레일효과 SIN WAVE TRAIL

금별 0 7,038 2019.08.02 19:53

 

 

It was done with just a particle system, and it is particle mesh render within trail component. The issue of the effect is how to create three different swing trail on a single plane.

The shader is made by Amplify shader editor 1.5.8. It also could do it with shader graph in Unity.

大圖Full Size



Texture made by Substance designer 2018

R:  for trail 1.
G:  for trail 2.
B:  the noise of distortion.
A:  the noise for dissolve.

大圖Full Size
 

Shader Breakdown of shader


1.基礎Shader屬性設定 Setting property 
2.Shader大圖中Sin01的區塊為擺動UV的產生,Sin02及03僅是重複01計算後,改變其波長頻率時間等來製作三種不同擺幅 。
The Sin01 block is working for the motion of V coordinate. Sin02 and Sin03 block are just duplicate it, and modify the value of wavelength, amplitude and time to do the variety of motion.

 

 a. First, create the sin node and add with time.

 

 

b. V coordinate remap to 1~ -1, and then add to Sin. You can fin the Sin wave animation. 

 

c. As the result, value goes to be more than one. It has to remap to 1~ -1.

 

d. Multiply U coordinate to increase the swing animation from left to right (0~1) and add to the origin V coordinate. 

 

e. Append swing V and origin U to get the swing UV for trail map.

 

 

3. In order to make the trail animation to be more variety, need to add some distortion into UV. The Flow UV block work with two motion from B channel of texture and multiply the parameter value to control the strength of distortion. Multiply U coordinate to keep shape in the start position (left) and more distortion to end (right).

 

 

 

4. Create the edge mask within UV coordinate to clean the shape animation over the edge.

 

 

5. Dissolve block is doing the dissolve in the end of trail.

 

 

a. Add Flow UV to make it naturally.

 

b. To add frac node, it will let the value from 0~1, even it is going to be huge from time. But the texture have to be seamless. In this way, it could maintain the motion value and some performance.

 

c. Modify the ramp (0~1) to increase effect of dissolve. 

 

6. Lerp within U coordinate to create two color from start (left) to end (right). 

 

 

 Shader的部分就到此完成
Done

 

粒子系統設置 particle setting


The render is mesh particle and add the trail component. You can find the detail setting in the below picture.

 

It is the breakdown of the Sin Wave effect.

 

Comments


번호 포토 분류 제목 글쓴이 날짜 조회
724 언리얼4 언리얼 - 언리얼 나나이트 기본 개념 정리 금별 2024.02.03 1788
723 2D 텍스처 압축포맷 정리 금별 2024.02.03 1048
722 유니티 유니티 - 초보자도 이해하는 URP와 성능, 그리고 모바일까지 금별 2024.02.03 1199
721 언리얼4 언리얼5.4 - 나이아가라의 스킨 캐시 데이터 엑세스 옵션 추가 금별 2024.02.02 975
720 유니티 유니티 셰이더 그래프 - 오디오 비주얼라이저 효과 제작과정 금별 2024.02.02 1074
719 언리얼4 언리얼5 - 카툰형 메테오 레인 제작과정(한글자막) 금별 2024.01.31 1353
718 언리얼4 언리얼5 - 나이가라 활용한 아이스 스킬효과 제작과정 금별 2024.01.29 1244
717 유니티 유니티/후디니 - 빔 이펙트 제작과정 금별 2024.01.29 1189
716 언리얼4 언리얼5 - 물고기떼 군중이동 간단제작과정(한글자막) 금별 2024.01.29 1116
715 유니티 유니티 셰이더 그래프 - Zelda: Breath of the Wild의 원격 폭탄 만들기(한글자막) 금별 2024.01.27 1403
714 언리얼4 언리얼5 - 화속성 화염 드래곤 토네이도 제작과정(중국어/AI한글자막) 금별 2024.01.26 1240
713 언리얼4 언리얼5 - 배경 운무(안개연기)효과 제작과정(중국어/AI한글자막) 금별 2024.01.26 1323
712 2D AI를 활용한 쉽게 배경 누끼 따는 사이트 금별 2024.01.24 1258
711 유니티 유니티 - 부분 화면 흔들기 셰이더 제작방법 금별 2024.01.22 1046
710 언리얼4 언리얼5 - 나이아가라 이미지 생성 파티클/모듈을 이용한 파티클 로고 만들기(AI자막) 금별 2024.01.20 1283
709 언리얼4 언리얼5 - UV 맵에 따라 파티클을 방출(중국어/AI자막) 금별 2024.01.20 1653
708 언리얼4 언리얼 - 커브에서 float값에 대한 보다 직관적인 값 입력 금별 2024.01.19 1001
707 언리얼4 언리얼5 - Red Smoke Flare Effect 제작과정 금별 2024.01.19 1087
706 유니티 유니티 앰플리파이 셰이더 - 병의 출렁이는 액체셰이더 제작과정 금별 2024.01.16 1086
705 유니티 유니티 - 카툰풍 플루이드형태 피튀김 효과 제작과정 금별 2024.01.16 1145
704 2D 애프터 이펙트 - 파티클 플레임 시퀀스 소스 제작과정 금별 2024.01.16 1027
703 언리얼4 언리얼 - 2D 카툰 물보라 간단제작팁(노드이미지첨부) 금별 2024.01.15 1221

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand