Skip to main content
StrongBeaver
Legend
June 20, 2023
Answered

Fill Empty Tile Shapes

  • June 20, 2023
  • 1 reply
  • 1653 views

I'm using the tile sampler node to create the tiles; although, I would like to fill the shape in red whether that is one single large tile or two smaller tiles. 

I'd like to know numerous methods to which to accomblish this, if numerous methods exist ?

This topic has been closed for replies.
Correct answer davescm

I'm just not able to get the result you got using the Tile Generator node; therefore I've attached a scene to look at as to what I'm doing wrong ?


Hi

A few changes are needed to your graph, in terms of node settings and connections.

To make the tiles fit over each other, keep them in multiples e.g. I've made the bottom sampler 12 x 12 , the second 6 x 12, the third 6 x 6.

Turn global offset, and mask random off in the tile samplers.

I've made the tile generator 12 x 12 to match the bottom sampler, made the pattern square , and set scale to 1 so there are no gaps.

The histogram scan nodes need to be set to position 1 and contrast 1 - the idea being to get a pure white version of the tiles to use as a mask. The edge detect needs to be inverted, the line width widened slightly, and then the following blend node set to add so that it adds that edge to the masked tile shapes.

The connection to the main blend modes should be the mask (from histogram scan + edge detect) into the opacity input and the tile sampler outputs into the foreground and background.

 

I've made those changes and attached a revised version of your graph below. You can control the amount of rectangular tiles and large square tiles by adjusting the Mask map thresholds in the relevant tile sampler nodes.

 

I hope that helps you.

Dave

1 reply

davescm
Community Expert
Community Expert
June 20, 2023

I would use more than one sampler. For example like this, starting with the smallest tiles and adding the larger ones. You can drive the masks at random as here or with a mask map input:

 

You could then drive the inputs with the same or different patterns as you choose:

Dave

StrongBeaver
Legend
June 21, 2023

Although probably redudant to do; I'm using a tile generator as a mask in a tile sampler. I like that I can change the tile sampler and essentailly get a different position of the tiles like a seed value. Therefore unless another way identical to this is available I would like to keep this setup but I can't get it to work with your setup @davescm ?

 

davescm
Community Expert
Community Expert
June 22, 2023

You can still do that if you wish, connect it to the mask input of the two 'larger' tile samplers - then adjust the effect of the input with the Mask Map Threshold in each of those two samplers.

You can also just use a noise generator instead of another tile sampler (as below).

 

 

Dave