Search the Community
Showing results for tags 'flow map'.
-
- 6 replies
-
- vector field
- flow map
-
(and 2 more)
Tagged with:
-
Hello everyone, I've seen a couple of post about this but not exactly what I'm looking for. A little background on what I'm trying to do. I'm trying to export a 2d image of a fluid to animate the UV coordinate of an texture in a game material ... not super clear I know, these guys might explain it better : http://www.valvesoft...s_waterflow.pdf This way I can add detailed motion to a sprite with only 2 textures, and not use ginormous sequence of animation. But in Valve instance they "paint" their texture to add flow motion to a river or pond. I would like to generate that image procedurally with a fluid for FX work. right now here is what I do: - have a fluid animation that I like -cache it -DOPI/O all the info I need back into SOP -use a Point VOP -use the velocity info to color points on a grid -render that grid but my problem is that the velocity field is (naturally) all over the fluid container, so I was wondering how can I use my density field as a "mask" for my velocity? In VOP, saying something like where my density is zero, set my velocity to zero, ... make any sense? In the 2 images attached you can see how it works. when a pixel is 50% red, 50% green and 0% blue no motion. 100% red, 0% in G and B pixel are moving south west ...etc. The flow test images show you what I have, so you can see that I have no motion (R=50%, G=50%, B=0)outside the container, but inside I have motion all over.... And last an image of the density field.... where I want my motion. so can I use density to "mask" out my velocity? any help or question would be really appreciated. flowmap_test.hip