I am trying to adapt the GLSL Reaction Diffusion from a Cinder sample I found here: libcinder.org/.
I’m newish to GLSL but I was able to clean up the code so that I don’t have any errors. Unfortunately, I am not seeing the effect I expected. Adjusting the values on the shader change the result but I am not getting the feed back loop that I would hope to see with the Reactive Diffusion algorithm. If any one has an idea about how to get this working, I would really appreciate it.
2 things I noticed are that your dx and dy values seem very high. Since it’s normalized coordinates your are looking very far away from the pixel for the neighbour samplers.
Also for feedback I think this should be done in a GLSL TOP, using the Feedback TOP to give yourself the feedback loop you are looking for. Looking at videos of this effect I’m pretty sure that will get you the result you want.
Thanks for the reply. So, I guess then I should be animating the dx and dy values by small amounts? I would think that if those values are set that delta should get added each time the loop feeds back. Right now I can get something to work by animating the dx/dy values but it doesn’t seem right to me.
Without a Feedback TOP you aren’t doing anything cumulative. You are taking the input texture and applying the operations to it, giving an output. Next frame you are taking the same input texture and applying the same operation, giving the same results.
Here is the cleaned up package and it should be a pretty good starting point for anyone else.I’ve noticed this network and others with GLSL run very fast and then hang. Is this a common issue? I recently updated from XP to Win 7. I think all my drivers are up to date, so I’m not sure what’s up.