Jump to content

vdb mesh culling?


Recommended Posts

Yes, when you convert it to polygons you can plug another vdb into the third input to mask out the areas you want to keep/delete. 

 

The vdbcombine node can also be used to do boolean operators on vdbs. Although, this does not achieve the effect you are asking for. Hope it helps! :)

Link to comment
Share on other sites

  • 2 weeks later...

I prefer to do this in an attributeVop after it's been meshed. Place a "remove point" node inside an If/Then block, and make a condition like "If ty <  -.1" then all the points with a y value below that will be removed. If you're doing an ocean shot, and need to trim right/left/front/back edges as well, you can use a similar technique. The operation is pretty quick. 

 

Also be sure to wire the ptnum value into the if/then block, and hook it up to the remove point node. 

Edited by LukeLetellier
Link to comment
Share on other sites

I ended up using the third input mask technique with a box, since I'm using it to test settings before output.

Easiest way for me, but I'm going to try out the other tricks as well, to understand them better.

Thanks again guys.

Link to comment
Share on other sites

You can use reference VDB to activate from. Simply wire VDB by which you want to mask (like camera or clipping box) to second input of VDBactivate and set it to reference.

 

 

Anyone kind enough to make an example using this method? It is a bit  embarrassing but  I didn't manage to make it work either.

 

Thanks.

 

Edit: Never mind, I got it.

post-9497-0-80009400-1430996078_thumb.jp

Edited by dpap
Link to comment
Share on other sites

Maybe I did not understand your question fully, but why not just delete by expression $TY<1?

Or group with bounding object and delete grouped points?

Or color transfer attribute from geo and delete $CR==1?

 

Since points get deleted before the meshing process, there is no unnecessary calculation for those unwanted points.

Link to comment
Share on other sites

Cool thanks. Yeah I'm super new to Houdini so didn't even know those were options.

 

The input mask works well, but I noticed if I turn it off it draws the full mush very quickly, making me wonder if its calculating the full cache, and then masking afterward.

 

Will def check out those tips, thanks.

Link to comment
Share on other sites

 

Or group with bounding object and delete grouped points?

 

Since points get deleted before the meshing process, there is no unnecessary calculation for those unwanted points.

 

 

I realised afterwards that there's a better way but when I came back to repost I realised Boon spotted it first   :)

 

Here's an example

Selective Particle Meshing.hip

post-9497-0-03084800-1431009975_thumb.jp

Link to comment
Share on other sites

wow, cool. Nice techniques.

The fact that I even start to understand some of whats happening in the nodes is amazing heh.

 

Not the initial question, but just out of curiosity, with the point delete method if you wanted to animate the mask object to reveal the inverse mesh, that wouldn't work right?

Edited by microdot
Link to comment
Share on other sites

Ah, I'm guessing I can't open these since I'm only using the apprentice version?

 

I'm playing with the delete points version based on the pic, but not sure how to set the bounding object.

 

 -Also dumb question, not that I've cached the sim as a .bgeo, is it seen as particles or geo?

I assume particles since vdbfromparticlefluid still worked?

Edited by microdot
Link to comment
Share on other sites

I'm playing with the delete points version based on the pic, but not sure how to set the bounding object.

1. plug a bounding geo into the 2nd input of a group node.

2. on the group node, go to bounding tab > enable > bounding object. Make sure to specify primitive / points selection.

 

 

 -Also dumb question, not that I've cached the sim as a .bgeo, is it seen as particles or geo?

I assume particles since vdbfromparticlefluid still worked?

You can cache practically everything as .bgeo format, as long as they belong to the sops level.

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