마법적 구슬형태 제작



마법적 구슬형태 제작

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


번호 포토 분류 제목 글쓴이 날짜 조회
1225 언리얼4 언리얼 - '작은(Tiny) 지오메트리' 병합을 통한 카오스 최적화 팁 금별 2025.10.11 448
1224 언리얼4 언리얼5 - 사실적인 횃불 VFX: Houdini와 Embergen 활용 금별 2025.10.11 295
1223 언리얼4 언리얼5 - WorldPositionBehindTranslucency로 만드는 간단 커스텀 데칼 UV 금별 2025.10.11 277
1222 유니티 유니티 - 망치 타격 효과 연출 part2(한글자막) 금별 2025.10.11 306
1221 유니티 유니티 - 망치 타격 효과 연출 part1(한글자막) 금별 2025.10.11 334
1220 언리얼4 Create an Epic Rings Burst AOE FX in UE5 Niagara! (Full Tutorial) ashif 2025.09.25 407
1219 언리얼4 Create a Dynamic Sci-Fi Dome Material in UE5! (Full Tutorial) ashif 2025.09.24 370
1218 유니티 유니티/3DsMax - 깔끔한 기본 메시 검기 제작과정 part2(한글자막) 금별 2025.09.19 456
1217 유니티 유니티/3DsMax - 깔끔한 기본 메시 검기 제작과정 part1(한글자막) 금별 2025.09.19 460
1216 언리얼4 언리얼5 - 나이아가라 리본의 첫 트레일 프레임이 자연스럽게 나타나는 제작팁 금별 2025.09.19 531
1215 언리얼4 언리얼5 - [퀵팁] Niagara를 하나의 파라미터로 컨트롤과정 금별 2025.09.19 481
1214 유니티 언리얼5 - 심플한 솟아오르는형태 아우라 제작과정(한글자막) 금별 2025.09.19 458
1213 언리얼4 언리얼5 - 나이아가라 플루이드 2d Gas Smoke 기본조절 금별 2025.09.19 383
1212 언리얼4 린반 게임이펙트 라이브 - (취업준비편)포트폴리오 구성/주의사항/면접관련 각종팁들 금별 2025.09.19 489
1211 언리얼4 언리얼5 - Niagara로 번개와 표면 상호작용 VFX 만들기 금별 2025.09.03 657
1210 언리얼4 언리얼5 - 간단한 바닥 아우라 색수차 효과를 추가 제작팁 금별 2025.09.03 653
1209 언리얼4 언리얼5 - Rotate Around Point 활용 궤도 애니메이션 연출 간단팁 금별 2025.09.03 505
1208 언리얼4 언리얼5 - halftone post-process 제작 예제 금별 2025.09.03 1072
1207 언리얼4 언리얼5 - 흡수 및 폭발 효과 간단 제작과정(한글자막) 금별 2025.09.02 1074
1206 언리얼4 언리얼5 - 회피 텔레포트 효과 간단제작과정(한글자막) 금별 2025.09.02 526
1205 언리얼4 언리얼5 - Stylized 화속성 검기 간단 제작 분석(한글자막) 금별 2025.09.02 599
1204 언리얼4 언리얼5 - 메시 조각 흡수 간단 제작과정(한글자막) 금별 2025.09.02 775

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand