Jump to content
wilson99

Delete part of Volume Cache

Recommended Posts

Hi guys,

Any ideas on how to delete part of a volume cache using some soft of a bbox?
 

Image below. Using the box to delete that part of the cached volume.

 

Thanks

volume_delete.jpg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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 4

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

×