Skip to content

How to understand the parameters in the new line_width node? #274

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

You must be logged in to vote

The line detection works by detecting ID, depth, and normal discontinuities between nearby pixels.

The line width scale just multiplies the final result.

By default, the first channel (ID.x) is a unique number for each object, and the other 3 channels are set to 0.
So, by default, the ID detection will create contour lines at object boundaries.

The other channels can be used for custom boundaries:

The depth detection detects a line when the depth difference is larger than the depth threshold (expressed in world units).
The other parameters are used in a range mapping function.

So the line width will be equal to depth width at depth threshold, and it will be equal to depth width + depth w…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@eballeste
Comment options

@pragma37
Comment options

Comment options

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