Jump to content

Delete part of Volume Cache


wilson99

Recommended Posts

that could produce negative values, no?

 

i would do a volume wrangle:

 

	f@density *= 1-volumesample(1,0,v@P);
	

convert your box into a houdini volume (NOT A VDB) and plug it into input 2.  plug your smoke volume into input 1.

Edited by fathom
  • Like 2
Link to comment
Share on other sites

It could but, for something like the example he was showing he would be fine. That said, volume wrangle would be much faster and would be a much better solution.

-Ryan

Edit: Good to see you around Miles!

Edited by rbowden
Link to comment
Share on other sites

There is Volume Resize SOP for dense volumes that is really fast. You can fetch polygon bounding box to its second input to keep only volumes inside that box.

There is also VDB Clip for Sparse VDBs that does similar thing.

Wrangle method is good if you don't want to change your original volume's bbox.

volume_clip.PNG

  • Like 6
  • Thanks 1
Link to comment
Share on other sites

  • 2 years later...

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