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
3
3
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
3
2
u/ostiDeCalisse Jan 07 '22
Love this, it reminds me of some frost formations on some windows in my old house.
2
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.