FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Simulation, Artificial Life
(Moderator: REAS)
   faux fluid dynamics
« Previous topic | Next topic »

Pages: 1 2 
   Author  Topic: faux fluid dynamics  (Read 11363 times)
flight404

WWW Email
faux fluid dynamics
« on: Mar 1st, 2004, 5:19am »

Using noise() to create a field for objects to flow across.
 
http://www.flight404.com/p5/noiseDrive2/
 
SPACE BAR toggles vector lines
MOUSEPRESSED switches between 2 noiseDetails
 
 
 
http://www.flight404.com/p5/noiseDrive2a/
 
no controls... refresh for a different composition and set of parameters.
« Last Edit: Mar 1st, 2004, 6:05am by flight404 »  
arielm

WWW
Re: faux fluid dynamics
« Reply #1 on: Mar 1st, 2004, 11:44am »

i'm intrigued by the grid of white dots that emmerge in the second example: what is the story behind?
 

Ariel Malka | www.chronotext.org
flight404

WWW Email
Re: faux fluid dynamics
« Reply #2 on: Mar 1st, 2004, 4:57pm »

That grid of dots is residue from this behind-the-scenes effect...
 
http://www.flight404.com/p5/noiseDrive2aTest/
 
Decided to leave them in.
 
 
r
 
flight404

WWW Email
Re: faux fluid dynamics
« Reply #3 on: Mar 1st, 2004, 6:22pm »

www.flight404.com/p5/video/fireHair.mov
 
Prerendered goodness.  10 megs.
 
 
mKoser

WWW Email
Re: faux fluid dynamics
« Reply #4 on: Mar 1st, 2004, 7:22pm »

SWEET!!!
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
flight404

WWW Email
Re: faux fluid dynamics
« Reply #5 on: Mar 2nd, 2004, 2:34am »

lava.
 
http://www.flight404.com/p5/video/lava_short.mov
 
blur is from the Convolver class by Mario Klingemann http://incubator.quasimondo.com
 
skloopy

WWW
Re: faux fluid dynamics
« Reply #6 on: Mar 2nd, 2004, 3:27am »

Wow the lava one is so cool!
 
If you press your face up to the monitor it looks really depthy. I did kind of an interactive thing like that for http://www.motiontheory.com a long time ago. It wasn't in p5 but it's up there if you wanna see it.
 
I wonder how it would look if you didn't use background() on the firehair one..
« Last Edit: Mar 2nd, 2004, 3:36am by skloopy »  
flight404

WWW Email
Re: faux fluid dynamics
« Reply #7 on: Mar 2nd, 2004, 6:37am »

Rivulets.
 
Still need to work on the palette... way too lavender.
http://www.flight404.com/p5/video/rivulets.mov
 
UPDATE ---------------------------------------
Just put up a better looking version.
http://www.flight404.com/p5/video/rivulets2.mov
 
 
 
scloopy -
thx.  The lava one came out really nice.  need to figure out a way to keep the look of the first 30 or so frames throughout the duration of the piece.  The lava effect works really well at the beginning, but begins to fall apart quickly into an effect more like Rivulets.
 
BTW, Fire hair without a set background, inclusion of blurring code, and a color change looks a bit like this piece.
 
 
OH! And the effect on the homepage of motiontheory is quite elegant.  How did you accomplish the effect?
 
« Last Edit: Mar 2nd, 2004, 7:21am by flight404 »  
skloopy

WWW
Re: faux fluid dynamics
« Reply #8 on: Mar 2nd, 2004, 7:55am »

Hey flight404!
 
I was thinking it seems like the reason the lava degrades into something like rivulets is cuz the particles start to overlap after a while so it's drawing like 20 particles per pixel or something.. If you had some code that cheched nearby particles and moved away from them if there's overlap maybe it'd do the trick. It might be slow, but you're rendering it anyway..
 
That motion theory thing is just run by a grid of rotation values, and they randomize themselves every few frames. It's kind of a copy of this old afterdark screen saver Autumn Leaves. Each particle checks to see which section of the grid it's in and then moves depending on the four rotations around it. I found out later it's called a flow field or something.
 
I think it's the same idea except a lot lower resolution than yours!
 
Quasimondo

WWW Email
Re: faux fluid dynamics
« Reply #9 on: Mar 2nd, 2004, 1:22pm »

Flowfields are fun indeed. Here is an example, where instead of noise an image is used as the flow map:
 
http://incubator.quasimondo.com/processing/pigment_river_1.php
 

Mario Klingemann | Quasimondo | Incubator | côdeazur
flight404

WWW Email
Re: faux fluid dynamics
« Reply #10 on: Mar 2nd, 2004, 6:47pm »

Ahhh.  Flow fields.  Time to do a little research.
 
Sparks.
 
Hooked up Sonia to one of these experiments.  Again, since these are screen grabs, the audio needs to be imagined.  Louder noise, brighter color shift and more chaotic movement.
 
http://www.flight404.com/p5/video/sonia_sparks_sm.mov
 
Quasimondo

WWW Email
Re: faux fluid dynamics
« Reply #11 on: Mar 2nd, 2004, 9:19pm »

Wow - that's really cool - you can almost feel the beats.
 

Mario Klingemann | Quasimondo | Incubator | côdeazur
toxi_
Guest
Email
Re: faux fluid dynamics
« Reply #12 on: Mar 3rd, 2004, 7:24pm »

robert, ++good to see you're back on the ball!
 
love the fluids and the way you're using noise(). this idea has lots of potential and i've got to admit i already played around with your code (yet again!)
 
so i found out, you can get quite a nice "hairy" look by using longer lines for each particle and making their colour dependent on the line's current angle. i also tried to define a "highlight" angle to simulate glossy hair. basically, the closer a line's angle to this highlight/specular angle, the brighter and less saturated the line is drawn. gives a nice shine.
 
http://www.toxi.co.uk/p5/remixed/hair2.mov (2.7MB)
http://www.toxi.co.uk/p5/remixed/hair3.mov (1.9MB)
 
will post the source in a bit...
 
flight404

WWW Email
Re: faux fluid dynamics
« Reply #13 on: Mar 3rd, 2004, 9:47pm »

TOXI!!!!!!!
 
You did it to me again.    That hair looks amazing.  Spot on with the color scheme.
 
I wanna see the code!
 
r
 
 
bsr

WWW Email
Re: faux fluid dynamics
« Reply #14 on: Mar 3rd, 2004, 11:02pm »

thats frankly incredible. props to both of you.
 

http://hippocamp.net
Pages: 1 2 

« Previous topic | Next topic »