I'm having trouble importing files generated from the c++ library into Houdini. Every time I try I get:
Load failure: RuntimeError: Expected to decompress 656 bytes, got -1 bytes
with some variation on the expected bytes depending on the file/model.
This happens even if I take a .vdb file generated from Houdini, write the grids without modification into a new file and attempt to reimport. The one thing different I have noticed between the original and the new file is that the metadata type “file_mem_bytes” is drastically reduced. However, using the vdb_render program that comes with the OpenVDB distribution I can see that there is absolutely no difference in the models when rendered. Is there something in the way I'm saving files that is wrong? Any help would be appreciated.
For extra clarification, I am running the checkers provided by openvdb::tools on all the grids I read and no clues were offered there. Also, I am using Houdini FX Version 16.0.557 on Windows 10.
Issue importing OpenVDB files generated from the OpenVDB 4.0.1 c++ library
4003 7 2- Elliot Stronge
- Member
- 10 posts
- Joined: Feb. 2016
- Offline
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
Houdini 16.0 uses OpenVDB 3.3.0, (according to the licenses [sidefx.com] page), which most likely does not support reading VDB files saved by OpenVDB 4.0.1. Is there an option in OpenVDB 4.0.1 to save in the previous VDB format?
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
- Elliot Stronge
- Member
- 10 posts
- Joined: Feb. 2016
- Offline
- edward
- Member
- 7709 posts
- Joined: July 2005
- Online
- Elliot Stronge
- Member
- 10 posts
- Joined: Feb. 2016
- Offline
At this point I've tried a lot of things with no success. I compiled my library with OPENVDB_3_ABI_COMPATIBLE set yet Houdini still can't open the files. Trying to build the Houdini OpenVDB 4.0.1 tools for Windows is just a nightmare, so I don't really know where to go from here. Hopefully if Houdini ever uses OpenVDB 4 my issue gets fixed. In the meantime I'll keep my eye out for any advice.
- edward
- Member
- 7709 posts
- Joined: July 2005
- Online
- danrbailey
- Member
- 1 posts
- Joined: May 2014
- Offline
Actually, the OpenVDB file format is identical between 3.3.0 and 4.0.1 which means you can safely read and write Point Data Grids in both, it's just the ABI that's different. (However, you wouldn't be able to read Point Data Grids in 3.2.0 or earlier of course as this is a new feature to 3.3.0/4.0.0.)
I'd suggest using the libraries shipped with Houdini to build OpenVDB if you're not already. Blosc is the main one that can cause problems here as SideFX currently uses 1.5.0, but the latest available version from GitHub is 1.11.2.
I'd suggest using the libraries shipped with Houdini to build OpenVDB if you're not already. Blosc is the main one that can cause problems here as SideFX currently uses 1.5.0, but the latest available version from GitHub is 1.11.2.
- edward
- Member
- 7709 posts
- Joined: July 2005
- Online
-
- Quick Links