Author Topic: Dilate node  (Read 1155 times)

I would love it if we could have some kind of "Dilate" node for padding masks over UV seams.

I have made my own dilate node (attached to this post).

Currently only works well with a 2k texture, If I have time I may fix that.

Not the most optimised method, but it does work. And is very simple.
Requires that the alpha be black and white only, no anti-aliasing.

The dilate.sbs is a single pixel dilation.
The dilate_selection.sbs is a node with dilations of 1,2,4,8,16,32,64,128 outputs, allowing you to have some choice on the amount of dilation. It requires the dilate.sbs file as it is basically a huge nest of dilate.sbs nodes.
The dialte_test.sbs shows a simple example, just change the input texture to an existing image to see the effect.

Hope this helps someone.