Blender Line Art Occlusion Setting Guide
The Occlusion setting in Blender's Line Art modifier controls which lines are rendered based on whether they are blocked or covered by 3D geometry from the camera's point of view. By calculating how many surface layers sit between an edge and the camera, this setting allows artists to display only fully visible lines, generate hidden or "see-through" lines, or filter out interior clutter to achieve technical drawing styles and stylized 2D aesthetics.
How Occlusion Works in Line Art
When Blender builds Grease Pencil strokes using the Line Art modifier, it checks the line of sight between the active camera and every edge in the 3D scene. The occlusion algorithm determines how many faces overlap an edge.
By default, the modifier uses occlusion to discard edges hidden behind opaque meshes, leaving only visible exterior contours and feature lines. However, the occlusion parameters can be adjusted to detect and display edges buried behind multiple surface layers.
Key Occlusion Settings and Levels
Occlusion Levels
Occlusion is quantified in numeric layers, representing the depth of obstruction from the camera:
- Level 0 (Visible Lines): The edge has a direct line of sight to the camera with zero overlapping faces. This is the standard setting for clean, non-transparent outlines.
- Level 1 (First Hidden Layer): The edge is behind exactly one surface layer.
- Level 2 and Higher: The edge is hidden behind two or more overlapping surfaces.
Exact vs. Range Selection
Blender allows you to filter lines based on specific occlusion criteria:
- Exact Value: Renders lines that match an exact occlusion layer count (e.g., displaying only lines behind exactly one layer of glass or mesh).
- Range Selection: Renders lines that fall between a minimum and maximum number of occluded layers, allowing you to capture a broader depth of internal geometry.
Material and Collection Masks
The occlusion system can interact with specific materials or collections:
- Occlusion Masking: Marks certain objects or materials to block line generation entirely or to ignore occlusion calculations.
- Transparency Handling: Allows Line Art to distinguish between solid objects that fully occlude lines and transparent or semi-transparent surfaces that should still allow lines to pass through.
Practical Use Cases
- Technical and Architectural Drawings: Assigning a second Line Art modifier to capture hidden edges (Occlusion Level 1+) and rendering them with a dashed or lower-opacity brush to represent internal mechanics or floor plans.
- X-Ray and See-Through Effects: Revealing characters or objects through walls, glass, or vehicle hulls while keeping standard outlines on visible surfaces.
- Stylized 2D Art: Filtering out dense internal topology or overlapping geometry to keep the final Grease Pencil linework clean and readable.