마법적 구슬형태 제작



마법적 구슬형태 제작

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


번호 포토 분류 제목 글쓴이 날짜 조회
471 언리얼4 언리얼 - 버프형 음계효과 제작방법 금별 2022.06.18 2059
470 유니티 유니티 VFX 그래프 - 오브 이펙트 제작과정 금별 2023.08.10 2060
469 언리얼4 언리얼5 - 간단한 소용돌이 쉐이더 제작방법 금별 2023.08.11 2061
468 언리얼4 언리얼4 나이아가라 - 파티느낌의 리본이펙트 제작방법 금별 2022.11.03 2063
467 언리얼4 언리얼5 - 모래폭풍 만들기 제작과정 금별 2023.12.12 2063
466 언리얼4 언리얼 - 게임에서 VAT를 활용하는 방법(GIC 폴란드 컨퍼런스) 금별 2022.10.16 2064
465 언리얼4 언리얼 - 부채꼴 광역 냉기 공격 제작과정(중국어) 금별 2022.06.26 2065
464 3D 후디니- 그리드를 활용한 충격파 그라운드스파이크 간단제작과정 금별 2023.03.26 2068
463 언리얼4 언리얼 - 구형 UV 활용 방법 금별 2023.06.17 2074
462 언리얼4 언리얼 에셋 - Node Graph Assistant 금별 2022.02.11 2080
461 언리얼4 플립 백사이드 버택스 노멀 금별 2020.02.25 2088
460 유니티 유니티 - Screen space reflections(SSR) 파이프라인 설명 금별 2022.09.21 2089
459 유니티 유니티 - 빙속성 광역 공격 효과 제작과정 금별 2023.07.10 2090
458 언리얼4 Circuit FX in UE4 Niagara Tutorial ashif 2021.02.19 2092
457 유니티 유니티 - 연속 창공격 예제/바닥크랙생성 제작 튜토리얼 사진new 금별 2023.07.31 2096
456 유니티 유니티 - 셀폭발/데칼 제작 제작과정(중국어) 금별 2022.07.05 2096
455 언리얼4 언리얼 - 구형 디졸브 폭파 제작방법 금별 2022.01.24 2097
454 언리얼4 언리얼 - 모션 로테이터 제작노드 금별 2022.06.13 2097
453 2D 애프터 이펙트를 활용한 불회오리/쪼개진 구체 간단 제작과정 금별 2023.07.04 2100
452 언리얼4 언리얼 - 물방울 형태 버프 이펙트 제작방법(물방울/십자 형태 텍스쳐제작) 금별 2023.05.25 2101
451 유니티 유니티 - 불꽃놀이 이펙트 제작방법(중국어) 금별 2022.03.30 2101
450 언리얼4 언리얼 나이아가라 - Spawn Per Unit Sword Trails 설명 금별 2022.10.09 2102

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand