Reactive Diffusion Component

This is something I’ve been playing with for a little while, and just got it looking more like the pieces it is derived from.

It is basically a port made around some pixel shader code for a 2D reactive diffusion system simulation. The results can vary tremendously depending on the parameters and input images. I would start by just playing with the f and k variables. The trick is to be very subtle with the parameters (the UI value displays currently don’t show past 2 decimal poionts, but the values are changing very minutely, need to fix that).

Toxi has done a pretty great write up of the phenomenon here in describing the system for his Processing library:

[url]http://toxiclibs.org/2010/02/simutils-grayscott/[/url]

I haven’t gotten it to produce quite the range shown in the fantastic image on that page, definitely needs some further tweaking.

I love this sort of cellular automata stuff because it gives me something to pull from that isn’t a static loop.

Hope you enjoy, please let me know if you have suggestions or problems!

Peter
RDiff_10-0722.tox (13.9 KB)

Peter,

fun! Thanks for posting this and getting it all set up. really cool. Here is my derivative… adding Speed, Directx (control flow direction in X) and Directyy (control flow direction in Y) and minimizing the interface size.

The output pixel resolution is now linked to Input2 resolution.

Also 100% ATI safe, well almost :slight_smile: , just note that saving a file with speed greater than 1 is going to crash you (ATI only issue). Plays perfectly fine, just saving and restarting is the problem(again ATI only issue).

Jeffers
Reactive_Diffusion.tox (12 KB)

Awesome Jeffers!

I dig the addition of some real adjective/definitions to the parameters. Also your switching of one of the laplacian components to make the whole thing go in one one direction is sweet. I guess one could add a whole other set of parameters to switch the general direction of the flow by multiplying those values by -1 or not.

Thanks for the improvements!

Peter

edit
just so people know, Robert Hodgin has been pimping this stuff for a little while now and has some pretty awesome new tests up on vimeo (Flight404 is his username). Jeffers’s version takes on the same vibe as one kind of like this one:

[url]http://vimeo.com/14134291[/url]

Next steps definitely include combining this with some deformation shaders, some cool lighting shaders and using color lookups to get something other than just the red/green mix!

Oh yeah, might as well put this up too :slight_smile:

Just one simple setup for kicks and a fun distraction. Just putting two overlapping and opposite phasing ramps into the parameter input and the overlay input gives some super fun stuff to stare at for a while!

[latest build, hope its cool!, runs on my 3 year old MBP still!]
RDiff_PS_fun_082610.tox (12.4 KB)

Hey guys,
somewhat new to all this

how do I use the .tox files? What should I be using as their inputs?

Hey,

you can just drag the .tox file into a TouchDesigner Session or even just open the .tox file by double clicking it.

derivativeinc.com/wiki/index.php?title=Tox

cheers
Markus