Blender Git Loki
Git Commits -> Revision 3df90de
Revision 3df90de by Patrick Mours (master) October 5, 2020, 13:03 (GMT) |
Cycles: Add NanoVDB support for rendering volumes NanoVDB is a platform-independent sparse volume data structure that makes it possible to use OpenVDB volumes on the GPU. This patch uses it for volume rendering in Cycles, replacing the previous usage of dense 3D textures. Since it has a big impact on memory usage and performance and changes the OpenVDB branch used for the rest of Blender as well, this is not enabled by default yet, which will happen only after 2.82 was branched off. To enable it, build both dependencies and Blender itself with the "WITH_NANOVDB" CMake option. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8794 |
Commit Details:
Full Hash: 3df90de6c2268bef91d3754f71c7404cfbeeac90
Parent Commit: 72e741e
Lines Changed: +596, -58
2 Added Paths:
/build_files/build_environment/patches/openvdb_nanovdb.diff (+135, -0) (View)
/build_files/cmake/Modules/FindNanoVDB.cmake (+49, -0) (View)
/build_files/cmake/Modules/FindNanoVDB.cmake (+49, -0) (View)
25 Modified Paths:
/build_files/build_environment/cmake/harvest.cmake (+4, -0) (Diff)
/build_files/build_environment/cmake/openvdb.cmake (+28, -2) (Diff)
/build_files/build_environment/cmake/options.cmake (+1, -0) (Diff)
/build_files/build_environment/cmake/versions.cmake (+9, -3) (Diff)
/build_files/build_environment/CMakeLists.txt (+0, -1) (Diff)
/build_files/cmake/platform/platform_apple.cmake (+5, -0) (Diff)
/build_files/cmake/platform/platform_unix.cmake (+10, -0) (Diff)
/build_files/cmake/platform/platform_win32.cmake (+5, -0) (Diff)
/CMakeLists.txt (+4, -0) (Diff)
/intern/cycles/CMakeLists.txt (+8, -0) (Diff)
/intern/cycles/device/cuda/device_cuda_impl.cpp (+48, -37) (Diff)
/intern/cycles/device/device_memory.cpp (+2, -0) (Diff)
/intern/cycles/device/opencl/device_opencl_impl.cpp (+4, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+27, -1) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+47, -0) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+56, -11) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_opencl_image.h (+66, -0) (Diff)
/intern/cycles/kernel/kernel_compat_optix.h (+1, -0) (Diff)
/intern/cycles/render/CMakeLists.txt (+6, -0) (Diff)
/intern/cycles/render/image.cpp (+15, -0) (Diff)
/intern/cycles/render/image.h (+1, -0) (Diff)
/intern/cycles/render/image_oiio.cpp (+2, -0) (Diff)
/intern/cycles/render/image_vdb.cpp (+53, -1) (Diff)
/intern/cycles/render/image_vdb.h (+6, -0) (Diff)
/intern/cycles/util/util_texture.h (+4, -2) (Diff)
/build_files/build_environment/cmake/openvdb.cmake (+28, -2) (Diff)
/build_files/build_environment/cmake/options.cmake (+1, -0) (Diff)
/build_files/build_environment/cmake/versions.cmake (+9, -3) (Diff)
/build_files/build_environment/CMakeLists.txt (+0, -1) (Diff)
/build_files/cmake/platform/platform_apple.cmake (+5, -0) (Diff)
/build_files/cmake/platform/platform_unix.cmake (+10, -0) (Diff)
/build_files/cmake/platform/platform_win32.cmake (+5, -0) (Diff)
/CMakeLists.txt (+4, -0) (Diff)
/intern/cycles/CMakeLists.txt (+8, -0) (Diff)
/intern/cycles/device/cuda/device_cuda_impl.cpp (+48, -37) (Diff)
/intern/cycles/device/device_memory.cpp (+2, -0) (Diff)
/intern/cycles/device/opencl/device_opencl_impl.cpp (+4, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+27, -1) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+47, -0) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+56, -11) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_opencl_image.h (+66, -0) (Diff)
/intern/cycles/kernel/kernel_compat_optix.h (+1, -0) (Diff)
/intern/cycles/render/CMakeLists.txt (+6, -0) (Diff)
/intern/cycles/render/image.cpp (+15, -0) (Diff)
/intern/cycles/render/image.h (+1, -0) (Diff)
/intern/cycles/render/image_oiio.cpp (+2, -0) (Diff)
/intern/cycles/render/image_vdb.cpp (+53, -1) (Diff)
/intern/cycles/render/image_vdb.h (+6, -0) (Diff)
/intern/cycles/util/util_texture.h (+4, -2) (Diff)