Skip to main content
Participating Frequently
April 5, 2024
Question

Tile Sampler Position Random without overlaps?

  • April 5, 2024
  • 1 reply
  • 3560 views

Hi,

I'm trying to randomly position my pattern with tile sampler but it's keep generating overlapped shapes.

I would like to have only the non-overlapped shapes but struggling with how to do this.

 

Is there a way to use position random without any overlapped shapes?

This topic has been closed for replies.

1 reply

Luca Giarrizzo
Community Manager
Community Manager
April 5, 2024

Hello,

 

There are a few techniques that may yield better results, such as using a Flood Fill Mapper node with a Voronoi distribution. I have attached a sample graph for that method.

 

 

Better techniques, such as Poisson distribution, are far more difficult to achieve, but not impossible. This was also mentioned in this post. We hope to eventually offer such a distribution method in a built-in node.

 

Best regards.

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
Participating Frequently
April 8, 2024

Hello Luca!

I just tried your recommendation but the pattern shape seems to be cropped along the edge of the voronoi node.

Which parameter could I adjust to avoid my pattern shapes to be cropped?

I would like the pattern shape to stay as squares. 

Luca Giarrizzo
Community Manager
Community Manager
April 9, 2024

Hello,

 

Unfortunately, this is an intrinsic limitation of the Flood Fill Mapper node.

 

Another method involves scattering shapes from the largest to the smallest by iterating through Tile Sampler nodes, using each iteration as a mask for the next, so that the next Tile Sampler does not scatter in places where shapes already exist: 

 

 

You can tweak 'Mask Random', 'Position offset' with 'quincux' methods, and subtle 'Position Random' in order to break the alignment with the grid as much as possible so the result appears more random.

 

Again, this is a difficult problem to solve and the best methods are expensive. Hopefully in the future we can offer a reliable solution as a built-in node in Designer.

 

Best regards.

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe