NVIDIA / gvdb-voxels

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

Which commit/version of NanoVDB should I use? #125

Open bobluoluo opened 2 years ago

bobluoluo commented 2 years ago

Which specific commit/version of NanoVDB should I use. The latest one under feature/nanovdb branch is missing some members. image

NBickford-NV commented 2 years ago

Hi bobluoluo! The NanoVDB API probably changed slightly; I think the solution here is to fix the gNanoVDB sample. Give me about an hour or two, and a new version should be up! The previous checked version was about 10 months ago, so likely something went out of sync.

NBickford-NV commented 2 years ago

Okay! Looks like the changes needed are a bit larger than I expected - NanoVDB now uses pointer offsets rather than child indices, and added new average and standard deviation fields which gNanoVDB doesn't write yet, so it'll take a bit longer for me to update the sample. In the meantime, I think commit https://github.com/AcademySoftwareFoundation/openvdb/commit/cc79c0abcc81c02d59ea6ae1022d8670a4f0e329 might work - looks like version 8.1 included most of the breaking changes!

digbeta commented 2 years ago

Hi, Neil -- I'd like to bump this. I've tested the above branch and a few others without success. I tried a few older commits and get some CUDA asserts. Can you confirm which specific commit you used to get the Nano export working? Thanks!

NBickford-NV commented 2 years ago

Hi digbeta! Apologies for the delay - I managed to get a new version about half-working (compiling and running but not yet exporting the volume correctly), but then had to switch to some high-priority tasks.

Going historically, the last changes to gNanoVDB were in c2609c51ff50, so that would probably correspond to https://github.com/AcademySoftwareFoundation/openvdb/commit/d31daafd674b83443fa2f78c9f6a67e335e643a2 - maybe that would work? Thanks!

DocSavage commented 2 years ago

I hit this as well with inability to use nanovdb. AFAIK nanovdb got added to the openvdb repo recently. With these older commits of openvdb, where are the nanovdb include files?