Jump to content

Streaking values into newly activated VDB voxels


tjeeds

Recommended Posts

I am building a growth tool that utilizes VDB grids, the basic idea is that each iteration rebuilds the surface field which is then used to activate other control fields (populated by attributes on the original mesh/particles). A simplified version of this is contained in the attached hip file. As you progress in time the scale field expands but the values are static.

What I'm missing is a way to set the values of the newly activated voxels. Ideally some sort of border condition like streak could set the new voxels to the value of the nearest previously activated voxels. In the VDB Activate node you can only set the value of all voxels or none of them. Is there a method to accomplish this that I might have missed?

The only other option I can think of is to convert each control field to a point cloud and then pull the nearest value from that. This would be ungainly to manage with multiple fields of different data types so I'm hoping there's a more elegant way. Any ideas?

VDB_Activation_streaking.hip

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...