NVIDIA / gvdb-voxels

Sparse volume compute and rendering on NVIDIA GPUs
Other
672 stars 144 forks source link

nanovdb has no member "mOffset" and "childID" , what version nanovdb is needed? #130

Open dumpinfo opened 2 years ago

dumpinfo commented 2 years ago

I add the "https://github.com/AcademySoftwareFoundation/openvdb/tree/master/nanovdb/nanovdb" to the include path of gvdb project, it appear these errors bellow when the project been compiled: 3>gNanoVDB\cuda_export_nanovdb.cu(281): error : class "nanovdb::InternalData<nanovdb::LeafNode<nanovdb::Vec3f, nanovdb::Coord, nanovdb::Mask, 3U>, 7U>" has no member "mOffset" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=nanovdb::Vec3f, LOG2DIM=7]" 3>(369): here 3> 3>gNanoVDB\cuda_export_nanovdb.cu(330): error : union "nanovdb::InternalData<ChildT, LOG2DIM>::Tile [with ChildT=nanovdb::LeafNode<nanovdb::Vec3f, nanovdb::Coord, nanovdb::Mask, 3U>, LOG2DIM=7U]" has no member "childID" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=nanovdb::Vec3f, LOG2DIM=7]" 3>(369): here 3> 3>gNanoVDB\cuda_export_nanovdb.cu(281): error : class "nanovdb::InternalData<nanovdb::LeafNode<int32_t, nanovdb::Coord, nanovdb::Mask, 3U>, 2U>" has no member "mOffset" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=int, LOG2DIM=2]" 3>(370): here 3> 3>gNanoVDB\cuda_export_nanovdb.cu(330): error : union "nanovdb::InternalData<ChildT, LOG2DIM>::Tile [with ChildT=nanovdb::LeafNode<int32_t, nanovdb::Coord, nanovdb::Mask, 3U>, LOG2DIM=2U]" has no member "childID" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=int, LOG2DIM=2]" 3>(370): here 3> 3>gNanoVDB\cuda_export_nanovdb.cu(281): error : class "nanovdb::InternalData<nanovdb::LeafNode<int32_t, nanovdb::Coord, nanovdb::Mask, 3U>, 3U>" has no member "mOffset" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=int, LOG2DIM=3]" 3>(370): here 3> 3>gNanoVDB\cuda_export_nanovdb.cu(330): error : union "nanovdb::InternalData<ChildT, LOG2DIM>::Tile [with ChildT=nanovdb::LeafNode<int32_t, nanovdb::Coord, nanovdb::Mask, 3U>, LOG2DIM=3U]" has no member "childID" 3> detected during instantiation of "void ProcessInternalNode<ValueT,LOG2DIM>(VDBInfo , VDBNode , uint8_t , uint8_t , int, int, int, int, ValueUnion) [with ValueT=int, LOG2DIM=3]" 3>(370): here

How can I solve these problems? and what version off nanovdb should I include? Where can I find the specified version of nanovdb ?