I wrote an article on the basics of Flow Fields in the context of Generative Art (no AI stuff, just for loops and if cases). It has some fun interactive illustrations and code samples for anyone looking to get into the field.
What I've learned about flow fields so far
11–20 of 47 posts
Re: What I've learned about flow fields so far
#12Re: What I've learned about flow fields so far
#13Nice! Could this be loosely related to neural cellular automata? https://youtu.be/3H79ZcBuw4M?si=-B7RRoz2RdVgkz6p
I suspect you could encode (some) flow fields in neural cellular automata though. "Some" because "flow fields" aren't too strictly defined I'd say, so some of the more creative variations might not quite fit within the constraints of neural cellular automata.
So I guess it depends on the angle from which you approach it. Probably not from the "default" angles that most people use for either topic. OTOH finding an unexpected connection by looking at both in a non-obvious way might be fruitful though!
Re: What I've learned about flow fields so far
#14Nice! Playing around with the widget under the section "Experimenting with lines" I'm reminded of Bret Victor's Inventing on Principle talk [0] (an absolute must watch, if anyone hasn't yet). In particular, changing the smoothness reveals a sort of scaling effect that I'd probably never know about if not playing around with sliders and having it update in real time rather than setting individual values. Very interest…
Re: What I've learned about flow fields so far
#15Re: What I've learned about flow fields so far
#16For collision detection using screen space might be easier, i.e. instead of looking for collisions between lines one wants to draw analytically, just try to draw them and check if all the pixels are background pixels.
I'll try to make an edit to the article where I try it out when I'm off work.
Thanks for the tip!
Re: What I've learned about flow fields so far
#17This is awesome! I noticed on the 'Experimenting with lines' section, when smoothness is low, warp is high and length is high, that the lines end up mostly coalescing into big roads. It reminded me of ants forming paths, but it's interesting that this required no communication between the lines. Is this a particular feature of the noise function or does it always do that?
I don't know it that mess of a paragraph was understandable, but hopefully it answers your question!
Re: What I've learned about flow fields so far
#18Re: What I've learned about flow fields so far
#19For collision detection using screen space might be easier, i.e. instead of looking for collisions between lines one wants to draw analytically, just try to draw them and check if all the pixels are background pixels.
Great point! Unfortunately I do most of these generative art experiments as SVGs to feed to an axidraw machine ( https://shop.evilmadscientist.com/productsmenu/846 ), but gut feeling says that in these canvas examples where sampling screen colors is possible your suggested method would be faster, and much more so for smaller lines and if the canvas is big. I'll try to make an edit to the article where I try it out wh…
[1] https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometry...
[2] https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometry...
Re: What I've learned about flow fields so far
#20As a generative artist, I experimented with flow fields for a while but found them rather limited, especially given how many people use them. It's hard to distinguish yourself if you do what everyone else is doing.