마법적 구슬형태 제작



마법적 구슬형태 제작

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


번호 포토 분류 제목 글쓴이 날짜 조회
816 언리얼4 Water Bending FX in UE5.4 Niagara | For Patreon ashif 04.26 9
815 언리얼4 언리얼/유니티/고돗엔진 - 셰이더 최적화 간단팁(한글자막) 금별 04.26 25
814 유니티 유니티 앰플리파이 셰이더 - HotWater셰이더 GUI 및 자료사용 예제 영상 금별 04.26 22
813 유니티 유니티 - 쿠파 취업 클래스 [실강의 맛보기 - 얼음스킬제작과정] 금별 04.26 21
812 3D 이펙트의 모든것! 게임직 TA 김용남 인터뷰_01 금별 04.24 41
811 언리얼4 언리얼5 - HLSL을 활용한 이미지 블러 효과 제작과정(한글자막) 금별 04.24 50
810 언리얼4 언리얼5 - 아티스트를 위한 흥나는 프로파일링!: RenderDoc 금별 04.24 45
809 3D 메쉬 UV패닝을 활용한 곡선 트레일 제작짧은팁 금별 04.22 60
808 언리얼4 언리얼5 - 포스트 프로세스 활용한 글리치 효과 노드(다운로드가능) 금별 04.21 52
807 언리얼4 언리얼5/후디니 - 상호작용 VFX 시스템/VAT효과 제작과정(정교한 한글자막) 금별 04.21 47
806 언리얼4 언리얼5 - 텍스처가 없는 포스트트로세스와 같은 CRT효과 제작노드(다운로드가능) 금별 04.21 39
805 언리얼4 언리얼/유니티 - 특수효과 최적화 간단팁들 금별 04.20 52
804 언리얼4 언리얼5 - 파라곤 이펙트를 나이아가라로 리마스터링(한글자막) 금별 04.19 61
803 유니티 유니티 셰이더그래프 - 반응형 파티클 제작과정(한글자막) 금별 04.19 62
802 유니티 유니티 - 앰플리파이셰이더 활용한 극좌표 소용돌이 형태 제작과정(한글자막) 금별 04.18 53
801 유니티 유니티 - 셰이더그래프 활용한 UI에 적용동 스크롤버튼 제작과정(한글자막) 금별 04.18 56
800 언리얼4 린반 언리얼 이펙트 사소한 라이브(4.17일자) - 루멘/나이아가라 파티클라이트 외 금별 04.17 45
799 유니티 유니티 - Stylized 물속성 검기 VFX 제작과정(중국어/AI한글자막) 금별 04.16 95
798 언리얼4 언리얼 - 사인파 왜곡 머트리얼 예제 금별 04.16 82
797 3D 3DsMax - 임팩트 메쉬 제작 간단과정 금별 04.16 56
796 2D 애프터이펙트 - 2D 카툰스타일 불 제작과정 금별 04.16 58
795 2D 애프터이펙트 - 한국어_2D 카툰스타일 스파크/라이트닝 제작과정 금별 04.16 54

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand