sheffdog
Hello, 

I'm trying to extract Fluid velocity into a texture map but I'm running into issues.

I'm using a fluidTexture2D which will not connect with a fluidAttrToArray node as far as I can see. 

So, I've tried using an arrayToTexture2D   driven by the fluid's  fieldDataVelocity attribute.

This may be workable, but I'm missing a step since the plane gets textured as flickering dots on a grid.

Any ideas to fix this from the grand poombas of Soup?



velocity_broken.JPG 
Reply 0 0
plarson
For the arrayToTexture node, you'll want to use a point node's outSharedMapPP -> arrayToTexture.inMapPP

The fluidShape needs the same resolution as the geo. And the fluidAttributeToArray needs position ticked to get velocityPV out(or just use fieldDataVelocity).

Here's a scene with what I think you have in mind.
ma fluid2d_veloToTexture_1.0.ma     

velo2txt.JPG
Reply 0 0
sheffdog
Thanks so much plars, this worked perfectly! I was so determined to use the fluid texture2d that I didn't consider using the fluid3d with a very narrow depth. Also the point node was key in mapping it to the ArrayToTexture2d node.

Cheers!
Reply 0 0
Reply