Lookup Error on reading OpenVDB sample files

845 views
Skip to first unread message

rogers

unread,
Dec 19, 2012, 10:48:21 PM12/19/12
to openvd...@googlegroups.com
Hi,

 I was trying to read some of the openVDB sample files available on the download page. I am trying to open the vdb file using the following code, and was hoping to make some modifications to the grid data.
 

  openvdb
::io::File file("utahteapot.vdb");
  file
.open();

I get the following error on execution,


cannot read metadata
"Creator" of unregistered type "string"
terminate called after throwing an instance of
'openvdb::v0_102_0::LookupError'
  what
():  LookupError: Cannot read grid. Grid type Tree_float_5_4_3 is not registered.
Aborted

 I have tried some of the other samples, and I get similar errors. Any pointers to how I can fix the error?

Thanks.











lkajsdflkjasjflakjfs


Ken Museth

unread,
Dec 20, 2012, 2:08:23 AM12/20/12
to openvd...@googlegroups.com
Try calling openvdb::initialize() first.

-K

rogers

unread,
Dec 20, 2012, 7:25:40 AM12/20/12
to openvd...@googlegroups.com
That fixed it.

Thanks,
Rajas.
 

Ken Museth

unread,
Dec 21, 2012, 10:15:44 AM12/21/12
to openvd...@googlegroups.com
Great, thanks for bringing this issue to our attention ... we've updated the "cookbook" in v0.103.0 to avoid similar confusion in the future.

-Ken
Reply all
Reply to author
Forward
0 new messages