2
$\begingroup$

My goal is to add procedural grass patches along the crevices of tiles. I have a tile pattern as below

enter image description here

So, is it possible to add noise along those black lines so that they can be colored green to give some grass patch effect?? To my knowledge I can only add Noise inside the black lines by using mix RGB node with fac as the tile pattern and noise node as one of the inputs as shown below.

enter image description here

. But this isn't what I need.. i need the noise to extend beyond the line boundaries a bit more (not just inside). Any ideas how to achieve this??

$\endgroup$
2
  • $\begingroup$ Is the tile pattern procedural? $\endgroup$
    – Robin Betts
    Commented May 10, 2021 at 19:36
  • 1
    $\begingroup$ The tiles isn't a procedural .. it's just an image . $\endgroup$
    – Suhas
    Commented May 11, 2021 at 0:08

1 Answer 1

4
$\begingroup$

I think you will need some sort of distance function from the cracks between the bricks. If your herringbone is procedural, that could be maths, inside the node tree. If it is an image texture, then blurring will do a pretty good job. You could blur the texture in an external application, or by putting it through Blender's own compositor:

enter image description here

.. trying to get a good range of greys for maximum flexibility. Then..

enter image description here

.. (Left) it can be inverted and adjusted, using a Color Ramp... Your Noise, (Center) can be put through another Color Ramp. When the two are Mix RGB > Multiplied, (Right,) you begin to see how the bleed-mask appears. It can be further adjusted, put through a 'Greater Than' threshold, or a softer threshold, using another Color-Ramp, or Map Range.

enter image description here

The Brick shader (Left), and the Grass shader (Center) can be mixed using the resulting mask (right).

These are the nodes which produce the mask:

enter image description here

The result:

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ This was exactly I was trying...Makes lot of sense. .. I'll try this logic $\endgroup$
    – Suhas
    Commented May 11, 2021 at 0:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .