마법적 구슬형태 제작



마법적 구슬형태 제작

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


번호 포토 분류 제목 글쓴이 날짜 조회
748 언리얼4 언리얼5 - Stylized 불효과 제작방법(한글자막) 금별 02.28 160
747 언리얼4 언리얼 머트리얼 - 쇼크웨이브 형태의 디스토션 텍스쳐변화 효과 금별 02.27 146
746 언리얼4 Stylized 전기빔효과 간단제작팁 금별 02.27 139
745 유니티 유니티 앰플리파이 셰이더 - 2D 형태 Sci-fi 파티클 테이링 효과 예제 및 제작노드 금별 02.26 142
744 3D 3dsMax - 벌집모양의 쉴드형태 제작방법(AI한글자막) 금별 02.26 157
743 유니티 유니티 - 카툰풍 핵폭발 효과 제작과정(AI한글자막) 금별 02.26 430
742 언리얼4 언리얼5 - 8 Elements Pack에 들어가는 물효과 재현 과정(한글자막) 금별 02.23 162
741 3D 노말맵의 모든것(안콜3D) 금별 02.23 120
740 언리얼4 언리얼 - Frosted Glass 재질 제작방법 금별 02.21 124
739 언리얼4 언리얼 - 게임 이펙트 무엇이든 물어보세요(린반특강 2.20 오후7시30분) 금별 02.20 121
738 언리얼4 언리얼5 - 에너지 플래시 폭발 제작과정(한글자막) 금별 02.20 175
737 유니티 유니티 셰이더 그래프 - 간단한 지형스캔 효과 제작방법(한글자막) 금별 02.20 154
736 언리얼4 언리얼 - 카메라 거리에 따른 머트리얼 효과 예제(한글자막) 금별 02.19 151
735 언리얼4 언리얼 - 게임 이펙트 포트폴리오 제작 주의사항 및 실시간피드백,소통 라이브 금별 02.15 168
734 유니티 유니티 앰플라파이 셰이더 - 입체적 카드 효과 제작과정 금별 02.14 466
733 언리얼4 플랜 메시를 활용한 패닝이펙트 예제 금별 02.12 237
732 유니티 유니티 셰이더 그래프 - 2D 카툰풍 구체아우라 확산효과 제작과정 금별 02.07 398
731 언리얼4 언리얼5 - 커스텀 경로를 따라 나이아가라 플루이드 애니메이션화하는법(한글자막) 금별 02.07 200
730 언리얼4 언리얼5 - 언리얼 플루이드 리퀴드 시뮬레이션 제작과정(한글자막) 금별 02.07 179
729 2D 섭스턴스 디자인 - 화염 링텍스 제작과정(한글자막) 금별 02.07 200
728 2D 섭스턴스 디자인- 캠프파이어 불 텍스쳐시트 간단 제작예제 금별 02.06 187
727 언리얼4 언리얼 - SkyAtmosphereImage노드 간단설명 금별 02.06 182

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand