Edge Rendering

../../../_images/render_blender-render_post-processing_edges_toon-examples.png

Une scène avec des matériaux de dessin animé.

Les shaders Blender de dessin animé peuvent votre rendu une apparence de type ou de type manga, affectant les formes de couleurs. L’effet n’est pas parfait puisque les magazines de BD et de manga réels ont aussi habituellement des contours en encre de Chine. Blender peut ajouter cette fonction comme une opération de post-processing.

Options

../../../_images/render_blender-render_post-processing_edges_panel.png

Toon edge buttons.

Edge
Ceci Blender chercher des arêtes dans votre rendu et leur ajouter un « contour ».

Avant de répéter le rendu, il est nécessaire de définir certains paramètres :

Threshold (seuil)
The threshold of the angle between faces for drawing edges, from 0 to 255. A value of 10 would just give outline of object against the background, whereas higher settings start to add outlines on surface edges, starting with sharper angles. At maximum intensity, edge will even faintly display geometry subdivided edge lines in areas of imperfect smoothing.
Color RGB
La couleur des

Exemples

../../../_images/render_blender-render_post-processing_edges_toon-examples-edge.png

Scene re-rendered with toon edge set.

It is possible to separate out the edge layer using a render layer dedicated to that purpose. The alpha channel is 0 where there is no edge, and 1 where the edge is. By separating out the edge layer, you can blur it, change its color, mask it, etc. The image above shows how to do this. In this example, an Edge render layer is created that only has the Sky and Edge layers The other render layer omits the Edge layer, so it returns just the normal image. On the output panel Edge is enabled with a width of 10 in black. Then that layer goes through a blur node. Using the Alpha Over node, then the cube is composited on top of the blurred edge. The result gives a soft-shadow kind of effect. Note that Premultiply is set, because the Edge image already has an alpha of 1.0 set.