25

How to render perfect cartoons in blender? Whatever the engine is (internal or cycles) I always get that shading transition somewhere on the model.

Blender internal render engine

Cycles render engine

The first picture is in blender internal render engine with the toon shading material and the second picture is in cycles render engine with the toon shader.


How can I get completely flat colors with no fancy shading variation?

shading transition

no shading transition

ideasman42
  • 47,387
  • 10
  • 141
  • 223
Vladimir
  • 4,695
  • 14
  • 48
  • 68
  • have you tried to add another lamp (Hemi) to your scene I don't get these pronounced shadows? – stacker Jun 02 '14 at 21:36
  • to stacker - I lowered the light bounces in cycles - min-1, max-2 – Vladimir Jun 02 '14 at 22:27
  • I tried Light BWK's explanation, but I still get the same results.

    Basically, I want to make a cartoon animation in cycles with completely flat colors.

    – Vladimir Jun 03 '14 at 15:42
  • Well.. okay. I thought your original example image kind of implied that this was part of your other question, but if it's not, then I guess this works as a separate question. – gandalf3 Jun 03 '14 at 19:12

8 Answers8

20

base Toon/cell shading

These are the settings you need to change to set flat toon/cel shading. To get rid of aliasing with constant interpolation, in options panel, turn on Full Oversampling. There are limitations, noted them in the graphic.

Light Bwk
  • 436
  • 2
  • 5
15

Another way in Cycles would be to create a shader on the compositor that affects the overall rendering, or just the materials you want.

In this example the monkey on the right has a material with an index pass of 1. In the compositor I'm using a color ramp to remap the shading. The two tone shading is achieved using constant as interpolation on the ramp.

enter image description here

The rest of the materials are unaffected by the ramp.

  • I really like that one, but the render time would be expansive. – Vladimir Jun 03 '14 at 11:21
  • 1
    not by a lot... –  Jun 03 '14 at 14:25
  • 1
    Why am I sent to this page when I want an entire scene to be cell shaded? Yet every example is just changing 1 material to ramp. That's not what I want. – Eric Huelin Nov 18 '16 at 07:27
  • @EricHuelin When commenting, at least add a link of the question/comment that is sending you here. –  Nov 18 '16 at 14:45
  • http://blender.stackexchange.com/questions/67323/can-a-light-make-ramped-shading – Eric Huelin Nov 19 '16 at 03:44
  • I just wish someone could show me how to use compositing to make a cell shaded images without ramp coloring materials. This example shows how to make orange and brown ramp on 1 object, that is not what I want. The below answers show how to use ramp materials, that is not what I want either. – Eric Huelin Nov 19 '16 at 03:49
12

In BI this can be done by using toon shading and setting the smooth value to 0, then feeding it into a color ramp:

enter image description here

I also disabled specular highlights by setting the specular intensity to 0.

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
10

You can do something similar to cegaton's solution in Cycles by feeding the same type of ramp he used through the color input of a toon bsdf shader.

enter image description here

enter image description here

EDIT: This is a solution you do in the material, not the compositor.

IncessantLee
  • 244
  • 2
  • 6
  • This isn't even Freestyle! It's just the material node editor. (But you can definitely add that on top of this for better lines.) Freestyle is applied after everything is rendered, then added. I'm not sure if Freestyle is done before compositing, or not. – IncessantLee Nov 06 '15 at 14:38
  • Thanks for the tip ;). I meant to type "cell shading". I often mistype it 'cause they often go hand at hand in cartoons. Yeah, it is a compositing effect – Vladimir Nov 06 '15 at 20:42
7

After some trial and error I created my BI toon shading setup in Cycles. This is a very simple and useful setup. You can easily decide light and shadow direction with lamp in scene and object shading with ColorRamp node. If you use this setup with Freestyle it can be nice looking cell shaded objects. And if you don't want to change shadow position while animating objects (which is I recommend it) parent your lamp the object.

Here is the my setup. enter image description here

Y4Lc1N
  • 81
  • 2
  • 4
  • I like this. Your node setup didn't work for me because in the Texture Coordinates node I was using a real lamp. When I changed it to some non-lamp object (e.g., a sphere) then it worked. – lumpynose Nov 15 '17 at 00:01
4

I use the internal blender engine for cartoon style render all the time. if you don't want shadows on it in the material tab down in the shading section check the button beside shadeless and it takes away the shading and shadowing. also if you want a outline like a line drawing outline in the render tab check edge and adjust to the way you like it.

1

I use this setup for EEVEE only.

enter image description here

When rendering turn on Freestyle to get outlines.

enter image description here

Duarte Farrajota Ramos
  • 59,425
  • 39
  • 130
  • 187
0

You can Experiment with Ambient Occlusion and External lighting under the World Settings Panel for more toon like effects AND the Stroke & Freestyle (1 px is more than enough) settings under the Render Section for edge strokes and outlines on objects.

Joel eldo
  • 21
  • 2