Randomizing brick texture

Hello there, I was wondering if there is any method of randomizing the location/rotation of each brick face while using brick texture node.

Basically what I want to achieve is having the same marble tiles, but instead of having it projected to the surface, I want it to randomly move and rotate

1 Like

Okay, I should have looked for it a bit more…

Here is the solution I found in case anyone would need:
Reddit Link

1 Like

I’ve changed it a bit, probably there is a smarter/nicer way to organize it, but I am quite happy with the result, at least it works as I needed. Just sharing for anyone who would look for a similar solution

4 Likes

I think the most common way to do this is using the random value that the brick texture already gives you.

If you set the brick colour to black and white you get the maximum range of randomness.

You can use the values of the colour output to map your texture.

If you plug the colour output into a white noise node you will get random colours, when you separate the RGB values you will have 3 different random ranges. You will find that that the “value” output of the white noise texture is the same as the R value.

For location and rotation of your texture you can multiply the values by any number to make the range greater, the number you use will act similar to a “seed”.

For scale you would probably want to limit the range with a map range node.

You can get your mortar back with the fac output of the brick node.

You can also use these values to randomisze the colour or HSV etc.

4 Likes