Deleting part of a fog volume.

   4055   4   0
User Avatar
Member
56 posts
Joined: March 2022
Offline
Hello,

I'm wondering if there is a way to delete part of a fog volume like you can with regular geo or with a vdb combine. I have this smoke that is colliding with an imaginary back wall, it's helping give a nice shape to the smoke for the effect that I'm after. As it's sliding down the back wall I'm getting some funny artifacts that I'd like to get rid of. Ideally I'd like to create a very thin region with a box that can delete those areas right at the back.

See artifacts here. Hey are extra noticeable in motion.



Here is the info of the object.




I've searched for a resolution to this but have not found anything. I'm open to any suggestions and resimulating if I need to.

Cheers!
Edited by R_Stewart - July 22, 2022 04:13:46

Attachments:
Smoke.JPG (176.0 KB)
Smoke_Info.JPG (85.0 KB)

User Avatar
Member
8 posts
Joined: June 2022
Offline
Hey,

I'm not sure if I understand your question correctly, but if you want to create a kill box in your scene to kill parts of your fog volume, I'd set up an SDF kill box, and run a couple of lines of vex to make the density of your fog volume 0 where the SDF is <= 0. I'll attach a picture showing the results and the vex code. (The VDB from poly node on the right should have the name "make_sdf".)



Hope this is what you were looking for.
Edited by madorjan - July 23, 2022 03:44:04

Attachments:
houdini_Ozi4WeC7iC.png (553.8 KB)

User Avatar
Member
56 posts
Joined: March 2022
Offline
Yes that did the trick thank you!
User Avatar
Member
23 posts
Joined: Aug. 2018
Offline
This does not reduce the size of the fog vdb if i export to say blender right? the volume is all there just the density set to 0 and we can't see it. Like setting @Alpha on a mesh in houdini.

so this is not "Delete" rather "hide"?
Edited by FJSam - March 25, 2026 03:24:36
User Avatar
Member
9499 posts
Joined: July 2007
Online
FJSam
This does not reduce the size of the fog vdb if i export to say blender right? the volume is all there just the density set to 0 and we can't see it. Like setting @Alpha on a mesh in houdini.

so this is not "Delete" rather "hide"?
yes, but all you need to do to then "delete" empty voxels (or within tolerance) is append VDB Activate SOP set to Deactivate
Edited by tamte - March 25, 2026 16:04:50
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links