Caching VDBs, reducing size

   450   3   1
User Avatar
305 posts
Joined: June 2016
A question regarding the caching of VDB's from a smoke simulation.

Currently see well over 160 million vel voxels when I load some cached vdbs from a sim.

That combined with 5 substeps necessary in my simulation is choking my Threadripper, simulation times are simply too long.

Since all I really need are density voxels (and optionally temperature or heat) for rendering, does it make sense to delete these vel voxels just before caching?

caching_vdbs.png (221.8 KB)

User Avatar
272 posts
Joined: July 2012
If you want motion blur on the smoke, you will want that velocity field as well.
User Avatar
106 posts
Joined: July 2015
The resolution definitely doesn't have to be as high as the density though. You can reduce the velocity VDB with the VDB Resample node, set it to “Using Voxel Scale Only” and increase the voxel scale to a multitude (Voxel Scale>1).
Edited by shadesoforange - Nov. 11, 2019 18:47:11
Manuel Köster - Technical Procedural Artist @Crytek
User Avatar
4752 posts
Joined: July 2007
before converting to VDB you can use Volume Compress to compress the values and also mask out or set all volumes to 0 outside of density
also changing bit depth to 16bit on VDB (using Primitive SOP) can help
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links