마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 3,115 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


번호 포토 분류 제목 글쓴이 날짜 조회
445 언리얼4 언리얼 이펙터 기본강의 - 색감과 타이밍[한글이론] 금별 2022.10.23 2125
444 3D 블랜더 - 노드만을 이용한 원형 화염 제작 금별 2022.07.14 2132
443 언리얼4 언리얼 - 언리얼 나나이트 기본 개념 정리 금별 2024.02.03 2136
442 언리얼4 언리얼 - 디지털 트랜지션 효과 제작방법 금별 2023.02.17 2139
441 언리얼4 언리얼5 - 캐릭 착지시 먼지 효과 생성 제작과정 금별 2023.04.14 2140
440 언리얼4 언리얼 - 무지갯빛 버블 쉐이더 제작과정 금별 2023.03.17 2143
439 언리얼4 언리얼 머트리얼 노드 예제 - 2D 트랜지션 효과 노드 금별 2022.08.18 2145
438 언리얼4 언리얼 5.4 - VDB 및 Heterogeneous 볼륨으로 화산 분출(한글자막) 금별 2024.06.10 2145
437 언리얼4 언리얼 머트리얼 - 다양한 UV 샘플링 모양 제작방법 금별 2022.11.23 2153
436 언리얼4 [한글]언리얼 - Dust FlowMap concept Tutorial 먼지 플로우맵 효과1 제작튜토리얼 금별 2022.10.26 2158
435 3D 후디니 - Lightning Weapon Slash Mesh 제작방법 금별 2022.12.06 2159
434 유니티 유니티 쉐이더 팁 - 스텐실 버퍼를 활용한 카드형 포털 효과 금별 2023.05.10 2161
433 유니티 유니티 VFX 그래프 - 기둥형태 내리꽂는 빔효과 제작과정(한글자막) 금별 2023.12.13 2162
432 3D 3dsmax에서 UV polar coordinate의 불규칙 모델 구현 금별 2022.12.11 2165
431 언리얼4 언리얼4 - 화염검 이펙트 제작 과정(중국어) 금별 2021.12.06 2165
430 유니티 유니티 앰플라파이 셰이더 - 입체적 카드 효과 제작과정 금별 2024.02.14 2165
429 유니티 유니티 URP - 간단 바닥 화염 크랙 제작과정 금별 2023.06.12 2167
428 언리얼4 언리얼 머트리얼 - 타일 그라디언트에서 원형 링 마스크로 변환 금별 2023.08.16 2171
427 유니티 유니티 - 솓구치는 물회오리 이펙트 프로젝트파일 금별 2023.10.28 2171
426 3D 3dsMax - 벌집모양의 쉴드형태 제작방법(AI한글자막) 금별 2024.02.26 2173
425 언리얼4 언리얼 머터리얼 - UVPlayground/다양한 형태 변형 금별 2022.03.25 2179
424 공구,번역정보 언리얼 - 커스텀 뷰 모드를 위한 포스트 프로세스 머티리얼 금별 2024.03.28 2182

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand