A Simple Procedural Texture Algorithm – More Results and Code

spots

In a previous post I explained a simple algorithm for generating textures. Below are some more examples of the kinds of textures that the algorithm can generate, as well as how the different parameters influence the result. You can also download the code.

random_corr_18_49_wood random_corr_96_49_fur random_corr_186_49_tree
random_corr_196_49_fur random_corr_260_49_wood random_corr_305_49_draw
random_corr_pn_01_49_06 pollock leaves

 

The Effect of the Blend Factor

random_corr_pn_13_00_49 random_corr_pn_46_01_49 random_corr_pn_46_02_49
t = 0 t = 0.1 t = 0.2
random_corr_pn_46_03_49 random_corr_pn_46_04_49 random_corr_pn_46_05_49
t = 0.3 t = 0.4 t = 0.5
random_corr_pn_46_06_49 random_corr_pn_46_07_49 random_corr_pn_46_08_49
t = 0.6 t = 0.7 t = 0.8
random_corr_pn_46_09_49 random_corr_pn_46_10_49
t = 0.9 t = 1

 

Effect of the Matrix

Angle

random_corr_pn_01_05_49 random_corr_pn_129_09_49  random_corr_pn_02_05_49
1 0 0
0 0 0
0 0 0
1 0 0
0 0 0
0 1 0
0 1 0
0 0 0
0 0 0

 

Spread

random_corr_pn_84_09_49 random_corr_pn_86_09_49 random_corr_pn_118_09_49
001
010
100
011
010
100
011
011
100

 

Effect of Iteration Count

random_corr_j_28_09_00 random_corr_j_28_09_09 random_corr_j_28_09_19
0 10 20
random_corr_j_28_09_29 random_corr_j_28_09_39 random_corr_j_28_09_49
30 40 50

 

Download

The code is included with Python Image Code (see random_image.py and random_image_demo.py).

About the author

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *