마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 1,958 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


번호 포토 분류 제목 글쓴이 날짜 조회
844 언리얼4 언리얼5 - BumpOffset에 관한 설명 및 사용예제(한글자막) 금별 05.18 18
843 유니티 유니티 셰이더 그래프 - 홀로그램 카드 제작방법(한글자막) 금별 05.18 17
842 언리얼4 언리얼5 - 나이아가라를 활용한 히트 이펙트 제작과정(한글자막) 금별 05.18 16
841 언리얼4 Impact FX in UE5.4 Niagara | For Patreon ashif 05.15 29
840 언리얼4 린반 언리얼 이펙트 라이브(5.15일자) - 레이아웃의 중요성 금별 05.15 45
839 3D 블랜더 Stylized VFX - 에너지 볼 생성 방법(한글자막) 금별 05.14 37
838 3D 블랜더 Stylized VFX - 알파 카드를 활용 2D 드래곤볼 파워업 효과 제작과정(한글자막) 금별 05.14 31
837 유니티 KUPAFX 유니티 이펙트 취업 클래스 모집중[24년 6월 시작/매우높은취업률] 금별 05.11 45
836 언리얼4 언리얼5 - 나이아가라 스플라인 이펙트 제작과정(한글자막) 금별 05.10 94
835 언리얼4 언리얼5 - 나이아가라 구안에서의 파티클 움직임 제어방법 금별 05.10 63
834 언리얼4 언리얼 - UV, UV Flow 머트리얼 제작 개념(한글자막) 금별 05.09 74
833 언리얼4 언리얼 - Star Burst 효과 제작과정(한글자막) 금별 05.09 73
832 유니티 유니티 - Ezreal Slash VFX 제작과정(한글자막) 금별 05.08 82
831 언리얼4 언리얼 - 로테이터 노드 활용 UV 나선형으로 왜곡하는방법 금별 05.07 65
830 언리얼4 언리얼 - 프로시졀(절차적) Light spot 머트리얼함수 제작과정(한글자막) 금별 05.07 69
829 3D 블랜더를 활용한 Stylized 폭포 제작과정(한글자막) 금별 05.06 49
828 2D 3D 솟구치는 소용돌이 아우라 효과 레이어별 제작과정영상 금별 05.05 92
827 2D 2D 아우라 소용돌이 짧은 제작과정영상 금별 05.05 62
826 언리얼4 언리얼 - 프로시졀(절차적) Light spot 머트리얼함수 제작과정(한글자막) 금별 05.03 72
825 언리얼4 언리얼 - 포토샵을 활용한 경로 그라데이션 효과 제작과정(한글자막) 금별 05.03 78
824 언리얼4 언리얼 - 메카봇 파괴 효과 간단 제작과정 금별 05.03 73
823 언리얼4 언리얼5 - 나이아가라 리본을 활용한 단순한 거미줄 효과 제작과정(한글자막) 금별 05.03 69

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand