Light-weight library to import/export .vdb files with easy integration in other projects using submodules via cmake.
This repository was created using @mjurczyk repository as reference, which at the same time is based on original OpenVDB. He adapted the code with JavaScript's limitations in mind, threfore my C implementation is not currently optimal. However, it remains easy and fast to integrate into other projects.
I highly recommend including this library as a submodule in your projects by doing this:
# In the path of the project where you want to store the external libraries
git submodule add https://github.com/victorubieto/easyVDB
# Then init and update all the submodules of easyVDB
git submodule update --init --recursive
Once the library is added as a submodule, you can include it in your project's cmake like this (replace LIBRARIES_PATH
):
# easyVDB
add_subdirectory(LIBRARIES_PATH/easyVDB)
target_link_libraries(${PROJECT_NAME} PUBLIC easyVDB)
set_property(TARGET easyVDB PROPERTY FOLDER "External/easyVDB")
[TODO]
OpenVDB has several versions, which means that maybe not all of your vdb files will be parsed correctly. By now, the supported versions are:
- [TODO]