마법적 구슬형태 제작



마법적 구슬형태 제작

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


번호 포토 분류 제목 글쓴이 날짜 조회
1301 언리얼4 Rock Spike Eruption FX in UE5 Niagara ashif 03.16 37
1300 언리얼4 Magical Beam Strike AOE Tutorial | UE5 Niagara VFX ashif 03.12 74
1299 언리얼4 Spider Web Shader in UE5: Step-by-Step Material Tutorial ashif 03.07 121
1298 언리얼4 Basic Smoke to Burning Smoke in Unreal Engine 5 Niagara Tutorial ashif 02.26 179
1297 언리얼4 How to Animate Lava Materials in Unreal Engine 5 Tutorial ashif 02.24 168
1296 언리얼4 UE5 Lava Material in 5 Minutes ashif 02.18 200
1295 언리얼4 UE5 Burning Decal Material Tutorial ashif 02.17 197
1294 언리얼4 언리얼 - 흑백 플래시 포스트 프로세스 연출 제작팁 금별 02.11 340
1293 3D 후디니 활용 - 블랙홀 폭발 포인트 텍스처 제작과정 금별 02.11 276
1292 언리얼4 Unreal Engine 5 Tutorial: Create a Cursed Mist VFX ashif 02.10 239
1291 언리얼4 언리얼 - 나이아가라 Advanced Guide – 위치 기반 동역학 금별 01.09 553
1290 언리얼4 Niagara로 생성된 Static Mesh에서 파티클 스폰하기 금별 01.09 511
1289 언리얼4 언리얼 - 나이아가라로 스플라인을 따라 발사되는 파티클 제작 금별 01.09 413
1288 언리얼4 언리얼5 - 어검술의 완성 : 검진(Sword Array) 심화 기동 및 고급 제어(한글자막) 금별 01.09 425
1287 언리얼4 언리얼5 - 벡터 연산을 활용한 검진(Sword Array) 지정 방향 발사 로직(한글자막) 금별 01.09 371
1286 언리얼4 언리얼5 - Particle Reader를 활용한 검진(Sword Array) 타겟 추적 및 회전 제어(한글자막) 금별 01.09 320
1285 언리얼4 언리얼5 - 파티클 Index를 활용한 원형 검진(Sword Array) 배치 제작과정(한글자막) 금별 01.09 311
1284 언리얼4 언리얼5 - VHS 포스트 프로세스 제작과정 금별 01.09 321
1283 언리얼4 언리얼5 - 데드 스페이스 VFX reborn[팬메이드] 금별 01.09 329
1282 언리얼4 Simple Light Aura VFX in UE5 Niagara Tutorial ✨????️???? ashif 01.08 326
1281 언리얼4 Heat Distortion VFX for Fire in UE5 Niagara! (Photoshop & Normal Map Workflow) ????????✨ ashif 2025.12.16 392
1280 2D 섭스턴스 디자인 - 색수차(Chromatic Aberration) 매직 오라 텍스처 만들기(한글자막) 금별 2025.12.16 530

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand