마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 3,107 2019.08.30 06:32

 

I guess this is the first entry to this category, since I never had such a demand for a write-up before. So here goes!

The different between this format and regular “My take on shaders” post is that this is a more direct format, just going through a particular effect that I find too specific to write a complete tutorial about. Also, in some cases, like this one, I won’t be providing the completed code but I will be writing about the general idea and the process behind the specific effect.

In my tweet I mentioned it being a form of “raymarching” though I might be using the term loosely here. While I use a loop to move towards a certain direction, the technique doesn’t really resemble traditional raymarching. So keep that in mind.

 

The core idea

 

I’ve been constantly thinking about how to take advantage of past effects, and in this case I had an idea concerning the “layered parallax” effect that I demonstrated in an older post.

With that technique, you could sample a texture using coordinates that had been offset “inwards” of the object, by using the camera’s view direction in tangent space. The effect is super useful for adding some depth to materials like ice, or tiles or basically anything you want to make it look like “there’s something underneath the surface”. The result looked something like this:

 

 

My thoughts going from this effect were these:

  • Let’s ditch the main texture, don’t need it for now
  • What if in every “layer” of this effect, I performed a “step” function on a 2D noise texture, where the cutoff value ranges from 0 to 1 based on the “index” of the layer?

The “stepping” (that’s what I’ll call “using the “step” function” from now on) was inspired by the concept of using grayscale textures as heightmaps, with their value representing depth. Adjusting the cutoff value of a simple texture with a radial gradient looks like this:

 

As if the texture actually represents a cone and when I’m using “step” I’m cutting slices into it which decrease in size as I get to the top. Basically I’m super-over-explaining SDFs here, but that representation really helped clear things in my head.

So, if I were to assign 1 to the cutoff value of the out-most layer, 0 to the value of the deepest layer and the inbetween values to the inbetween layers, each parallax layer would have a differently sized “slice” of the texture.

If we add that “stepping” to each layer, with the same radial gradient texture, we end up with something like this (the texture is tiled 5 times so just pay attention to the middle one):

 

This uses 10 iterations on the grayscale texture

Turn up the iterations/number of layers (here it’s something 128) and you have smoothness:

 

Add a somewhat more complex texture, like a simple cloud texture and you have this:

 

 

Trying out random textures and noises is super fun with this one btw.

Add the material on a sphere and you have the ORB:

 

 

Add 2 HDR colors, and lerp between them based on the layer “index” instead of just lerping the intensity from 0 to 1 (also some Post-processing for the looks):

 

 

Add some waving displacement when sampling the texture in each layer for some extra variation and *magic*:

 

 

And that’s it! I hope that was helpful and I hope there will be many more write-ups in the future, especially as I’m easing into VFX stuff at the moment of writing. So, I’ll 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


번호 포토 분류 제목 글쓴이 날짜 조회
1131 언리얼4 언리얼/후디니 - 머트리얼로 제작해보는 그록로고(블랙홀느낌) 금별 03.03 942
1130 언리얼4 언리얼/블랜더 - 귀멸의 칼날 느낌의 번개연출 표현제작과정(한글자막) 금별 03.03 891
1129 언리얼4 언리얼 - 포스트 프로세싱 머티리얼(방사형 블러) 제작과정(한글자막) 금별 03.03 855
1128 유니티 유니티 셰이더 그래프 - 간단한 Stylized 화염 트레일 제작과정(한글자막) 금별 03.03 1057
1127 언리얼4 언리얼5 - 문자열(string) VFX를 활용한 커스텀 이벤트 제작과정(한글자막) 금별 03.03 832
1126 유니티 유니티 UI 앰플리파이 셰이더 - 패턴에 빛 스와핑 효과 제작예제 금별 02.21 1118
1125 언리얼4 언리얼 UMG - 비디오 올리고 비디오 스타일 처리수행과정 금별 02.21 967
1124 언리얼4 언리얼5 - 허공에 찢어지며 생기는 포털 제작과정(한글자막) 금별 02.21 1064
1123 언리얼4 언리얼 - 그래디언트를 매끄럽게 혼합해 텍스쳐 변형하는 간단팁 금별 02.21 969
1122 3D 3D - 방사형 충격파 간단제작과정 금별 02.21 1039
1121 언리얼4 언리얼 - 흡수성 머트리얼 간단제작과정 금별 02.21 864
1120 유니티 유니티 - 볼류메트릭 메쉬 VFX 모델링 머드번 활용예제 금별 02.21 1071
1119 언리얼4 언리얼 - 카메라 연출관련 플러그인 Black Eye Cameras Overview 튜토리얼(한글자막) 금별 02.21 870
1118 언리얼4 언리얼5 - 스켈레탈 메시에 대한 Interactive Wetness Mask & Dripping Effects 제작과정(한글자막) 금별 02.21 875
1117 3D 후디니 - 피어나는 꽃봉오리 제작과정(한글자막) 금별 02.21 1014
1116 언리얼4 언리얼 - 나이아가라 간단한 촉수효과 제작과정(한글자막) 금별 02.21 954
1115 언리얼4 게임이펙트의 모든것! 졸업생 "김연아" 인터뷰_01 금별 02.19 873
1114 언리얼4 언리얼5 - 푸른 아우라 폭발 레이어별 제작간단예제 금별 02.15 930
1113 언리얼4 언리얼5 - 카오스 시스템 시작 가이드(한글자막) 금별 02.15 925
1112 언리얼4 린반Live - 언리얼 이펙트 클래식 리뷰하기1 금별 02.15 874
1111 언리얼4 언리얼5 - 시네마틱을 위한 총 머즐플래시 이펙트 제작과정(한글자막) 금별 02.15 1001
1110 언리얼4 언리얼 - UV활용 가짜 구형(스피어) 벌지 셰이더 노드예제 금별 02.15 906

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand