r/processing • • Jan 07 '22

057.01: Ever Upward.

191 Upvotes

17 comments sorted by

4

u/BennyPendentes Jan 08 '22

Since a few people have asked the same questions, I'm answering them once here:

This is a reaction/diffusion system, using the Gray-Scott model from Karl Sims' excellent tutorial, which is where pretty much everyone starts out, even Daniel Shiffman/Coding Train. The absolute best version I've seen is Thomas Diewald's WEBGL2 implementation, but as a noob programmer I had to take mostly just inspiration from his work, as a lot of what he is doing didn't make sense to me (because he does a lot of direct WEBGL programming, doing things that p5.js usually does behind the scenes, which didn't mesh well with some of the things I was doing like adding a chromatic aberration filter or recording the frames of the video using ccapture.js), due to deficits in my coding skills, not his.

Ultimately these systems go back to Alan Turing's 1952 paper on The Chemical Basis of Morphogenesis, in which he observes that many of the patterns found on fish or in the stripes and spots in fur could be the result of the reaction and diffusion of as few as two hormones or chemicals. This was just a mathematical quirk to him, something to think about on a Sunday evening. It would take the arrival of computers - inspired by yet another of Turing's papers - for the true complexity and beauty of these equations to become accessible to the rest of us. The patterns created by these systems are sometimes called 'Turing patterns', but there are a couple of other systems that also produce Turing or 'Turing-like' patterns.

2

u/LadiDongLegs Jan 09 '22

Nicethanks

1

u/WikiSummarizerBot Jan 08 '22

Reaction–diffusion system

Reaction–diffusion systems are mathematical models which correspond to several physical phenomena. The most common is the change in space and time of the concentration of one or more chemical substances: local chemical reactions in which the substances are transformed into each other, and diffusion which causes the substances to spread out over a surface in space. Reaction–diffusion systems are naturally applied in chemistry. However, the system can also describe dynamical processes of non-chemical nature.

The Chemical Basis of Morphogenesis

"The Chemical Basis of Morphogenesis" is an article that the English mathematician Alan Turing wrote in 1952. It describes how patterns in nature, such as stripes and spirals, can arise naturally from a homogeneous, uniform state. The theory, which can be called a reaction–diffusion theory of morphogenesis, has become a basic model in theoretical biology. Such patterns have come to be known as Turing patterns.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

2

u/otterfamily Jan 07 '22

beautiful, i love it. Is this running as a chain of shaders?

1

u/BennyPendentes Jan 09 '22

Two shaders, one doing the calculations (with the output of one frame becoming the input of the next) and one to colorize it.

2

u/[deleted] Jan 08 '22

Love it. How Is called?

3

u/BennyPendentes Jan 08 '22

Please see my comment above.

3

u/[deleted] Jan 08 '22

Thanks!

3

u/PseudoPresent Jan 07 '22

mesmerizing

3

u/tsloa Jan 07 '22

Damn that's cool, very mesmerising.

Looks oddly familiar, what is this process called? or is it an original concept?

3

u/jeykech Jan 08 '22

Reaction-diffusion , and this looks like grey-Scott model

2

u/tsloa Jan 08 '22

Ahh thats ringing a bell.

Yeah I'm sure I've seen that from the coding train

3

u/uninterestingly Jan 08 '22

Slime mould algorithm?

2

u/ostiDeCalisse Jan 07 '22

Love this, it reminds me of some frost formations on some windows in my old house.

2

u/drth4 Jan 08 '22

I think it's called Turing Patterns, equations are on Wikipedia