Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fill Empty Tile Shapes

Advisor ,
Jun 19, 2023 Jun 19, 2023

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 ?

TOPICS
How to , Substance Graph
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jun 20, 2023 Jun 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:

 

2023-06-20_11-57-09.jpg

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

2023-06-20_12-08-29.jpg

Dave

Translate
Community Expert , Jun 24, 2023 Jun 24, 2023

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 id

...
Translate
Community Expert ,
Jun 20, 2023 Jun 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:

 

2023-06-20_11-57-09.jpg

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

2023-06-20_12-08-29.jpg

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 21, 2023 Jun 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 ?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2023 Jun 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).

2023-06-22_10-10-17.jpg

 

 

Dave

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 22, 2023 Jun 22, 2023

I attached the scene file as I'm not able to get the effect result as you got with your scene ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2023 Jun 22, 2023

You need to generate some variation in luminosity in your initial tile generator. The mask input in the tile sampler samples at the relevant point for each tile then masks or not based on the setting of the Mask Map Threshold. So if you set the Tile Generator  to Color > Luminance Random 1 and the Tile Sampler Mask Map Threshold to 0.5, tiles will be masked out based on your input.

 

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 23, 2023 Jun 23, 2023

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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 24, 2023 Jun 24, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines