Reference Cinema 4D Advanced Features Sketch and Toon Sketch and Toon Material
Function available in CINEMA 4D Visualize, Studio
Sketch Material

Basic Main Strokes Adjust Distort Color Thickness Opacity Render Clone Animate Assign

Render

Here you will find the Sketch material’s rendering controls, such as the options for render culling.

Pixel Units

In the Sketch material there are numerous settings which take pixels as their units. The Pixel Units value defines what is meant by a pixel.

Absolute Pixels

This is real pixels, i.e., 1 unit refers to 1 pixel in the image.

Relative Pixels

These values are all scaled relative to the object’s bounds. This means that 1 pixel thickness may change based on the object’s size; this is the screen size of the object, so moving the camera away from the object gives the same results as scaling the object. What matters is the size of the object rendered onto the screen.

World Space

The pixels are transformed from the world space, so a pixel is smaller the further away it is from the camera.

Clip Strokes to Screen

Original, Disabled, Enabled

This controls how the lines are clipped if part of the object is off-screen. If the option is disabled, the properties are chopped off at the screen’s edge. If the option is enabled, the properties are redrawn to fit the on-screen part of the stroke.

Self-Blend

For details on the blend modes, look up blend modes here.

Sometimes it’s useful to render the same line multiple times with different materials. For example, the character below has two outlines: a thin black outline and a thick gray one. To assign multiple Sketch materials to the same object, simply add a Sketch Style tag for each material.

Image ©2003 by Christian Rambow.

The Self-Blend and Blend settings define the blending mode for lines on the same object (Self-Blend) and lines from different objects (Blend).

Example 1 - Solving opacity overlaps

To avoid opacity overlaps, set Self-Blend to Average.

Example 2 - Solving overlapping patterns

Two line types have been enabled for this object: Crease and Outline. Both have a different pattern. Initially you can’t see much of a pattern around the outline (left object) because the two lines overlap and so any gaps in one are filled by the pattern from the other line.

To remedy, first set Self Blend to Overwrite (center object). This removes the overlap, but now the blue line has been overwritten because of the drawing order (see The drawing order below). This is easily resolved by setting the blue line’s Priority value in the Sketch material (Main tab) higher, to give the desired result (right object).

The drawing order

Suppose you have drawn two outlines for the same object, a thin red outline and a thick black one. How does Sketch and Toon know which line you want on top of the other?

Sketch and Toon follows a drawing order for the lines:

Blend

The Blend Mode sets the Mode for Lines of other Objects (Blend Mode).

See Blend Modes.

Clip Render

None, Inside Geometry, Outside Geometry

This setting lets you clip off parts of the line that are inside or outside the geometry.

Mode

The Mode setting controls how an object’s clipping is affected by other objects in the Project. Enable the Self option if objects should clip their own lines as well.

Self

Clipping is not affected by other objects. The object’s lines are clipped to its own geometry only.

Children
Hierarchy
Project

In Children mode, the lines are clipped to the object’s own geometry (if Self is enabled) and to the geometry of its children (Children). Hierarchy mode finds the top-most parent and then uses the parent and all its children to clip.

Objects

This lets you choose which objects are used to clip the lines of other objects — Drag & drop the objects into the Objects box.

Self

To make each object clip its own lines as well, enable the Self option.

Show

These settings are for advanced use only. They are designed for supporting alpha maps during rendering to allow lines to show through alphas.

Sketch and Toon has two stages of culling: hidden culling and render culling.

Visible

If you set this to Visible or Hidden, Sketch and Toon will only render line pixels that are visible or hidden respectively based on the Mode settings. The default setting is visible (normally you only want to see line pixels that are not hidden by other objects).

Hidden

Hidden culling takes place while the lines are being generated and its purpose is to separate the lines into visible lines and hidden lines. This is controlled by the Hidden Cull mode and Self-Culling option in the post effect and Sketch Style tag (Lines tab).

The Hidden Cull mode sets which objects are used to check if a line is hidden.

Line Cull

This changes how the render culling works. It has two methods.

Method 1 (option disabled) - this simply checks the pixel itself that is rendering. This is faster than method 2 but can result in the line thinning artifact where lines that are partly hidden along their thickness are culled (because it is per pixel).

Method 2 (option enabled) - this checks the line itself. It is slower than method 1 because it needs to send out extra rays from the line to check if the line point closest to the rendering pixel should be culled.

Mode

As with the other clipping and culling modes, this sets which objects in the Project are used to find out if this pixel is visible or hidden. The default is Scene, which means all other objects in the Project are checked. With the default settings, only pixels that are not hidden by other objects are rendered.

Self

The Self option is disabled by default. If you enable it, the object which generated the line will also be checked to see if it hides the line.

Variations Seed [0..2147483647]

From left to right: original cube; cube with 30% HSV color variation set on the Adjustment tab; the same settings as the center cube except with a different Variations Seed value.

The Sketch material has many variation parameters. For example, the H, S and V values on the Adjustment tab enable you to randomize the color of each line. Suppose you don’t like the particular colors Sketch and Toon has chosen, what then?

Change the Variations Seed value and Sketch and Toon will create a new random look. Changing this value is like throwing the dice again for all variation values. Keep changing it until you are satisfied with the result. Disable the Static option if you are rendering an animation and you want a different variation to be generated for each frame.

Static

Deactivate the static setting if you want a new color dispersion in each frame of your animation.