magneto Posted May 9, 2016 Share Posted May 9, 2016 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 Quote Link to comment Share on other sites More sharing options...
edward Posted May 9, 2016 Share Posted May 9, 2016 Just sample the volume as usual and ignore the other components. 1 Quote Link to comment Share on other sites More sharing options...
anim Posted May 9, 2016 Share Posted May 9, 2016 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 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted May 9, 2016 Author Share Posted May 9, 2016 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.