Skip to content

How is Line Color picked? #458

Answered by pragma37
dibli-goost asked this question in Q&A
Discussion options

You must be logged in to vote

How exactly does Malt decide that color? Is it based off of depth or something?

Essentially, yes. The line nearest to the camera "wins".

Lines are detected by checking for different types of boundaries with nearby pixels.
So that means if pixel A detects a line when checking against pixel B, then pixel B will also detect a line when checking against pixel A.
So unless we discard one of the 2 cases, we end up with 2 contiguous parallel lines everywhere, which more often than not causes unintended results.

I think your best solution here would be to make sure both materials output the same line color.
Using vertex colors or a texture should do the trick.

It should be possible to implement…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dibli-goost
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