-
Malt versionDevelopment-latest Blender versionBlender 3.1 OSWindows 10 64bits Hardware infoIntel i5-9400F | 8 GB RAM | NVDIA GTX 1660 Ti Issue description and reproduction stepsPlease check the disappearing boundary line when the camera angle is changed from 89 to 90 Attachments |
Beta Was this translation helpful? Give feedback.
Answered by
pragma37
Mar 16, 2022
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HSDSZ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(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 …