Shader - Dissolve Effect - [Tutorial][C#]

  Рет қаралды 24,570

N3K EN

N3K EN

Күн бұрын

We dissolve object, based on the world position!
The water shader used:
www.assetstore.unity3d.com/en...
►-------------------------------------------------------◄
Join the community, keep on learning.
► Come hang out in discord! This is the most efficient way to reach not only the team members but thousands of other developers like you! We love it when you help, showcase or just discuss with each other in discord!
/ discord
► Learn about unity and game design with this playlist:
goo.gl/I04s9S
► If you enjoy what I do here and would like to support me, pledge any amount on Patreon.
www.patreon.com/N3K?ty=h
►-------------------------------------------------------◄
Stay up to date!
N3K is friendly, laidback community that helps you create video games, and make friends while doing so. Check out our website to learn more, or join us on discord!
n3k.ca
► Keep up to date with our plans! Follow the Facebook page
/ n3ken
►-------------------------------------------------------◄
More content!
Do you need some ideas?
Try out our Unity Training playlist!
►Subway Surfer, mobile game: goo.gl/xZhC6T
►Glide, Mobile game Tutorial: goo.gl/45ycLc
►Multiplayer Checkers Tutorial: goo.gl/RjqPkR
►2.5D Platformer Tutorial (Noob friendly!): goo.gl/m2S3QH
►Unity Mobile Game (Roller Ball): goo.gl/x3gwun
►Endless Runner: goo.gl/JTjQO5
►Chess Game: goo.gl/8blshX
►Beginner : goo.gl/4DXx18
►Intermediate : goo.gl/jMHhvC
►Advanced : goo.gl/dvGIDT

Пікірлер: 40
@armo0375
@armo0375 7 жыл бұрын
Really happy that you make shader tutorials, keep up the good work! :)
@chupi115
@chupi115 7 жыл бұрын
your videos help a lot with creative ideas for making video games and it's awesome thank you 😁
@moonie9848
@moonie9848 6 жыл бұрын
Sos un capo chabon!
@GameDevAraz
@GameDevAraz 6 жыл бұрын
That mixed with shader that deforms or rotates or something for the dissolve and you can pull some awesome effects.
@StigDesign
@StigDesign 7 жыл бұрын
Awsome :D
@billythemusical
@billythemusical 5 жыл бұрын
"Ok this will be easy..." ha. Thanks for posting the video. There is a large learning curve for Unity, so IMO this video is no where near easy.
@BoundfoxStudios
@BoundfoxStudios 7 жыл бұрын
oh that's nice :)
@brygidekmalowiejski7787
@brygidekmalowiejski7787 7 жыл бұрын
You are the second after God ;-)
@RatoCavernaBR
@RatoCavernaBR 6 жыл бұрын
Very nice tutorial but what happens if I wanna use a transparent metallic texture? how to proceed?
@RezaOLine
@RezaOLine 7 жыл бұрын
wow , this is cool..
@001zeal
@001zeal 7 жыл бұрын
Hey , so im having a difficult time understanding what this part of the code does: ...(tex2D(_MainTex, i.uv))*_DissolveSize); I mean it works with just this also , clip(_StartingY + transition ); What are we adding to the transition when we add (tex2D(_MainTex, i.uv))*_DissolveSize)?? Thanks for the series , learning a lot !
@Albertogamer56Pc
@Albertogamer56Pc 6 жыл бұрын
Hi! How can I add Smoothness and Metallic sliders to the material with Unlit Shader?
@r1pfake521
@r1pfake521 6 жыл бұрын
What's the best way to modify this to dessolve a object from the top to the bottom (or bottom to top) independend from the world position / rotation?
@abdullahallkafi624
@abdullahallkafi624 7 жыл бұрын
please make a tutorial on the low poly water shader that you are using.. Please!!
@9007214081
@9007214081 7 жыл бұрын
Hey N3K, love your vids ! Is the water in the background made with a shader ? If so, how is it done ?
@n3ken
@n3ken 7 жыл бұрын
It's a really complex shader, something I actually bought off the asset store, link is in the description if it peaks your interest :)
@akashverma4280
@akashverma4280 6 жыл бұрын
Shader tutorials = Like from me.
@giuseppe2606
@giuseppe2606 4 жыл бұрын
Why do I get a "syntax error: unexpected token 'sampler2D'" or "redefinition of 'float4'".
@erdemoden9546
@erdemoden9546 7 жыл бұрын
please make a video about use firebase realtime database to unity.
@ggjdddfadg7676
@ggjdddfadg7676 7 жыл бұрын
Erdem Öden yes i want too
@mormirket2303
@mormirket2303 7 жыл бұрын
Erdem Öden I agree
@nelsongabriel8574
@nelsongabriel8574 7 жыл бұрын
Same
@zop312
@zop312 3 жыл бұрын
@@nelsongabriel8574 M
@Knuckles2761
@Knuckles2761 7 жыл бұрын
Nice video! But isn't it better to keep speed and starting time not in a c# script but inside of a shader and make effect with something like: float transition = ( _Time.y - _startingTime) * _speed + _DisolveY - i.worldPos.y; That way you don't need to call SetFloat in every update. Only once at the beginning of the effect for _startingTime. I think there will be difference if there are hundreds of objects to dissolve and it is mobile platform.
@n3ken
@n3ken 7 жыл бұрын
Good thinking! I will pin this. Thanks for the improvement!
@anficyon
@anficyon 5 жыл бұрын
can you write your vertion?, please
@nguyenhienlinh7731
@nguyenhienlinh7731 4 жыл бұрын
Thank you very much for such a great tutorial! I managed to create it easily, however, I could not make it dissolve by a custom texture. Why is that?
@royderrick5536
@royderrick5536 3 жыл бұрын
pro tip: watch movies at flixzone. Me and my gf have been using it for watching loads of movies these days.
@maximiliankaysen1425
@maximiliankaysen1425 3 жыл бұрын
@Roy Derrick Yea, have been using flixzone for years myself :D
@magnusrayan498
@magnusrayan498 3 жыл бұрын
@Roy Derrick Yea, I have been watching on flixzone for since december myself :)
@GWKTM
@GWKTM 3 жыл бұрын
No link for the code you wrote here?
@Mandrarine
@Mandrarine 6 жыл бұрын
Cool shader. Btw, it's "dissolve"
@idorado4
@idorado4 5 жыл бұрын
Vertex error in Unity 2017.4.1f1
@FenrirVampire
@FenrirVampire 6 жыл бұрын
Great vid N3k, im actually trying to do something similar but with a radius but i got stuck on this part fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; fixed4 dis = tex2D (_DissolveTex, IN.uv_DissolveTex) * _Color; float d = distance(_Center, IN.worldPos); //clip(1 - (IN.worldPos.x / 2)); if (d > _Radius + _RingWidth) { o.Albedo = c.rgb; } else if(d > _Radius && d < _Radius + _RingWidth) { float trans =_Center - IN.worldPos + _Time.y; clip(d + (trans + dis) * _RingWidth); } else { clip(-1); } Any tips?
@n3ken
@n3ken 6 жыл бұрын
Hey Fenrir, Join us here: discordapp.com/invite/etX2zJB and post this under #programming_help and the team will give you all the tips we can muster up! ;3 thanks.
@FenrirVampire
@FenrirVampire 6 жыл бұрын
sure! Thanks :)
@VegasVolt3ya9a
@VegasVolt3ya9a 5 жыл бұрын
Your introduction at the very beginning ... it is called resolving/rematerializing ... dissolving would be the opposite.
@viliamlapcak9606
@viliamlapcak9606 7 жыл бұрын
Can you please make Card Game tutorial for mobile platform ?
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 29 МЛН
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 33 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 15 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН