Jump to content

How to sample a merged VDB volume individually?


Recommended Posts

Hi,

I have a merged VDB vel volume and I am wondering if there is a way to only sample or get gradient of an individual volume like vel.x?

Do I have to split it into individual volumes to be able to do this?

 

Thanks :)

Link to comment
Share on other sites

to sample vector volume you can use volumesamplev() function

so to get just vel.x sample it would be for example volumesamplev(1, 'vel', @P)[0]

but to get gradient of individual vector volume component I guess you will need to split it to individual volumes and then use volumegradient() function

  • Like 1
Link to comment
Share on other sites

Thanks Edward. I want to use volumegradient for vel.x. Is this possible? I guess for volumesample there is no issue, but volumegradient for vel.x requires me to only get the single volume inside the merged VDB?

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