Sticky Fluids
by Ashish Rastogi, India


Step 1: Create a sphere, pflow above the sphere, gravity, deflector on the ground, UDeflector in the scene.


Step 2: In UDeflector pick object the Sphere.

Step 3: Press 6 to open the particle view and select “Birth” and change the “Emit Stop” value to 50 and amount to 2000

Step 4:
Add a “Force” from the depot and add “Gravity” in the list.

Step 5:
Add “Collision test” from depot and add both the deflectors in the list. Change the Test True If Particles Collides “Speed” to Stop. You will notice that now particles are start sticking to the sphere and not even slide.


Step 6: Create a new “Speed by surface” event and link to collision test. Change the speed to around 50 and in drop down select “Control Speed Continuously” and change direction to “Parallel to surface”. Now you will see particles not only sticking but also sliding on the sphere.


Step 7: Now the main problem is particles not leaving the sphere when reached the end of the sphere and continue to slide from bottom to top. So, the solution is simple, add an “Age test” event and enter the frame number in the test value.


Step 8: Now create another “Force event”, add gravity in the list and link to the “Age Test” so particles start dropping on the defined frame. Check out the sceenshot for whole scene particle view.


And if you like to add a power of glu3d with pflow then add a glu3dsource from depot and Converts the PFlow particles to a Glu3D source file format that you can use to run a fluid simulation. Once you have your setup click the play button and the PFlow particles will be saved to a cache file sequence readable by Glu3D.


Page 1 | Page 2

 
 
 
  Copyright © 2005-2007. All Rights Reserved