Bleeding Outlines

Bleeding Outlines

Jump to heading What's the problem?

There are 2 outline effects in Linework that work kind of in a similar way: Soft Outline and Wide Outline. They both to these 3 steps.

  1. Render the silhouette of the objects
  2. Dilate/extend the silhouette
  3. Subtract original silhouette from the dilated/extended silhouette to get an outline and composite it with the scene

The dilation happens in screen-space, which means the outline will not always completely respect the configured Occlusion State. This is especially apparent for wide outlines.

In the example below, the outline is set to render When Not Occluded however the outline bleeds slightly into the other object in the scene.

Outline Bleeding-20240821134438258 Outline Bleeding-20240821134438258

Jump to heading Solutions and Workarounds

There is an option to mask out parts of the outline by assigning objects to render As Mask which will effectively mask out the outline. In the example below, the box is set to render As Mask and the outline is then occluded.

Outline Bleeding-1 Outline Bleeding-20240821135129466

The downside of this is that this won't work well in the case where you also want outlines around the box.

Confused?

Need more information about any of this? Contact me.

Enjoying Linework?

Writing a review helps me out greatly! It helps the asset's visibility and supports me in the development of Linework! If you have a support question, check ⁠support instead. Thank you very much.

Write a review