마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 2,295 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


번호 포토 분류 제목 글쓴이 날짜 조회
1071 언리얼4 Enchanting Floating Ice Book Effect in Unreal Engine 5.5 Niagara ???? Trailer ashif 18:33 8
1070 언리얼4 Fire Vortex Shield Effect in Unreal Engine 5.5 Niagara ???? Trailer ashif 15:39 18
1069 언리얼4 언리얼5 - 나이아가라 모프 캐릭터 제작과정(한글자막) 금별 12.19 53
1068 유니티 유니티 - 스텐실 버퍼 활용 fake hole 제작과정(한글자막) 금별 12.19 52
1067 유니티 유니티 - 상호작용형 파티클 제작과정(한글자막) 금별 12.19 49
1066 유니티 유니티 - 처음 시작하는 Volumetric Fog Shader에 관한 설명(한글자막) 금별 12.17 67
1065 언리얼4 언리얼5 - 스플라인과 스플라인 메쉬 활용방법(한글자막) 금별 12.17 52
1064 유니티 유니티 - 라바 램프 유니티 셰이더 그래프 제작과정(한글자막) 금별 12.17 60
1063 언리얼4 언리얼 - LOL 소드 데몬 W 특수효과 모작 분석(한글자막) 금별 12.17 49
1062 언리얼4 언리얼5 - 나이아가라 네트워크 볼륨 렌더러 번개 효과 제작과정(한글자막) 금별 12.11 122
1061 언리얼4 언리얼5 - 리얼리스틱 물고리 제작과정 part1(한글자막) 금별 12.11 125
1060 유니티 유니티 - 간단한 이펙트 경로 애니메이션 사용예제(한글자막) 금별 12.11 123
1059 언리얼4 언리얼 - 셰이더로 시계 제작하는 과정 금별 12.11 80
1058 언리얼4 Toon Explosion in Unreal Engine 5.5 Niagara: Complete Step-by-Step Tutorial ashif 12.04 105
1057 언리얼4 언리얼5 - 프렉쳐 VAT 적용방법(한글자막) 금별 11.25 178
1056 언리얼4 언리얼/유니티 - 판타지풍 체력계 제작과정(한글자막) 금별 11.25 187
1055 언리얼4 언리얼 5.4 - VDB 클라우드 제작과정(한글자막) 금별 11.25 153
1054 언리얼4 언리얼 UEFN - VAT를 활용한 언리얼 로고 애니메이션 제작과정(한글자막) 금별 11.20 174
1053 언리얼4 언리얼 - Quantize shader를 활용한 툰효과 사용 예제 금별 11.20 165
1052 2D 섭스턴스 디자인 - 쇼크웨이브 텍스처를 만드는 간단한 방법 금별 11.20 239
1051 언리얼4 언리얼 - 중국의 어느 아티스트 VFX 기본 리소스 라이브러리 예제 금별 11.20 240
1050 언리얼4 언리얼 - 모듈 스크립트 - 리더를 따라 움직이기 금별 11.20 157

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand