How To Create Cel-Shading In Unreal Engine 4/5 (Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 มิ.ย. 2024
  • Hey guys, in today's video I'm going to be showing you how to make a cel-shader post process material in Unreal Engine 4 and 5.
    Robot Download: www.cgtrader.com/free-3d-mode...
    #UE5 #UnrealEngine5 #UE5Tutorial
    ___________________________________________________________________________
    00:00 - Intro
    00:11 - Overview
    00:50 - Creating The Cel-Shader Material
    08:24 - Using The Cel-Shading
    10:31 - Final Overview
    10:55 - Outro
    ___________________________________________________________________________
    If you enjoy make sure to subscribe: / @mattaspland
    Join My Discord Server: / discord
    Follow Me On Twitter: / matt_aspland
    Follow Me On Instagram: / matt_aspland_
    All My Social Media Links: linktr.ee/MattAspland
    ___________________________________________________________________________
    If you want to support me, there are many different ways of doing so. This is by no means expected or required. It is just a nice support :)
    Patreon: / mattaspland
    PayPal: paypal.me/mattaspland?country...
    Ko-Fi: ko-fi.com/mattaspland
    Thank you :)
    ___________________________________________________________________________
    To access the project files and screenshots from the video, check out my Patreon above!
    My Public Video List: trello.com/b/7vJgXzBm
    Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
    The Basics Of Nodes Playlist: • The Basics Of Nodes In...
    ___________________________________________________________________________
    ♫Outro Song♫
    ●Kronicle - Chill Noons

ความคิดเห็น • 109

  • @wielandsmith
    @wielandsmith ปีที่แล้ว +8

    This was great. Thanks! I've already been through two other cel shading tutorials and this is the first one that worked... plus had full explanations.

    • @yoyobird8427
      @yoyobird8427 7 วันที่ผ่านมา

      what about now in 5.4?

  • @VinoVenitas
    @VinoVenitas 3 หลายเดือนก่อน +3

    YOOO I was looking around like crazy for this, simple but effective. And this was just perfect. Next up is the black outline and then Im all good to go. Thank you. Another good one

  • @nightwalkerj
    @nightwalkerj ปีที่แล้ว +2

    The best toon shader tutorial Ive seen yet.

  • @Mety333
    @Mety333 5 หลายเดือนก่อน +1

    Hey really awesome work! I subbed and currently watching many of your short super useful tutorials.

  • @Ruti3131
    @Ruti3131 4 หลายเดือนก่อน +2

    you just made my day , i was looking at something simple yet powerful and here o found you , thank you this was very helful for my game and now i can work on it

  • @CRUMVIII
    @CRUMVIII ปีที่แล้ว +1

    Thanks Matt. This will be especially useful in my project.

  • @MrPowerpoint2004
    @MrPowerpoint2004 2 วันที่ผ่านมา

    Awesome vid, im currently working on Shaders in a project and even tho i didnt make a cel shading shader, the logic behind distinguishing if a pixel was part of a Skybox was very Helpful

  • @SilasoftheLamb
    @SilasoftheLamb 10 หลายเดือนก่อน +2

    Thank you Matt for this! Cheers!

  • @tableprinterdoor
    @tableprinterdoor ปีที่แล้ว

    Thanks you’ve pretty much read my mind several times now

  • @hanjicheesecak3
    @hanjicheesecak3 3 หลายเดือนก่อน

    thank you so much!! just what i needed for a uni project i'm working on!

  • @majupiju2347
    @majupiju2347 ปีที่แล้ว +6

    Simple but clear tutorial! As always easy to follow along!
    Thx for sharing :)

  • @g-dojjo
    @g-dojjo ปีที่แล้ว +5

    Thanks bro this is great tutorial!! in the future please make a outline tutorial too :D i think this shader + outline is looking really good.

  • @chickishot8172
    @chickishot8172 ปีที่แล้ว +8

    Thank you for this. I currently have cel shading material and outline, but I don’t have cel shading for my environment which is what I needed.

  • @sarwaradel
    @sarwaradel ปีที่แล้ว

    Best cel shader tutorial ever

  • @ZL1704
    @ZL1704 ปีที่แล้ว

    Really helpful video!

  • @Jayprouispog
    @Jayprouispog 4 วันที่ผ่านมา

    Thanks bro! Honest W for my new game

  • @seanholihanmusic2473
    @seanholihanmusic2473 ปีที่แล้ว +11

    Great tut! You should do more replicated tutorials, like replicated hide in locker and stuff. I feel like I am getting the basics of blueprints down but no matter how many rep tutorials I watch, replicating events always confuses me

    • @projectgg6730
      @projectgg6730 9 หลายเดือนก่อน

      Good rule of thumb. Always run it on the server then send the information where it needs to go!

  • @melaniemntl
    @melaniemntl 3 หลายเดือนก่อน

    great tutorial ! thanks ^^

  • @liko_das6521
    @liko_das6521 ปีที่แล้ว

    eyw aga tam da ihtiyacım olan şeyin videosunu atmışsın sağolasın

  • @sarahlynn7807
    @sarahlynn7807 ปีที่แล้ว +25

    I'd like to know more about cel shading in this way's interaction with the UE5 Lumen lights.
    There's a number of weird effects they create when combined which you can even see in your video.

    • @Franksjonathan35
      @Franksjonathan35 ปีที่แล้ว

      I would also like to know this.

    • @MichaelRoyalty
      @MichaelRoyalty ปีที่แล้ว +7

      After a bit of fiddling, I think that the problem comes from soft shadows. I've corrected the problem by making the light and shadows harsher:
      Disable the skylight
      Crank the DirectionalLight intensity up. I doubled mine from 10 lux to 20 lux.
      You may also want to set indirect lighting to 0 on the DirectionalLight.
      You'll then need to compensate for the difference in brightness by modifying the Exposure in your post processing volume. You'll also want to modify the shadow tint to be a little lighter -- fortunately this tutorial gives us that setting!

  • @MomenElwan
    @MomenElwan 10 หลายเดือนก่อน

    thank you very much man !!!

  • @aidanzipzap
    @aidanzipzap ปีที่แล้ว

    thanks for the tutorial :)
    also I just realized thats the robot from love death + robots

  • @aliciaalina7952
    @aliciaalina7952 ปีที่แล้ว

    this is the best tutorial ever! Super nice for noobs like me, thanks!

  • @Enkell13
    @Enkell13 8 หลายเดือนก่อน

    Nice man, thanks.

  • @klovvin
    @klovvin ปีที่แล้ว

    Thank you!

  • @phamxuankhoaa
    @phamxuankhoaa ปีที่แล้ว

    OMG, THIS IS WHAT I NEED

  • @moca6655
    @moca6655 ปีที่แล้ว +9

    While the effect works, it also makes the models essentially unlit. In dark areas the model is still completely bright, and color lights have no color effect on the model. I'm using UE4.25 btw.

    • @nikz000
      @nikz000 8 หลายเดือนก่อน

      Do you think blueprints can solve this with like decreasing the emission?

  • @MrSkullface
    @MrSkullface ปีที่แล้ว +8

    Why have the outline in the thumbnail bit not in the video.

  • @leeow3n
    @leeow3n ปีที่แล้ว

    very cool friend!

  • @Webi_
    @Webi_ 11 หลายเดือนก่อน

    THANKS SO MUCH

  • @MartKart8
    @MartKart8 ปีที่แล้ว +15

    I tried to make a Cel-shading material, that leant from Unreal Engine, I didn't really like it because it kept putting these think black lines in the sky, the thumb nail of the video is of cow.

  • @lolaswift111
    @lolaswift111 11 หลายเดือนก่อน

    thx a lot matt

  • @dantenajera9687
    @dantenajera9687 4 หลายเดือนก่อน

    dude, you're awesome

  • @SuddenlyMythical
    @SuddenlyMythical ปีที่แล้ว +18

    is there a reason that all the textures containing a metallic value just turn black?

    • @matteckenrodt
      @matteckenrodt ปีที่แล้ว +7

      There's a video by PrismaticaDev explaining how to use metallic with this style cel shader. Basically you hijack the specular channel and use that as your metallic. Watch his video though, he explains very well

  • @nomad7317
    @nomad7317 ปีที่แล้ว +6

    Hey, where is the outline?

  • @LousyNine
    @LousyNine 4 หลายเดือนก่อน

    After an hour of searching, I finally found a video showing how to do this, thanks!
    Side note: is there an easy way to also add those black lines around the model edges, anime style? I’m recreating a colored manga cover scene in 3D.

  • @Steelersfan355
    @Steelersfan355 ปีที่แล้ว +5

    now if you had a day night cycle how would you make it so you arent glowing during the night

  • @frzzzl9800
    @frzzzl9800 ปีที่แล้ว +3

    Do you know how to add multiple levels of grayscales? So that there isnt just the on and off switch, but rather, there are 3 or even 5 shades, the toon shader will create?

  • @williammccormick3787
    @williammccormick3787 ปีที่แล้ว +5

    This might be a tall order, but does anyone know how to create a cell shader that also interacts with scene lighting? I know that would be a complicated math equation to both determine RGB values (RBG as in if you have a red light in your scene and that affects your character's shading) as well as the actual tone, but if it exists that would be super helpful. Thank you

  • @ikewilliams4399
    @ikewilliams4399 4 หลายเดือนก่อน

    Hey great tutorial! How do I fix it for cell shading at night tho? looks bad..

  • @Polychi1998
    @Polychi1998 3 หลายเดือนก่อน

    How do I make harsher black shadows similar to No More Heroes/Killer 7?

  • @scwells5740
    @scwells5740 ปีที่แล้ว +1

    Great video. After a few minutes and one particularly annoying error I got it running. How ever I do not seem to have any shadow at all. It makes the scene look flat and unappealing. Has anyone came across this issue and got past it. If so how was it fixed?

  • @KoEnder
    @KoEnder ปีที่แล้ว

    Would this method also have the lighting on the character change based on where the light source is pointing?

    • @quantumevolution4502
      @quantumevolution4502 ปีที่แล้ว

      Yes you can already see it I. The way the shadows are dynamic

  • @oKyza
    @oKyza ปีที่แล้ว

    (in UE5) i have a water zone and the Cel-Shading effects this, and turns it Grey, is there a way to avoid this without Passing everything through "render Custom Depth" in details

  • @Synth679
    @Synth679 ปีที่แล้ว +1

    Thanks, This is exactly what I was looking for. I just have a small problem. The celshading turns my water white and my guns are extremely dark now. Does anybody know a fix for that?

    • @chickishot8172
      @chickishot8172 ปีที่แล้ว +3

      Yeah I have a similar issue… My cel shading is causing things to sometimes disappear like Niagara effects, but my biggest issue is low lighting at night. The things that don’t have cel shading look black and sometimes things that do are black. It also caused everything at night to be super bright looking like I’m looking at it in the day time when it is night time. Also sometimes cel shading is getting added to objects automatically when it isn’t supposed to.

  • @tanver3d982
    @tanver3d982 ปีที่แล้ว

    any tips on reflections? and night time dont work

  • @NotLyaGabbro
    @NotLyaGabbro ปีที่แล้ว +1

    For anyone that followed the tutorial and is not managing to make the "render custom depth" to work on selected objects, know that the property does not work on Nanite Enabled meshes. A bit inconvenient, but not the end of the world.

  • @gnome6969
    @gnome6969 ปีที่แล้ว +1

    hmm, is there a reason why the shadows on the cube looks wrong with the shader is applied?

  • @ikewilliams4399
    @ikewilliams4399 4 หลายเดือนก่อน

    also is there a way to increase rendering distance? The post process only goes so far

  • @Exovize
    @Exovize หลายเดือนก่อน

    is there a way to do the infinite extent where it makes the whole level cel shaded, in unity? please help I've been searching everywhere and this is the exact look i want my game

  • @ovrava
    @ovrava ปีที่แล้ว

    Is it possible to do that on Foliage? My Foliage does not have "Render CustomDepth Pass" option.

  • @WWatson99
    @WWatson99 ปีที่แล้ว +2

    Hi! Is there a way to trigger a shader only on objects that the user is currently looking at, using a line trace? Thank you for the tutorial!

  • @swrcPATCH
    @swrcPATCH ปีที่แล้ว

    How does this look at night lighting`?

  • @donatorana4486
    @donatorana4486 3 หลายเดือนก่อน

    It works great on most of my objects, but it breaks some materials and stops them from rendering, is there anything in the blueprints that could be messing with other materials?

  • @ShadowBrave21
    @ShadowBrave21 หลายเดือนก่อน +2

    i have 5.4.1 and i dont see the "before tone mapper"

  • @KaitheArtGuy
    @KaitheArtGuy 2 หลายเดือนก่อน

    I got it working exactly like the tutorial, but if I want the color of the scene lighting to affect my objects how can I enable that?

  • @Enderking394
    @Enderking394 9 หลายเดือนก่อน

    How do I change the thickness of outlines on stuff

  • @true_zap9344
    @true_zap9344 ปีที่แล้ว +1

    Hi , Great Tutorial
    i have a problem that i couldn't fix , when i connect the "if" node to emissive color i get an error and it doesn't work , can you plz help with this ?

    • @mathieuvart
      @mathieuvart 5 หลายเดือนก่อน

      I hjave colorthe same problem... The error is: Failed to compile AGreaterThanB input. Did you managed to make it work?

  • @Zeis
    @Zeis 8 หลายเดือนก่อน

    That was a great tutorial, but connecting the Lighting Buffer If output straight to the Emissive Colour, just like you did at the end, still leaves my sky black. Any idea why? I re-watched 5 times and followed your steps precisely, but it's still not working. I'm using Unreal 5.3.1

  • @Polychi1998
    @Polychi1998 7 วันที่ผ่านมา

    I don't have "before tone mapping"

  • @yoyobird8427
    @yoyobird8427 7 วันที่ผ่านมา

    before tonemapping option was remove in unreal 5.4 any fix?

  • @victoirelotika8687
    @victoirelotika8687 ปีที่แล้ว

    @MattAspland this works but my assets are now dark how do I fix this

  • @angeldelvax7219
    @angeldelvax7219 หลายเดือนก่อน

    Just tried this tutorial on 5.4 and there is no blendable location "before tonemapping' anymore. There are "before bloom" and "before DOF". Any tips on what setting to use for this?

  • @user-js8yh6uj5x
    @user-js8yh6uj5x 10 หลายเดือนก่อน

    Ayo guys.. anyone know how Can I enable double sided and alpha in cell shader....I gotta mesh that has opacity in the basecolor. But not been able to use alpha....any help

  • @tjrizvi251
    @tjrizvi251 ปีที่แล้ว +2

    While it works, sure, if your model is in the dark, it either gives off light or is full bright. I think this needs a rework

  • @hatsunemikuchannel2023
    @hatsunemikuchannel2023 4 หลายเดือนก่อน

    8:50-9:05-9:45
    I did what you said, but, in my case there's two errors
    1 says "Failed to compile AlessThanBInput"
    While the other says "Missing If AGreaterThanB input"

  • @emiliarosa5498
    @emiliarosa5498 ปีที่แล้ว

    How would you add this to just the third person character? Instead of just an object?

  • @itsmfdanbruh
    @itsmfdanbruh 11 หลายเดือนก่อน

    how do i get it to work on low light? it looks kinda weird

  • @realpropotato7743
    @realpropotato7743 2 หลายเดือนก่อน

    hey i did this and the shadows are very wavy is there a way to fix it

  • @TacticalGoat
    @TacticalGoat ปีที่แล้ว

    I get an error when I drag the IF into the Emissive color. I dont know why..

  • @mathieuvart
    @mathieuvart 5 หลายเดือนก่อน

    i get an error when i connect the if" node to emissive color, The error is: Failed to compile AGreaterThanB input. Anybody can help please?

  • @dreamvega2231
    @dreamvega2231 4 หลายเดือนก่อน

    When I enable render custom depth nothing happens at all. Why is that?

  • @taur2131
    @taur2131 6 หลายเดือนก่อน

    Does this work in UEFN

  • @jiaqianhuang-ob8wj
    @jiaqianhuang-ob8wj 2 หลายเดือนก่อน

    Why is it that when I draw on the left and right sides of the canvas, I can draw smoothly, but if I want to draw on the top and bottom of the canvas, I need to raise the camera to a 180-degree angle to draw?

  • @sunnymon1436
    @sunnymon1436 6 หลายเดือนก่อน

    Hmmm.... seems to have just desaturated all the objects in my project, regardless of whether they have custom depth set or not.

  • @PixelForge3D
    @PixelForge3D 10 หลายเดือนก่อน +1

    SOMEONE knows how to add outlines?????

  • @heresmynovel331
    @heresmynovel331 ปีที่แล้ว +2

    Hi there
    Could you please help me with this, it's important
    Whenever I click on (build all levels) the whole project crashes and kicks me out.
    Because of it building lighting is not working, collusion is not working, the character is lagging while walking and the whole thing is unbearable
    Please help 💔

    • @chickishot8172
      @chickishot8172 ปีที่แล้ว

      Try building each one by themselves instead of all levels. Doing all at once could be too much for your PC. Unreal Engine needs a decent gaming type of PC with a lot of space to work properly otherwise it can cause major issues like crashing.

  • @Indigoodvibes
    @Indigoodvibes ปีที่แล้ว +1

    Hello guys , do you know if it is mobile compatible ? for android and ios i mean :) !

  • @seankale5116
    @seankale5116 ปีที่แล้ว

    whelp this straight up didnt work for me. the if's are broken with an error and im getting a this will not render in my SM5 level error. FUN! and or help.

  • @74nz1l
    @74nz1l 6 หลายเดือนก่อน

    it messes up silver color. can you give a fix of that??

  • @luthfihisyam3222
    @luthfihisyam3222 6 หลายเดือนก่อน

    why i can't click the apply button?

  • @kevincrinklaw7422
    @kevincrinklaw7422 ปีที่แล้ว

    LoL "Let's go all the way to the left, give ourselves plenty of space" ... STRAP IN!! It's about to get real!!!

  • @timnoichocontim
    @timnoichocontim ปีที่แล้ว

    It's work but i use chanel Opacity in Material. Help!

    • @chickishot8172
      @chickishot8172 ปีที่แล้ว +1

      Just do what he did with the last portion of the code and only apply this to certain material while creating a whole different cel shading material that uses opacity for the object which isn’t for post processing.

  • @aNoobAllDay
    @aNoobAllDay 6 หลายเดือนก่อน

    Tried it but it made my character glow, don't know if it is supposed to do that but when ever i walked into a dark area it stayed lit up

    • @miwibean27
      @miwibean27 5 หลายเดือนก่อน

      hi! did you find a reason for this or how to bypass it?? im running into the same problem and its a bit inconvenient since our games supposed to be quite darkly lit :(

  • @fogryu
    @fogryu 4 หลายเดือนก่อน

    Seems very cool, but it's not working for me... Even tried it in a new scene with nothing else than a light and a cube but nope. I wonder if something changed in the engine since this video was made.
    Thanks for the video anyway.

  • @888Yelena
    @888Yelena ปีที่แล้ว +1

    and where is the outline?

  • @Ryuuoujin
    @Ryuuoujin 28 วันที่ผ่านมา

    I don't think this works with substrate, at least, it didn't work for me, have 5.3, and half texture became either fully black or just completely white.

  • @DemonicHitZ
    @DemonicHitZ ปีที่แล้ว

    Bro its not working on Metahuman i mean only working at there cloths only

  • @GokuSolosAnime
    @GokuSolosAnime 6 หลายเดือนก่อน

    Where is the outlines???

  • @devformation
    @devformation ปีที่แล้ว

    It is so sad that I can't hit like twice..

  • @swb6843
    @swb6843 4 หลายเดือนก่อน

    This causes some weird issues with VFX

  • @user-di2kl7ev6q
    @user-di2kl7ev6q ปีที่แล้ว

    IDK WHAT I DID WRONG IT DOEST WORK ARGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG

  • @tigasm6544
    @tigasm6544 ปีที่แล้ว

    first

  • @general_9position225
    @general_9position225 ปีที่แล้ว

    third

  • @yoyobird8427
    @yoyobird8427 7 วันที่ผ่านมา

    man this is freakin stupid why does epic remove functionality

  •  7 หลายเดือนก่อน +2

    Too basic, it does not work on a serious projects, cause it has no light information at all, so forget about using this approach on a game you rely on lights.