Cell Shading in Unreal

Awesome , would you be willing to post up the results? I would love to see what people are doing with it :slight_smile:

Added the tutorial to the UE4 wiki, adding images is CLUNKY!
https://wiki.unrealengine.com/Cel_Shading_Post_Process

Put the Cel shader into the vehicle example game.

http://cd8ba0b44a15c10065fd-24461f391e20b7336331d5789078af53.r23.cf1.rackcdn.com/polycount.vanillaforums.com/editor/dd/8znw9jw41td1.png

Cel Shaded.

http://cd8ba0b44a15c10065fd-24461f391e20b7336331d5789078af53.r23.cf1.rackcdn.com/polycount.vanillaforums.com/editor/re/j5ay476j8aok.png

Original

Oh right, forgot to clamp the texture thanks:)

Any progress on that material setup? The vehicle picture looks good, a few artifacts here and there but possibly just the normals aren’t made for this type of shading.

Any chance to see tutorial about achieving this effect in material?

Thanks

material version is up on youtube :slight_smile:

Niiiice! Thanks a bunch!

So I don’t want to act as a necromancer to this thread, but how would one go to not leave sky sphere black? Everything works fine but it left my Sky Sphere completely black.

yep, same issue here

I tried this and my scene looks kind of yellow. Maybe it has to do with what to plug in the “Emissive Color” parameter, but I’m not sure…

take another look at the tutorial, your component masks are wrong :slight_smile:

If you want to get the skybox back you need to plug it into the base colour rather than emmisive. or take the emmisive channel and add it back in the post process.

About your non post process material tutorial, you need a little update :

You connect the “set vector parameter Value” node to the construction script.
It works fine in the editor and update the light vector when moving the light in the level.
But when you launch the preview (or a build), the parameter collection is not updated and the material use the default value set in the parameter collection.

I copy paste the same block (directionnal light -> Get forward vector -> set Vector parameter value) and connect it to the “Event begin Play” too.
Doing this, the material react to the light vector normally in the game.

I imagine that if the light vector is rotating during the game (like in a day / night cycle), you’ll need to update the parameter collection somewhere too for the changes to take effect.
:slight_smile:

The yellowness is cause by allowing alpha (A) through in your component masks. Don’t select alpha.