마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 4,694 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


번호 포토 분류 제목 글쓴이 날짜 조회
1358 언리얼4 UEFN VFX Tutorial | Make EXPLOSION (UE6 Ready) ???? ashif 07.31 21
1357 언리얼4 UEFN VFX Tutorial | Make PORTAL (UE6 Ready) ashif 07.30 32
1356 언리얼4 Pro Elemental Aura Pack – 10 Highly Customizable Effects ashif 07.29 36
1355 언리얼4 UEFN VFX Tutorial | Make SHIELD DOME (UE6 Ready) ????️ ashif 07.29 37
1354 공구,번역정보 UEFN VFX Tutorial | Make ITEM PICKUP (UE6 Ready) ✨ ashif 07.28 39
1353 3D 후디니 - COP활용 Stylized 느낌 물 소용돌이 제작팁 금별 07.15 154
1352 언리얼4 언리얼 - 논텍스처 UV 기반 기하학적 패턴/애니메이션 제작팁 금별 07.15 165
1351 언리얼4 언리얼5 - 간단한 공간 균열 제작 워크플로우 금별 07.08 249
1350 언리얼4 언리얼5 - 스크래치 패드활용 간단한 나이아가라 파티클 전체 회전 금별 07.08 208
1349 유니티 유니티 - Stylized 기본 검기 제작04_기본 검광 제작 (전체 워크플로) 금별 07.08 187
1348 유니티 유니티 - Stylized 기본 검기 제작03_검광 모델, 텍스처 및 UV 생성 금별 07.08 158
1347 유니티 유니티 - Stylized 기본 검기 제작02_검기의 구성과 리듬 금별 07.08 163
1346 유니티 유니티 - Stylized 기본 검기 제작01_파티클 시스템 소개 금별 07.08 187
1345 언리얼4 You need this Explosion in Unreal Engine 5 Niagara ashif 07.07 129
1344 언리얼4 언리얼 - 사실적인 데칼 균열 제작과정(한글자막) 금별 06.01 596
1343 언리얼4 언리얼 - 물결 형태 텍스쳐 트랜지션 효과 제작과정(한글자막) 금별 06.01 514
1342 언리얼4 언리얼 - Niagara에서 정적 메시를 사용하여 사용자 지정 파티클 모양 만들기 금별 05.17 600
1341 언리얼4 언리얼 - 포스트 프로세스 2D 페이지 넘김 효과 머트리얼 예제 금별 05.17 493
1340 언리얼4 언리얼 - AI 활용 블랙홀 셰이더를 업그레이드(한글자더빙) 금별 05.17 513
1339 유니티 유니티 - 호박(Amber) 셰이더 제작과정(한글자막) 금별 05.12 475
1338 언리얼4 언리얼 - HLSL 심층 설명 4_레이마칭 활용 평면정사각형 메시 3D 구체로 변형 금별 05.12 490
1337 언리얼4 언리얼 - HLSL 심층 설명 4 -UV 좌표를 레이어로 반복 쌓아 깊이감 있는 오목볼록 효과 구현(한글자막) 금별 05.06 528

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand