Hello everyone,
We are using vdb files with points to handle our instances. We need to store some custom information for the file, and we are using the metadata in the .vdb file for that purpose.
Does anybody know if there's a way to write the metadata inside houdini?
We use custom C++ code to generate the .vdb file, but it will be much more useful if we could do it directly from houdini.
Thanks a lot!
Diego
OpenVDB metadata writing in Houdini
1342 1 0- diegogarces
- Member
- 2 posts
- Joined: May 2014
- Offline
- jbudsberg
- Member
- 90 posts
- Joined: Aug. 2010
- Offline
hey Diego, primitive attributes should be transferred to per-grid metadata. I checked and it seems to work in both the native ROP as well as OpenVDB Write/ExportDriver.
hope that helps!
-Jeff
hope that helps!
-Jeff
% openvdb_print /tmp/foo.vdb -metadata creator: Houdini/SOP_OpenVDB_Write PlatonicSolid float (-12,-12,-12)->(12,12,12) 25x25x25 7.67KVox 2.33MB background: 0.3 voxel size: 0.1 index to world: [0.1, 0, 0, 0] [0, 0.1, 0, 0] [0, 0, 0.1, 0] [0, 0, 0, 1] class: level set custom_float: 42 custom_int: 23 custom_string: bar custom_vetor: [2.5, 1.2, 23.4] file_bbox_max: [12, 12, 12] file_bbox_min: [-12, -12, -12] file_compression: blosc + active values file_mem_bytes: 2554568 file_voxel_count: 7674 is_local_space: false is_saved_as_half_float: false name: PlatonicSolid value_type: float vector_type: invariant
Edited by jbudsberg - June 27, 2019 14:46:13
-
- Quick Links