Tilling Reaction Diffusion

Hi all, I’ve recently learned about reaction diffusion, and want to create a set of images that can be tiled on all four sides. I read a paper entitled “Designing the Desert” (https://www.researchgate.net/publication/296192011_Designing_the_Desert)

which showcases how to do so. However, I am having troubles understanding the terminologies of what is being said:

“the first step in the process was to generate an initial base pattern. The boundary of this first pattern
was stored in order to then be used as a part of the initial conditions of the rest of the
ripple tile simulations, making all the generated patterns match.”

“What was stored from the initial simulation was actually not the generated
grey level of the pattern image, but the gradients of the intensity levels (i.e. the gradients of the relative amount of the chemical substances simulated, in the original
interpretation of the equation). In the final simulation process, by weighting the gradients from the border conditions with a standard unbiased simulation, i.e. without
border conditions, a satisfying flow of the ripples could be achieved, without any
kinks or discontinuities.”

If I understand correctly, I have to store the gradients. What does this mean?

1 Like


As a reference, this is what I mean^^

1 Like

Hello @domini8888,

Take a look at this tutorial:
https://processing.org/tutorials/pixels

I used a link to the sand image here:
https://www.cs.mcgill.ca/~rwest/wikispeedia/wpcd/wp/s/Sand.htm

Along with this code which is linked in the tutorial:
http://learningprocessing.com/examples/chp15/example-15-10-ThresholdDestinationImage

source = loadImage("https://www.cs.mcgill.ca/~rwest/wikispeedia/wpcd/images/117/11724.jpg");

And was able to generate this:

image

You will have to change the brightness threshold in the code.

:)