Reference Cinema 4D Cinema 4D Visualize, Broadcast, Studio Sketch and Toon Sketch and Toon Post Effect
Function available in CINEMA 4D Visualize, Studio
Sketch and Toon

Main Lines Render Multi-Pass Shading Editor Display

Lines

The Lines tab controls which line types (outline, intersections, polygon edges, etc.) are created and which Sketch materials are used to render them.

About lines and layers

To understand how lines work with settings such as Combine (see below), it can be helpful to think about each line type created being given its own layer (internally this is exactly what happens). When Sketch and Toon creates lines for an object, a new layer is created and the line types inserted. If Combine is enabled, all line types that can be merged are placed onto the same layer. If Combine is disabled, each line type is placed onto its own layer.

This means each object produces one or more layers (from each Sketch Style tag and the post effect). The layer priority (i.e. the order in which the layers are rendered) is defined by the tag order, post effect and material priority (defined on the Sketch material’s Main tab), then during rendering the Z-depth is used, followed by the layer priority for all lines of approximately similar Z-depth (lines closest to the camera are drawn on top).

 Types

The options in the top part of the Lines tab control which line types are created. For example, enable the Outline option to create outlines. Some options have extra settings which will appear in the bottom part of the dialog when the option is enabled.

The following line types are available (additional details can be found in the description of the corresponding parameters):

Various line types can be created.

Outline

An object’s unhidden contour lines.

Folds

A Fold is the edge between a front and rear polygon.

Overlaps

Overlaps are silhouette lines that overlap the mesh, or the difference between Fold and creases.

Creases

Non-smoothed object edges.

Angle

This renders the edges of two adjoining polygons that lie in a certain angle or within a certain rotational range to each other.

Border

These are edges that only belong to a single polygon.

Material

These are edges that belong to regions of a material assigned to a polygon selection.

Edges

Renders each individual edge.

Intersections

Renders edges that are created when one object intersects another.

Triangulation

A triangulated line is rendered for each quad.

Motion

For objects in motion, lines can be calculated in the direction of motion.

Contour

Renders lines of equal angle or height.

Isoparms

Isoparms render lines of the same name from generated objects.

Splines

Splines will be rendered.

Particles

Particles will be rendered. Make sure not to place any objects into the Emitter.

Combine

The following line types will always be created on their own layer: Motion, Particle, Spline, Isoparm, Material alpha map lines.

The Combine mode enables you to merge line types in the following ways.

None

Each line type is created separately and rendered individually on its own layer. If more than one line type produces the same line when using effects such as transparency or patterns, you may notice unwanted results where the lines overlap. An example would be enabling Creases and Angle, which may create lines for the same polygon edges. When strokes are enabled in the Sketch material, the strokes will be limited to lines of the same type.

All

All line types that use the same Sketch material will be combined on a single layer. This helps to prevent overlapping (see None above). When strokes are enabled in the Sketch material, all line types in this layer are available for the strokes to draw along.

Exclusive

The line types are merged so that only lines which do not overlap between multiple types are created.

Inclusive

The enabled line types are merged to create lines that only exist in more than one line type; this is the opposite effect to Exclusive mode.

Self-Culling

See Hidden Cull.

Objects

See Hidden Cull under Objects.

Hidden Cull

To switch off hidden lines, set Hidden Cull to Self and clear the Default Hidden box or local Hidden box.

These settings control which lines are visible and which are hidden. The Hidden Cull mode sets which objects in the scene are used to find out if a line is hidden. In the following examples, the visible lines are black, the hidden lines are red.

Self

In Self mode, only the object which created the line is used to find out if the line is hidden.

Children

Children mode with Self-Culling disabled (left) and enabled (center).

Children mode uses the parent and its children to find out if a line is hidden.

Hierachy

Hierarchy mode with Self-Culling disabled (left) and enabled (right).

Hierarchy mode finds the top-most parent and then uses the parent and all its children to find out if a line is hidden.

Project

In this mode, the line is checked against all objects in the scene to find out if it is hidden.

Objects

Object mode with Self-Culling disabled (left) and enabled (right)

This mode uses the objects in the Objects box to find out if a line is hidden.

Default Hidden

See also Default Visible

Line Materials
Default Visible

Use the Default Visible and Default Hidden boxes to specify which Sketch material to use for visible lines and which to use for hidden lines (Drag & drop the materials from the Material Manager into the boxes). Leaving a box blank means those lines will not be rendered.

These are the default materials and they are used for all line types except those with their own materials specified in their Visible and Hidden boxes (to display the Visible and Hidden boxes, set Line Materials to Both).

To display the Visible and Hidden boxes for each enabled line type, set Line Materials to Both.

Each box has a triangle button to its right which you can click to access the following commands:

Line types

Only enable the line types that are actually needed. Enabling each type adds to the time it takes to create the lines.

Sketch and Toon offers over a dozen line types. In these pages, you will find a description for each line type and its settings on the Lines tab if it has any. In general, Folds, Creases and Border are all you need for a basic toon.

About line ownership

The object that creates a line owns it. The lines are placed onto a layer that is linked to the object that created them. This can affect things such as outlines — although an outline may look like it goes around multiple objects, internally each object owns its own section of the outline, so if you try and apply a stroke to the outline, it can only go around lines in the same layer, which also means for each object.

Cleaning up with the Sketch Style tag

For general details on using the Sketch Style tag, see Sketch Style tag.

The Sketch Style tag gives you a quick and easy way to remove unwanted lines.

The Sketch Style tag has a Lines selection box that gives you an easy way to remove unwanted lines.

Select the polygons or edges in the problem areas or, if it’s easier the other way around, select all polygons or edges which are not causing the problem. Create a Selection tag for the selection (Select / Set Selection). You can create several Selection tags if you wish.

Drag & drop the Selection tag or tags into the Sketch Style tag’s Lines box (Selections tab). Set Mode to Exclude or Include depending on whether you selected the problem areas or trouble-free areas. Render, and the unwanted lines should be gone.

 Outline

For these lines to appear correctly, the mesh must be complete and joined and the surface Normals must point in the correct direction.

Original, Outline, Folds, Overlaps

These three line types — outline, folds and overlaps — are collectively known as the silhouette-based lines. They appear at each polygon edge where the polygon on one side faces towards the camera (frontface) and the polygon on the other side faces away from the camera (backface).

Folds are the most important silhouette-based lines. A fold is a polygon edge between a frontface polygon and a backface polygon.

Outline generally gives you just the outline of the mesh. It is the same as Folds except that it ignores edges which overlap the mesh.

Overlaps is the opposite of Outline. Overlaps are silhouette-based lines which overlap the mesh. Sometimes you may notice small unwanted overlaps. You can often remove these quickly using the Filter Strokes option in the Sketch material on the Strokes tab.

Lines tab settings

Outline Culling

The Outline Culling mode controls which objects will combine their outlines if they overlap.

Self

Outlines are not combined between overlapping objects, but look up Self Culling.

Children

Children mode combines overlapping outlines for the parent and its children.

Hierachy

Hierarchy mode looks for the top-most parent and then checks all children of that parent.

Children mode (left) and Hierarchy mode (center). In Children mode, the back cone has a separate outline because it is not a child of the middle cone.

Project

The overlapping outlines of different objects are combined.

Objects

Sketch and Toon combines the outline of each object in the Objects box with the outline of any other object it overlaps.

Self-Culling

Original object at left: Scene mode, Self-Culling deactivated, Self-Culling activated.

If Self-Culling is active each object’s outline will be combined with the total outline. This will also occur if Outline Culling is set to Self.

Objects

If Object is selected in the culling outline menu, objects can be placed via drag & drop into this field to be included in the calculation.

 Folds

See Outline.

Fold Direction

The Fold Direction setting defines which types of folds are created: all folds (Any), folds in the direction of front to back, or folds in the direction of back to front.

The Fold Direction can be useful if you notice many unwanted lines forming creases.

Generally the Fold Direction should be set to Any, otherwise it reduces the number of lines created, which can result in gaps.

 Creases

For these lines to appear correctly, the mesh must be complete and joined and the surface Normals must point in the correct direction.

The sphere has no creases because its edges are smoothed by a Phong tag. The cube, on the other hand, has no Phong shading over its edges (angle limit less than 90˚), so each edge results in a crease line.

A crease is any edge not smoothed by aPhong tag (either because the edge has been broken using the Break Phong Shading command on the Structure menu or because the angle between the edge’s polygons exceeds the angle limit in the Phong tag’s settings).

Min [0..180°]

The Min setting helps to prevent creases from appearing in flat parts of the mesh. Each crease is only created if the angle between its polygons is greater than or equal to the Min value.

 Angle

For these lines to appear correctly, the mesh must be complete and joined and the surface Normals must point in the correct direction.

Sketch and Toon checks each edge for the angle between its polygons. If the angle is within the Min to Max range, an angle line is created for that edge.

Max [0..180°]
Min [0..180°]

The Min and Max values define the range within which angle lines are created.

 Border

A border is any edge with only one polygon attached to it, such as the outer edges of a Plane object. Borders can also be the outer edges of polygon selections; use a Sketch Style tag to specify which polygon selection tags to use (Drag & drop the Selection tag or tags into the Border box on the Sketch Style tag’s Selections tab).

 Material

Material lines are the polygon edges around materials restricted to polygon selections or the edges around alpha maps (hard alpha maps work the best).

These settings are available in the Sketch Style tag only.

The following options can be found in the Sketch Style tag.

Mode
Tags

The Mode defines whether to include or exclude Texture tags for edges around alpha maps or materials. Drag & drop the Texture tags into the Tags box.

Combine

If the Combine option is enabled, Sketch and Toon will combine the outline for any overlapping alpha maps.

 Edges

With Edges, lines are generated for each polygon edge unless edge selections are set on the Selections tab of the Sketch Style tag, in which case lines are generated for the selected edges only.

 Intersections

If an object does not have intersecting polygons, ensure the Self-intersection option is disabled, otherwise Sketch and Toon will waste time checking if the polygons intersect.

A cube and cylinder, without intersections, with intersections

These are lines where polygons intersect each other.

Objects

This mode defines which objects are used to find out if there are intersections.

Self

This mode only produces intersection lines where an object intersects itself.

Children
Hierarchy

Children mode checks the parent for intersections with its children. Hierarchy mode looks for the top-most parent and then checks for intersections with any children of that parent.

Project

This creates intersections where any object in the scene intersects any other object.

Objects

Sketch and Toon checks the objects in the Objects box for intersection with any other objects in the scene.

Self-intersection

Enable this option to switch on lines for where an object intersects itself.

Objects

Objects in this field will be included in the calculation.

 Triangulation

A cube, with Triangulation, with Triangulation & Edges

This creates a triangulation line for each quadrangle.

 Motion

Motion lines do not work with Cinema 4D Team Render and cannot be rendered in the Viewport.

Render the (complete) animation to the Picture viewer to see the motion lines. They cannot be rendered in the viewport because the previously rendered frames are needed.

These settings create motion lines when an object or polygon selection moves faster than a threshold value. Restricting motion lines to a polygon selection is useful for producing motion lines from arms, legs and so on.

Number of Lines [1..1000]

The number of motion lines to create.

Mode
Limit
Trail

Velocity

Velocity mode creates motion lines based on the object’s current velocity — the greater the velocity, the longer the lines. The lines will only appear if the object is travelling at least as fast as the Threshold velocity.

Trail

Trail mode creates motion lines based on the object’s path. To limit the trail to recent frames only, enable the Limit option and set Trail to the desired number of frames.

Threshold [0..+∞m]

The minimum speed at which motion lines will be generated.

Bias

Enable the Bias option if you want the lines to be zero length at the Threshold velocity, otherwise they will already have some length at the Threshold velocity.

2D Lines

These are lines drawn away from the object or polygon selection based on a 2D projection.

Outlines

Creates from the line types enabled in the Sketch Style tag or the post effect.

Shapes are created along lines created for the object (e.g., creases, edges or splines; isoparms won’t work), which can be interpreted as a type of motion blur (even though nothing is actually blurred).

Curves

Enable the Curves option to creates curves along the motion.

Curve Width [-100..100%]

Use the Curve Width setting to adjust the width of the curves.

Curve Height [0..200%]

Use the Curve Height setting to adjust the height of the curves.

Spline

Uses a spline object (the Spline LINK control). The spline is used from the XY plane with the dimensions of the Spline object (the object matrix is not used).

Spline

A spline object (not spline primitives) can be placed into this field per drag & drop. It will then be used as a movement guide.

Length [0..+∞%]

Length is the scale for the velocity.

Variation [0..+∞%]

Varies the Length value.

Scale X [0..+∞%]

Scale X scales the motion lines.

Scale Y [0..+∞%]

Scale Y scales the motion lines.

Offset [-∞..+∞]
Relative

The Offset is the size of the gap between the object or polygon selection and the motion lines. Enable the Relative option to make the offset a percentage of the object’s size on screen — this is useful for objects moving towards or away from the camera.

Taper

Squash or stretch the motion lines as they get further away from the object or polygon selection.

Strength X [-1000..100%]

Defines the strength of tapering along the X axis.

Strength Y [-1000..100%]

Controls the strength of tapering along the Y axis.

Fade Opacity

Strength [0..100%]

Use this setting to adjust the strength of the Fade Opacity option.

Fade Thickness

Thin out and fade the lines as they get further away from the object or polygon selection.

Strength [0..100%]

Use this setting to adjust the strength of the Fade Opacity option.

 Contour

Angle mode, Position mode, UVW mode

Contour lines help to show the shape of an object. They are especially useful when used with a thick marker style pen such as for the racing car below. There are three modes for contour lines.

Try using Contour lines with a marker-style pen.

Mode

The following modes are available:

Angle

The Angle setting defines which axis is used.

Position

In Position mode you can choose the axis along which the contours are created.

UVW

In case a given object contains several UVW tags, a tag can be specified using the Sketch Style tag (drag the UVW tag from the Selection tab into the UVW Contour field).

Angle

The Angle setting defines which axis is used. You can choose the X, Y or Z axis of the object or world coordinate system, or the view’s (i.e. camera’s) X, Y or Z axis.

Min [0..180°]

This setting defines the range of rotation over which the contour lines will be created. 0° will result in a right angle to the selected axis.

Max [0..180°]

These define the range of angles over which the contour lines will be created. 0° means planar to the axis chosen (see Angle above).

Steps [1..10000]

This is the number of contour lines to create.

Position

In Position mode you can choose the axis along which the contours are created. You can choose the X, Y or Z axis of the object or world coordinate system, or the view’s (i.e. camera’s) X, Y or Z axis.

Spacing
Variation [0..+∞m]
Offset [-∞..+∞m]
Step [-∞..+∞m]
Min [0..100%]
Max [0..100%]
Steps [1..10000]

The Spacing mode gives you two ways to control the distance between contour lines: Relative mode and Absolute mode.

Relative mode sets the number of contour lines to create (Steps) and how far along the object they start and end (Min and Max).

Absolute mode sets the distance between each contour line (Step). The Offset value enables you to adjust where the contour lines start along the object.

Use the Variation value to vary the size of the gap between contour lines. The default value of 0 means no variation and the lines will be equal distances apart.

Rotate [-180..180°]

This rotates the axis on which the contour lines are based.

UVW

If the object has multiple UVW tags, you can specify which of these should be used via the Sketch Style tag (Drag & drop the UVW tags to be used into the Contour UVW box on the Sketch Style tag’s Selections tab).

This is which coordinate to use: U or V.

Min [0..100%]

Use this setting to define where a given line should start.

Max [0..100%]

The Min and Max values define how far along the object the lines start (Min) and end (Max).

Steps [1..10000]

This is the number of contour lines to create.

 Isoparms

Culling may not be accurate with isoparms. This is because culling uses the object’s real geometry, and isoparms do not always fit their geometry exactly. Hence the polygons may cull the isoparms slightly.

When using Subdivision Surfaces, you can get a similar result to isoparms using an edge selection. This avoids the problems that can occur with isoparms. For a tip on how to do this, see the Subdivision Surfaces entries in FAQ.

Isoparms for a Torus and Oil Tank object.

These are isoparm lines for objects which use them, such as primitives and Generator objects. Note that these do not work with parent deformers. Also, they do not work with some generator objects such as the Array object and the Instance object.

 Splines

These are lines for spline objects. You can use any type of spline, including text splines and freeform splines. However, they do not work with parent deformers. Nor do they work inside generator objects such as the Array object, Instance object and Symmetry object. As a special case, they will work inside a Subdivision Surfaces object because the Subdivision Surfaces does not affect the spline itself.

Note that a spline segment itself defines a stroke — the direction of the stroke and the line normal (used by the From Line modifier) is taken from the direction of the spline. Enabling strokes has no effect on splines because the spline lines are already strokes.

 Particles

Particle lines do not work with Cinema 4D Team Render.

These are lines for particles. They work for particles generated using Thinking Particle’s or Cinema 4D’s standard particle system. As with the spline line type, enabling strokes has no effect because each particle line for a particle is already created as a stroke.

Mode

There are two modes for controlling the length of the particle lines.

Velocity mode creates a straight line from each particle’s current position. The line is as long as the particle would travel in one second provided Velocity Scale is set to 100%. Use a higher Velocity Scale value to lengthen the lines or a lower value to shorten them. The line points in the particle’s current direction.

Trail mode creates lines for the trail (i.e. flight paths already travelled) of the particles. The Limit and Trail settings limit the length of each line to the most recent part of the trail. For example, to draw the trail travelled by the particles over the past ten frames, enable Limit and set Trail to 10 F.

Note for the Path Mode, the entire animation must be rendered in the Picture Viewer so the particles are visible.

From left to right:

Limit

Enables the Limit option.

Trail

If, for example, you want to render the path that was covered over the previous ten frames, activate Limit and set Trail to 10B.

Velocity Scale [0..1000%]

Use this setting to define the length of the particle lines.

On Death

The On Death setting controls what happens to a line when its particle dies.

Keep Stroke
Remove Stroke

With these modes, each line remains or disappears respectively when its particle dies.

Run Out

When each particle dies, its line gets shorter and shorter until it eventually disappears, like a train disappearing into a tunnel.

Fade Out

Each line fades out gradually after its particle dies.

Fade

The Fade value defines how long the line takes to fade out.