Line Art(LineArtStage)
The Line Art node renders a 2D line drawing of a 3D model inside the ComfyTV pipeline.
Line Art Stage
Description
The Line Art node renders a 2D line drawing of a 3D model inside the ComfyTV pipeline. It takes a COMFYTV_MODEL and produces a COMFYTV_IMAGE containing the edges of that model as seen from a camera. Three classes of edges can be drawn independently: silhouettes, creases, and boundaries. With the default settings the node outputs white lines on a black background, which can be fed directly into ControlNet lineart conditioning workflows.
The output image is rendered at an explicit resolution set by the width and height inputs, and line thickness is controlled in output pixels. Visibility of lines hidden behind the surface can be resolved with an occlusion test, or disabled to get a see-through wireframe look.
Inputs
width
Render width in pixels. Defaults to 1024, with a minimum of 256, a maximum of 4096, and a step of 64.
height
Render height in pixels. Defaults to 1024, with a minimum of 256, a maximum of 4096, and a step of 64.
thickness
Line width in output pixels. Defaults to 2, with a range of 0.5 to 8 and a step of 0.5. Larger values produce heavier, more visible lines; smaller values produce fine lines suitable for detailed control maps.
silhouette
Draws edges where the surface turns away from the camera. Enabled by default. Disable to omit the outer contour of the model.
crease
Draws sharp edges, meaning edges whose dihedral angle exceeds crease_angle. Enabled by default. This is what produces most of the interior detail on faceted or hard-surface models.
boundary
Draws open-mesh border edges, such as the rim of a plane or the open edge of an unclosed mesh. Enabled by default.
crease_angle
The angle, in degrees, between face normals above which an edge counts as a crease. Defaults to 60, with a range of 1 to 179 and a step of 1. Lower values treat more edges as creases and produce denser interior lines; higher values restrict crease lines to very sharp corners. This input only has an effect when crease is enabled.
occlusion
Hides lines that are behind the surface using a BVH ray test. Enabled by default, which produces a clean, solid-looking line drawing. Turning it off shows all edges regardless of visibility, giving a wireframe-style see-through result.
invert
Controls the output polarity. When off (the default), lines are white on a black background, matching the usual ControlNet lineart convention. When on, lines are black on a white background.
camera
Internal view camera, supplied as JSON containing position, target, and FOV, and set by the node body. Leave empty to use auto-framing, which fits the camera to the model automatically. This input is not normally edited by hand.
model
The optional COMFYTV_MODEL input that supplies the 3D geometry to render. If omitted, the node produces an empty line-art image.
Outputs
Returns a single COMFYTV_IMAGE: the rendered line-art image at the requested resolution and polarity. The output is ready to be saved, previewed, or passed to a ControlNet lineart conditioning stage.
Usage Notes
- The default combination (
silhouette,crease, andboundaryenabled,invertoff) produces a classic black-background line-art map suitable for ControlNet lineart. - Set
invertto true when you need black lines on white, for example for compositing over a light background or for workflows that expect an ink-on-paper look. - Turn off
occlusionto get a see-through, wireframe-style drawing where interior geometry remains visible. - If the interior lines are too dense, raise
crease_angle; if too many details are missing, lower it. - Keep
widthandheightat multiples of the step of64to avoid unexpected cropping or scaling. - The
camerainput is managed by the node itself; leave it empty to let the node frame the model automatically.
Comments
Sign in with GitHub to join the discussion.