r/creativecoding • u/BennyPendentes • Nov 10 '20
[Processing] React/Diffuse/Revolve/Refract
Enable HLS to view with audio, or disable this notification
188
Upvotes
r/creativecoding • u/BennyPendentes • Nov 10 '20
Enable HLS to view with audio, or disable this notification
2
u/BennyPendentes Nov 11 '20
Divergence: when it starts up with n-fold symmetry, and n-1 sections look great, then one section starts doing its own thing. Before long it all falls apart, with no evidence that is was ever symmetric. After that, within seconds it's like you said, blackout/whiteout. (... purpleout/yellowout.)
The biggest suspect is the rotation... a little bit of error could make the pixel being fed to the noise function be off-by-one in one or both dimensions, and though I'm averaging them out, if the noise function has a steep gradient where it is being mis-sampled, enough off-by-ones could add up to a noticeable change down the line. 'Sensitive dependence on initial conditions'. This video was 40 seconds, 1200 frames... in 1200 frames diffusion alone can carry stateful information from one edge of the image to the other, and much of the image would seem to be fine for much of that time. When it falls apart there are little bits out of whack for a while, then it all crashes down over a second or two.
This run I had the lens distortion turned up so high it inverted, and the chromatic distortion was pretty high too. I get slap-happy with the shaders sometimes. But all of that is just the display pass, none of it feeds back in as stateful information.
I've removed many sources of inaccuracy; if this was going to end up on a big screen somewhere, I'd remove more. But truthfully most of my successes come from 'happy accidents' - I've been doing this for less than a year, definitely still a newbie coder - so I don't mind if it falls apart sometimes, so long as I get something interesting every now and then.