Skip to content

Disappearing id boundary line when looking in front #273

Answered by pragma37
HSDSZ asked this question in Q&A
Discussion options

You must be logged in to vote

(I'm converting this into a question, since this is more a current design limitation than a bug.)

The line detection function only takes into account pixels that are further from the camera than the currently shaded pixel.
In the case of a plane viewed at 90 degrees, all pixels have the same depth so all the plane pixels are discarded.

The internal line function has different "depth modes": NEAR, FAR, and ANY, but they're not exposed in the line detection nodes since the Malt UI doesn't support enums yet.

As a workaround, you could add a custom function that works in ANY mode:

LineDetectionOutput line_detection_any_depth()
{
    LineDetectionOutput result;

    #ifdef NPR_FILTERS_ACTIVE
 …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HSDSZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #272 on March 16, 2022 15:41.