JJ FX Posted March 24, 2017 Share Posted March 24, 2017 Hi, How can I merge multiple VDBs? Like VDB Combine (SDF Union). Because when I usre just simple merge and then I convert to poly, all VDB objects have separate meshes. And I want only one mesh. Quote Link to comment Share on other sites More sharing options...
cudarsjanis Posted March 24, 2017 Share Posted March 24, 2017 VDB combine does exactly what you need. check if you are working with fog volumes (density or whatever you have called them) Quote Link to comment Share on other sites More sharing options...
JJ FX Posted March 24, 2017 Author Share Posted March 24, 2017 (edited) Yeah, but if i have 30 different VDB objects? VDB combine has ony 2 inputs right now im doing: convert all VDBs to poly and then back to VDB. Can I somehow merge all vdbs into one without the conversion to poly? Edited March 24, 2017 by JJ FX Quote Link to comment Share on other sites More sharing options...
edward Posted March 24, 2017 Share Posted March 24, 2017 Probably need to do it in a loop then. Quote Link to comment Share on other sites More sharing options...
cudarsjanis Posted March 25, 2017 Share Posted March 25, 2017 14 hours ago, JJ FX said: Yeah, but if i have 30 different VDB objects? VDB combine has ony 2 inputs right now im doing: convert all VDBs to poly and then back to VDB. Can I somehow merge all vdbs into one without the conversion to poly? hmm 30 vdbs. That's an interesting problem there. Probably for each is the way to go, but how to properly set it up then. or volume wrangle/vop. I don't have time now to have a look at it, but I'm curious how to do it now. Quote Link to comment Share on other sites More sharing options...
Atom Posted March 25, 2017 Share Posted March 25, 2017 You just use multiple VDB Combine nodes, kind of like compositing. Foreground over background. 15 nodes is not really a lot in a network. Quote Link to comment Share on other sites More sharing options...
takanori Posted March 29, 2017 Share Posted March 29, 2017 Hi Try to use this shelf tool to make a chain of multiple VDB combine nodes by selecting & clicking once. Select multiple VDBs. Execute this script. selected_nodes = hou.selectedNodes() vdbcombines = [] for x, node in enumerate(selected_nodes): if x < len(selected_nodes)-1: vdbcombine = node.createOutputNode('vdbcombine') vdbcombine.setNextInput(selected_nodes[x+1]) vdbcombine.setParms({'operation':'add'}) vdbcombines.append(vdbcombine) for x, vdbcombine in enumerate(vdbcombines): if x < len(vdbcombines)-1: vdbcombine.setInput(1, vdbcombines[x+1]) 1 Quote Link to comment Share on other sites More sharing options...
Skybar Posted March 29, 2017 Share Posted March 29, 2017 (edited) No need for loops and stuff. Take one VDB and put it in the first input, merge all the others and put it in the second input. On the VDB Combine choose "Flatten All B into A" and choose the appropriate operation, like SDF Union for sdfs. Edited March 29, 2017 by Skybar 6 1 Quote Link to comment Share on other sites More sharing options...
takanori Posted March 29, 2017 Share Posted March 29, 2017 (edited) @Skybar Yes! This is much better haha I was going stupid way, thanks! Edited March 29, 2017 by takanori Quote Link to comment Share on other sites More sharing options...
nAgApAvAn Posted March 5, 2022 Share Posted March 5, 2022 (edited) A new node in 19.0, I am currently using is vdb merge, which is very useful after vdb segmentation to combining back( not supports vector combines as of now) https://www.sidefx.com/docs/houdini/nodes/sop/vdbmerge.html Edited March 5, 2022 by nAgApAvAn 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.