AcademySoftwareFoundation / openvdb

OpenVDB - Sparse volume data structure and tools
http://www.openvdb.org/
Apache License 2.0
2.71k stars 660 forks source link

[BUG] NanoVDB viewer fails to render with OpenCL/OpenGL backends #1631

Open Depersonalizc opened 1 year ago

Depersonalizc commented 1 year ago

Environment

Operating System: Windows 11 Version / Commit SHA: VDB 8.1.1, SHA: 4a186c2 Other: MSVC 19.29.30148.0, C++11

Describe the bug

The NanoVDB viewer failed to render correctly with OpenCL or OpenGL selected as the backend (but CUDA worked)

To Reproduce

  1. Build NanoVDB with
    cmake -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake `
      -DUSE_NANOVDB=ON -DOPENVDB_BUILD_CORE=OFF -DOPENVDB_BUILD_BINARIES=OFF -DOPENVDB_ROOT='C:\Program Files (x86)\OpenVDB' `
      -DNANOVDB_BUILD_EXAMPLES=ON -DNANOVDB_USE_INTRINSICS=ON `
      -DNANOVDB_USE_OPENVDB=ON -DNANOVDB_USE_TBB=ON -DNANOVDB_USE_GLFW=ON -DNANOVDB_USE_NATIVEFILEDIALOG=ON `
      -DNANOVDB_USE_CUDA=ON -DNANOVDB_CUDA_KEEP_PTX=ON `
      -DNANOVDB_BUILD_UNITTESTS=OFF -DNANOVDB_BUILD_BENCHMARK=OFF DNANOVDB_USE_MAGICAVOXEL=OFF ..
    cmake --build . --parallel 4 --config Release --target install
  2. Run the NanoVDB viewer and load a grid.
  3. Switch the backend to OpenCL or OpenGL
  4. See error

Expected behavior

Correct rendering of the NanoVDB grids should appear.

GrouchoChaplin commented 1 year ago

seeing the same thing.

GrouchoChaplin commented 1 year ago

@Depersonalizc Did you find a solution to this issue? What version of OpenVDB/NanoVDB are you using?