Тёмный

Cel Shading in Unreal Engine 4 (4.21) 

Poke
Подписаться 417
Просмотров 43 тыс.
50% 1

Took me forever to find out how to do cel shading in UE4, so I thought I 'd share my findings!
Shout out to this guy's tutorial, which I learned this from: www.raywenderlich.com/146-unr...
Timestamps:
1:17 - Base Cel Shading
3:29 - Some Brief Explanation
5:14 - CustomDepth Filter
8:56 - Adding Highlights
If you wanted even more control using the material instance, you could multiply the DiffuseColor by a parameter instead of just 0.5
Super secret bonus link (very secret): / poke_bd
#ue4 #toonshader #tutorial

Игры

Опубликовано:

 

27 мар 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 94   
@jacobjackson169
@jacobjackson169 4 года назад
It has worked perfectly for me. Very well explained everything. It took him 10 minutes to explain it, while the other videos take about 40 minutes. I loved the video. Thank you
@regstar212
@regstar212 2 года назад
Very useful and straight to the point! You explain in 10 mins what most people struggle to explain in 40. Worked for me perfectly
@khairpur1
@khairpur1 3 года назад
Man, you deserve many more subscribers. your work is awesome. keep it up!
@matthias3698
@matthias3698 5 лет назад
Thx a lot, you deserves more subs.
@aslangao9556
@aslangao9556 2 года назад
This is the most simple but effective tutorial I have ever watched. Thank you hero!
@willpace9556
@willpace9556 3 года назад
Coolest thing I've seen in my 2 days with unreal so far haha.
@supersquare
@supersquare 4 года назад
This is amazing!! Thanks so much for the video :)
@murkywaters5502
@murkywaters5502 Год назад
Thank you for sharing your findings.
@wooshiey
@wooshiey 3 года назад
this was so helpful, thank you so much!
@dylanroemmele906
@dylanroemmele906 3 года назад
The first few seconds are an instant subscribe and I watched the rest of the video to help you out.
@portalj123
@portalj123 2 года назад
wow, i spent hours looking for anything, and this is the one which finally worked...
@lukeellis2939
@lukeellis2939 5 лет назад
Great tutorial thanks so much
@zcartre83
@zcartre83 2 года назад
This was exactly what I was looking for!
@alexalex-zp5dg
@alexalex-zp5dg 4 года назад
I am so happy you save all my emissive Particles :D i realy love your video ( Tutorial)
@Miionu
@Miionu 3 года назад
Nice one! Life saviour man! 😍
@user-pp7zt8nr4v
@user-pp7zt8nr4v 4 года назад
Nice Work!
@strebicux6174
@strebicux6174 3 года назад
Why do you only have 150 subs This is amazing
@zodiark93
@zodiark93 4 года назад
Thanks for this video. Will you do a tutorial about the LUT too, to learn how to put multiple lines for the cel shading?
@billyjohnny6225
@billyjohnny6225 4 года назад
If your sky sphere turns black, carefully review the video on 6:40 and pay attention to the "if" nodes , the upper node enters the lower node, and then lower in the "result node", I connect it incorrectly and because of this the sky turned black, but then I realized what the problem is.
@seadragon7543
@seadragon7543 2 года назад
thank you
@nyjucu3769
@nyjucu3769 2 года назад
And if that doesn't work go to the SkySphere static mesh, Rendering, Override Materials and reset it to the default value.
@l6v3k84
@l6v3k84 4 года назад
thank you !
@kabosustan2484
@kabosustan2484 2 года назад
Thank you for helping me, in your darkest time I shall appear from the sky to return the favor, when that happens be not afraid
@NO-pf2gp
@NO-pf2gp 3 года назад
0:00 you are a good man.
@super117knight
@super117knight 4 года назад
Thx man
@TribulumBed
@TribulumBed 2 года назад
For those wondering, this does work with 4.27 as well.
@muhammadyusufsetiawan725
@muhammadyusufsetiawan725 Год назад
awesome
@hydrogencyanide8098
@hydrogencyanide8098 3 года назад
thanks alot for the tutorial but when i go to apply unbound for the post processing volume it turns my skybox black and any material with custom depth on black and white as well
@Cinnamonmoka
@Cinnamonmoka 5 лет назад
This is great. I want you to challenge more advanced shading like Botw and Woodbound. This is very helpful because I`m not good at creating programs.
@poke_
@poke_ 5 лет назад
I'm not entirely sure what you mean, though I'm assuming you're referring to the edge-lighting present in BOTW. That is known as fresnel lighting (though I think only when there is no physical backlight in the scene?) UE4's shaders do have a built-in fresnel feature, though it encompasses the entire edge of the mesh on all sides. In BOTW, the fresnel lighting is only present in the direction of the most powerful light source; or, more simply, there is added fresnel on the highlighted side of an object, and no fresnel in the shadows. It's also a sharp cutoff between the two (sticking to the cel-shaded style). I did look into working with the UE4 fresnel feature to make it look more like BOTW, but I couldn't really figure it out. I did find someone who managed to keep the fresnel only to one side in their project, though the location didn't change dynamically, ie, as the object/lighting changed, the location of the fresnel wouldn't change. You had to move it manually in the actual material (I don't even think it was a post process material, it might've been baked into the object's own textures). It was also a soft, realistic fresnel, whereas BOTW's effect has sharp edges. Since I'm still a beginner myself, it was simply too much for me to figure out. Sorry I can't help too much :/
@MrJan-yi2rb
@MrJan-yi2rb 3 года назад
@@poke_ For me, it looks like the Botw-Shader supports different colors of light.
@dhillydallyfilms5866
@dhillydallyfilms5866 4 года назад
Hi, thanks for the tutorial but can you please explain exactly how you applied cell shading to the character? I see no option for this.
@FF-FAN9999
@FF-FAN9999 3 года назад
can u explain what are the lut files you have on the folder? i am actually curious to know if there's a way to smooth out the harsh shading transitions
@R_Didsy
@R_Didsy 4 года назад
Hi there, just trying to get to grips with the post process volume. Mine doesn't seem to have any of the Rendering Features options when I drag it in to my scene. Any idea how to get them to show? Cheers.
@makaruna7940
@makaruna7940 4 года назад
Thank you so much bro for the video, wanted to ask you, is this method expensive on mobile devices? What is more efficient to use multiple static lights on the scene or using this method you introduced which basically require no lightning?
@poke_
@poke_ 4 года назад
Uhh I'm not entirely sure, though I'd imagine that, since there are only 2 possible light-levels (light and shadow) on your custom-passed objects, it would take far fewer light sources than usual to make the effect convincing. Sorry I can't offer more. I'm still a beginner myself, and haven't tried playing around with anything meant for mobile :/
@paulojonathan3161
@paulojonathan3161 2 года назад
I know it's been 2 years since you commented this but the best way if this whether if it's or it isn't compatible with mobiles, it's by testing it by yourself.
@yellowduckgamedev
@yellowduckgamedev 2 года назад
if translucency doesnt work, set blendable location to before translucency. that should fix it.
@super117knight
@super117knight 4 года назад
how would i go on to add another shadow to it? to make it a 4 tone cel shading?
@one0one7
@one0one7 4 года назад
is there way i can apply it to BPs that are items for my level
@alezaford1795
@alezaford1795 3 года назад
I had some problems, when I apply cel-shading to some metals (gold, copper etc ..) they all become black, why?
@andresestevez2701
@andresestevez2701 4 года назад
una duda, emisivo como hago para q no pierda su intensidad de color fluorecente a doubt, emissive as I do so that it does not lose its intensity of fluorescent color
@mdp7193
@mdp7193 2 года назад
How come I get the error "[SM5] (Node If) If input A must be of type float." when I link the last if node?
@DarksealStudios
@DarksealStudios 3 года назад
awesomesauce. I don't know why it's making my sky black but eggs vs. omelet.
@prodbythadon
@prodbythadon 2 года назад
how would I apply all of this to an environment??
@aidn123
@aidn123 3 года назад
how do you make it affect all objects without having to enable it plz read this
@titanarmoredcombat1337
@titanarmoredcombat1337 Год назад
Does it work on mobile devices
@pterodactylw3899
@pterodactylw3899 Год назад
Can you make a ue5 version
@Arxontas10
@Arxontas10 4 года назад
Hi there, is there any way for light to affect the shader? i mean... lets say you have a day-night cycle in your game, with this shader, being emissive & post-process, it doesn't seem be affected by light color or intensity. Do you know a way to make it work? or is it "imposible" with this shader? ty
@gatlinfitzgerald3425
@gatlinfitzgerald3425 4 года назад
I got this issue too, every single tutorial for cel shading I try to do doesn't work with my day/night cycle. Would love to learn or figure out how to do it.
@ndjedovic82
@ndjedovic82 4 года назад
@@gatlinfitzgerald3425 you'd have to add in a custom shading model to make the shader work properly with lights and everything else. There are tutorials online for this (e.g. by Matt Hoffman), but they're quite complex. However, there is a trick around this in the post process shader, though it won't give you a fully flat cel shaded look. It's documented well in a post on unreal forum by Thura Oo (just look up Thura Oo Cel Shader and it should pop up in the results).
@petar6089
@petar6089 4 года назад
Does this shader work on mobile?
@allinallgames9252
@allinallgames9252 3 года назад
how do you get the post process volume to apply to a players who spawns from player start
@aidn123
@aidn123 3 года назад
apply it in the blueprint of the character
@JamesGascoyne
@JamesGascoyne 4 года назад
how would you get the cel shading on the character if it is just the startpos?
@poke_
@poke_ 4 года назад
Go into the third-person template files they give you, find the actual skeletal mesh that the character uses, and turn on custom depth.
@JamesGascoyne
@JamesGascoyne 4 года назад
@@poke_ thanks :D
@adibrahman6708
@adibrahman6708 Год назад
outline?
@darkbolt4570
@darkbolt4570 4 года назад
Does this work on the blocks in the base level
@poke_
@poke_ 4 года назад
Yes, however the effect is most apparent on rounded objects
@AtomDellow
@AtomDellow 4 года назад
When you add a light into the scene, the lights color doesn't show, is there a fix to that, maybe a point in the right direction?
@wolflow94
@wolflow94 3 года назад
You can't apply light color with this method. You only use the DiffuseColor of the object (base color without any lighting info). I've never seen any cell shading tutorial which handle light colors well.
@MegaAlix
@MegaAlix 4 года назад
Can you do outlines now ? Thank you for this tutorial.
@poke_
@poke_ 4 года назад
As far as I know, outlines are a fairly difficult effect to achieve in UE4. I'm definitely not good enough to tackle them, though I know there a some pretty in-depth tutorials out there
@supersquare
@supersquare 4 года назад
Have you found any good tutorials for outlines?
@ryart579
@ryart579 4 года назад
@@supersquare If you search into RU-vid "unreal engine toon shader" you'll see a video of a livestream by the Unreal Engine channel and if you follow up til the 45min mark, you'll obtain a black outline for your scene
@supersquare
@supersquare 4 года назад
Thanks so much! Can't wait to try it along with this great one :)
@elegmant
@elegmant 4 года назад
www.raywenderlich.com/146-unreal-engine-4-cel-shading-tutorial#toc-anchor-010 Here we go [USING CUSTOM DEPTH]
@user-vi7hx9zl1f
@user-vi7hx9zl1f 3 года назад
I got an issue where, despite doing all this, the shadows wont appear. EDIT Nvm fixed it, the multiply was on 0.1 not 0.5.
@evansacksner1152
@evansacksner1152 3 года назад
This doesn't work and i have no idea why, i followed every step very closely. when i try to apply it to an object it simply doesnt work
@Redfishpersonal
@Redfishpersonal 4 года назад
How to apply it to the player character?
@aidn123
@aidn123 3 года назад
apply it in the blueprint of the character
@PiJellyPin
@PiJellyPin 4 года назад
thumbs up and sub for the bp in beginning of video :)
@poke_
@poke_ 4 года назад
I'm really glad you appreciated that. I know I wish more tutorials did it :)
@PiJellyPin
@PiJellyPin 4 года назад
@@poke_ what are your skills in ue4?
@PiJellyPin
@PiJellyPin 4 года назад
as in what are you best at
@danharbor1752
@danharbor1752 4 года назад
why does it make the sky dissapear for me
@poke_
@poke_ 4 года назад
You may have forgotten to make your post-process volume unbound?
@danharbor1752
@danharbor1752 4 года назад
@@poke_ how to unbound it thanks :)
@poke_
@poke_ 4 года назад
@@danharbor1752 there should be a little checkbox that says 'unbound' or 'no bounds' or something
@danharbor1752
@danharbor1752 4 года назад
@@poke_ ill look bc yeah i followed ur video perfectly toon shader worked nicely just that it got applied to everything lol and the sky went black ill look for that unbound here in a bit
@danharbor1752
@danharbor1752 4 года назад
@@poke_ does this mean that the sky is a metal material? lmao curious why it turned black tho
@JohnDoe-wt2zz
@JohnDoe-wt2zz 4 года назад
cant find a way to do it to a character ayyy
@poke_
@poke_ 4 года назад
you have to enable "custom depth" on the actual skeletal mesh that the character is using, not the character object itself
@curviercerdo3784
@curviercerdo3784 4 года назад
Oh, cell shading like in Maya with only 3 nodes... "See's the tree" Nope!
@jello788
@jello788 5 лет назад
Why would you skip making the actual character graphics change. In a tutorial about changing graphics......video was good up until then
@crazychicken5521
@crazychicken5521 5 лет назад
M Yeah do you know how to do this?
@lukeellis2939
@lukeellis2939 5 лет назад
@@crazychicken5521 just use the custom render depth on your character mesh
@poke_
@poke_ 5 лет назад
It's the same process as enabling the effect on any other object. Find the skeletal mesh you are using for your character, and enable custom depth pass.
@ty_teynium
@ty_teynium 4 года назад
5:57 very easy going. Although you say "this goes into this" about nine times and that means I have to stop what I'm doing, rewind the video, and look at what you are doing because instead of saying the name of the node and it's output you just say, "this". It's not called "this", it has a name. Another comment mention at 6:40 the nodes are placed. However you didn't mention specifically which scene texture goes where. This is very important because someone Would've thought something else was the problem. Thankfully that commenter was kind enough to spot it and explain it. I don't mean to be rude but the instructions could be more specific. The tutorial is good and it is working though. Don't stop doing what you do.
Далее
Unreal Engine Materials in 6 Levels of Complexity
44:12
Почему Катар богатый? #shorts
0:45
UE4 Tutorial: Three-Tone Toon Shader
14:42
Просмотров 33 тыс.
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 665 тыс.
How to make Stylized Grass in Unreal Engine 4/Blender
11:51
Cel Shaded Materials Tutorial in UE4
22:13
Просмотров 115 тыс.
UE4: Cel Shading
22:16
Просмотров 746
Why Unreal Engine 5.4 is a Game Changer
12:46
Просмотров 1,1 млн
В поисках летнего заноса
1:50
Просмотров 14 тыс.