typedef openvdb::tree::Tree4<half, 5, 4, 3>::Type HalfTree;
typedef openvdb::Grid<HalfTree>::Type HalfGrid;
You can also register a HalfMetadata type if you'd like.
If you intend to save the grid to a file and read it back, then you should also register the grid, before reading:HalfGrid::registerGrid();
grid.setSaveFloatAsHalf(true);Houdini doesn't have much support for half-precision volumes unfortunately. Are you rendering with Mantra? Are you sure that the file size is causing a memory bottleneck?