vtkOpenVDBWriter doesn't seem to work with OpenVDB 9.1
Hi,
I tried to use the vtkOpenVDBWriter
, and I can't make it work. I tried to run the following code:
#include <vtk-9.2/vtkImageData.h>
#include <vtk-9.2/vtkOpenVDBWriter.h>
#include <vtk-9.2/vtkRTAnalyticSource.h>
int main()
{
vtkNew<vtkRTAnalyticSource> source;
source->Update();
vtkImageData* grid = vtkImageData::SafeDownCast(source->GetOutputDataObject(0));
vtkNew<vtkOpenVDBWriter> writer;
writer->SetFileName("wavelet.vdb");
writer->SetInputData(grid);
writer->Write();
return 0;
}
It produces the wavelet.vdb
, but when I try to view it with the official vdb_view
, I can't see anything (the viewer seems to panic). Maybe I used it in a wrong way. I use OpenVDB
v9.1 on Ubuntu 18.04.
@acbauer do you have an idea ?
Edited by Gaspard Thevenon