Jump to content

velocity field from fluid to texture.


anupamd

Recommended Posts

I am trying to write the velocities of a simulated fluid to a 2d texture. Obviously I only care about a 2d slice of a 3d sim.

The method I am using right now is to advect particles into my fluid, then attribute transfer the velocity of the particles to point color on a flat piece of geo that is highly subdivided. Then render that geo out.

The more elegant solution which I do not know how to do would be to sim the fluid, write to a pointcloud. Then read the velocity attribute from the fluid pointcloud in a shader. But I have done no work with pointclouds and would love to see an example file of how that works in the context of a shader.

Thanks for the advice...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...