8
$\begingroup$

I read "How do I create repeating patterns in cycles with procedural textures?" here on Blender Stack Exchange, and "staggered texture mapping" on Greg Zaal's website. I thought it seemed possible to combine the two ideas to have staggered procedural tiles, but can't seem to make it work. Can anyone please help?

$\endgroup$
  • 2
    $\begingroup$ can you post an example of staggered procedural pattern $\endgroup$ – Chebhou Apr 23 '15 at 10:52
11
$\begingroup$

Here are the nodes for creating staggered texture mapping for procedural textures. cycles nodes for the texture coordinates First the Y axis gets multiplied by the number of lines you want to have in the pattern (the Lines value node). After adding .5 that gets rounded creating stripes (along the X axis in this example).

  • If you were to look at the output from that node at this point it would look all white, that is because the values start at 1 and increase by 1 with each stripe.

section of the cycles nodes

The next three nodes take the stripes, multiplies it by the reciprocal of the input value (lines), then by 0.5 to lower the values. Then the X axis is added in.
section of the cycles nodes
At this point there are only stripes, next the Modulo math node causes the texture coordinates to repeat.
All that was for the X axis.

The Y axis is simple, it is just the Modulo of the reciprocal of the lines.

With the nodes pictured at the top you can get a pattern like this.
generated procedural pattern

After adding the Subtract and Absolute nodes from Jerryno's answer, every other tile will be mirrored and you can get a pattern like this.
generated procedural pattern

This blend has the nodes packed in to a node group, which can easily be added to any project.

Blend File

As you can see, manipulating the texture coordinates of generated textures is quite powerful.

$\endgroup$
  • $\begingroup$ You are the king. This is exactly what I was looking for. Thank you!!!! $\endgroup$ – Dale Cieslak Apr 24 '15 at 4:26

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.