Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Mussi

Two different VDB's effecting one main VDB body

Hello all, I'm on the Houdini special ed. bus after years in Maya. Attached is not pretty but after two days I've rolled all attempts back to a baseline. Illustrated I've got VDB tubes running through a body and VDB spheres denting the same VDB body. Simply I can't get both spheres and tubes to effect the body at once and control their smoothness independently. One or the other works perfectly on the body, not both at once. The end result is convertVDB to poly. Probably over complicating this, any guidance is appreciated. Thanks! <_<

 

odforce_help_desk_a.jpg

Share this post


Link to post
Share on other sites

Can you upload your file - if you 'freeze' the file node that geo will come with the .hip, if that's important

Share this post


Link to post
Share on other sites

your 'vdbcombine5_difference1' is in error - what is meant to be plugged into the first input?

Share this post


Link to post
Share on other sites

Plugging in vdbfrompolygons9 from the body to vdbcombine5_difference1 will do it but that then creates 2 bodies. I've then have two bodies running in parallel in the spheres and tubes column. The only thing that comes to mind is adding and connecting a single vdbcombine (vdbintersect) from each union. Doesn't seem right though. I've tried adding a merge at the bottom after smoothing before converting to polygons but that give me two bodies overlapping.

Share this post


Link to post
Share on other sites

Just seems like you want to use the mask input of the VDB Smooth. Which part do you want smoothed?

Share this post


Link to post
Share on other sites

I'm looking to control the smoothing of the spheres as a group and tubes as a group separately while effecting the 1 body. Specifically filter voxel radius and iterations parameters.  One smoothing node for each will work. Admittedly I'm not familiar with mask input.

Share this post


Link to post
Share on other sites

Hey Marty, Just a follow up. This wasn't an easy answer as first thought. It's ugly and probably the most inefficient way but it works with full control. Gotta clean up this mess a little. Thanks for the assist earlier. B)Working.jpg

Share this post


Link to post
Share on other sites

It's hard to tell from these pics and what you've told us ... But why can't you just smooth the spheres and tubes separately like in your first image, and then use vdbcombine to "merge" the spheres and tubes together? Only use Convert VDB *after* you've combined them.

Share this post


Link to post
Share on other sites

Hey Edward. I think that would work if you wanted to effect all the spheres and tubes as a whole. Looking back, controlling individual smooth didn't make much sense, it was the Reshape controls.  The biggest issue was getting over the idea that combine isn't really a merge when working with VDB's (merge happens earlier in the tree with geometry and accepts up to 9999 inputs). It only accepts 1 input each A & B, which dragged this out a lot more especially when you want to control 11 ReShapes individually while also not influencing neighboring VDB's such as the tubes for example.  I may be wrong but this was all trial/error/learning.

Edited by Mussi

Share this post


Link to post
Share on other sites

VDB Combine can used to take the union of all merged VDB primitives from the second input, if you set the operation to "Flatten All B into A". So you can just use Merge for all your VDB primitives and pipe them into the second input of VDB Combine. For the first input, you can just use an empty VDB of the appropriate voxel size created using the VDB SOP.

1 person likes this

Share this post


Link to post
Share on other sites

This is great info Edward......it will go a long way in untangling this web. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now