Basics Of Line Rendering
We explain how to use Pencil+ 4 Line to draw lines over objects.
Create Objects¶
Create objects where the Lines will be drawn. For this we will create Monkey from Mesh. To cleanly output the Lines, we added [Subdivision Surface] from [Modifier Properties] to the object and set [Shade Smooth].
Pencil+ 4 Line Node Tree Settings¶
-
Add a window and set the [Editor Type] to [Pencil+ 4 Line].
-
The "Pencil+ 4 Line" panel is displayed in the editor. There are no Line settings in the initial state so select [Add] under [Line List].
-
Add a [Line Set]. Click [Add] under the [Line Sets] list. A [Line Set] is added.
-
Add objects to the Line Set. Click [Add] under the [Objects] list to display the [Add Objects] dialog. Select the object Suzanne from the list and click [OK].
Compositor Settings¶
A Pencil+ 4 Line ViewLayer is necessary in the compositor to render the Lines.
-
Enable the compositor's [Use Nodes].
-
Select [Add] - [Pencil+ 4] - [ViewLayer] from the compositor editor's menu. A Pencil+ 4 Line ViewLayer is created.
-
Select [Add] - [Color] - [Alpha Over] to add a [Alpha Over] node. Connect the [Render Layers]'s [Image] socket to the top [Image] socket on the [Alpha Over] node. Then connect the [Alpha Over] node's [Image] socket to the [Composite]'s [Image] socket. Finally, connect the Pencil+ 4 Line [ViewLayer] node's [Image] socket to the bottom [Image] socket on the [Alpha Over] node.
Render¶
Click [Render Image] from [Render] in the Blender menu. Pencil+ 4 Lines are rendered in the Blender Render window. Freely adjust the Line color and thickness using the Brush area in the Line Set hierarchy. Here we set the size to 6px.