OpenVDB Codes
[0] OpenVDB Code Examples https://www.openvdb.org/documentation/doxygen/codeExamples.html
[1] pyopenvdb volume codes https://www.openvdb.org/documentation/doxygen/python.html
[3] https://python.hotexamples.com/examples/pyopenvdb/-/createLinearTransform/python-createlineartransform-function-examples.html
More:
[1] Light, Sound modeling http://gamma.web.unc.edu/software/
[2] OpenVDB Slices to VDB https://github.com/tody411/OpenVDB-Samples
Resources:
[0] OpenVDB https://github.com/AcademySoftwareFoundation/openvdb
For Enable pyOpenVDB (main CMakeLists.txt)
option(OPENVDB_BUILD_PYTHON_MODULE "Build the pyopenvdb Python module" ON)
For Enable Viewer
option(OPENVDB_BUILD_VDB_LOD "Build vdb_lod" ON)
option(OPENVDB_BUILD_VDB_RENDER "Build vdb_render" ON)
For Enable Polygonization(grid.convertToPolygons) in python module, change openvdb/openvdb/python/CMakeLists.txt
option(USE_NUMPY "Build the python library with numpy support." ON)
or you will get next error
NotImplementedError: this module was built without NumPy support
Dependences:
[1] OpenExr https://github.com/AcademySoftwareFoundation/openexr
[2] Intel(R) Threading Building Blocks https://github.com/wjakob/tbb
Minimum required is "2017.0" for both above.
[3] Boost https://sourceforge.net/projects/boost/files/boost/
$./bootstrap.sh --prefix=/usr/
$./b2
$sudo ./b2 install
#Preference to Boost 1.7 with python3 support, it enable cmds tools
https://melhorum.blogspot.com/2020/10/boost-17-on-ubuntu16.html
Ubuntu16
$g++-6 openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderMo
dules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -lGL -lGLU -lHalf -lpthread -DGL_GLEXT_PROTOTYPES
Ubuntu18
g++ openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderModules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -DGL_GLEXT_PROTOTYPES -DOPENVDB_USE_GLFW_3 -I ../viewer/ -lHalf -lpthread -o openvdb_view -lboost_thread -lboost_system -lGL -lGLU
No comments:
Post a Comment