마법적 구슬형태 제작



마법적 구슬형태 제작

금별 0 1,874 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


번호 포토 분류 제목 글쓴이 날짜 조회
783 2D 애프터이펙트 - Water Escape 제작방법(한글자막) 금별 03.28 32
782 언리얼4 언리얼5.4 - 나이아가라의 메모가 파라미터마다 재편집가능 금별 03.28 20
781 공구,번역정보 언리얼 - 커스텀 뷰 모드를 위한 포스트 프로세스 머티리얼 금별 03.28 15
780 언리얼4 언리얼 - 눈 셰이더에 디더링 간단 적용노드 및 예제이미지 금별 03.28 22
779 언리얼4 언리얼 - 셰이더 토이를 활용한 커스텀 머트리얼 표현식 사용법(한글자막) 금별 03.28 17
778 2D 포토샵/언리얼5 - 게임 VFX용 페인트 트레일 텍스처를 드로잉으로 처리하는 방법 금별 03.25 66
777 언리얼4 언리얼 - 그레이스케일 그라디언트/텍스처를 시각화하는 간단한 방법 사진링크new 금별 03.21 89
776 언리얼4 언리얼 - 먹물 느낌의 검기 효과 제작과정(한글자막) 금별 03.21 94
775 2D 섭스턴스디자인/언리얼적용 - 분화구형 크랙 텍스쳐 제작과정(한글자막) 금별 03.21 67
774 유니티 유니티/포토샵 - 불속성/물속성 소드 슬래시 간단 제작과정(한글자막) 금별 03.19 125
773 3D 블랜더를 활용한 매직 오브 제작과정(머트리얼메이커) 금별 03.19 57
772 2D 포토샵 - 리얼한 연기 간단 제작과정 금별 03.19 83
771 유니티 유니티 - 2D 형태 충격파 궁극기 제작과정 금별 03.17 131
770 2D 애프터이펙트 - 2D 물속성 원통회전 효과 제작과정 금별 03.17 92
769 2D 애프터이펙트 - 2D 물회오리 형태 아우라 모이는 효과 제작방법(한글자막) 금별 03.14 87
768 언리얼4 언리얼 - Stylized 연기효과 제작과정(한글자막) 금별 03.13 120
767 언리얼4 언리얼 - 워터링 머트리얼 제작노드예제 금별 03.11 103
766 유니티 유니티 셰이더 그래프 - 글리치 효과 제작과정 금별 03.10 109
765 3D 후디니를 사용해서 이펙트 메쉬 제작후 HDA툴 제작하기 금별 03.10 65
764 2D 섭스턴스 디자인 - 물튀김 텍스쳐 제작과정 금별 03.10 119
763 2D 포토샵/맥스 - 연기형태의 메쉬 및 텍스쳐 제작방법 금별 03.10 79
762 2D 포토샵 - 잎파리/눈결정체 시퀀스 제작하기 금별 03.10 81

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand