同步操作将从 Zenus Technology/zeno 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
WARNING: Don't use Python 3.8, PySide2 have a known bug with 3.8. Also don't use 32-bit Python.
python -m pip install pybind11 numpy PySide2
(Fun fact: you will be redirected to Microsoft Store if
python
is not added to PATH properly :) Make sure it starts to downloading and installing successfully withoutERROR
(warnings are OK though).
If you got
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'c:\\python38\\Lib\\site-packages\\PySide2\\Qt5\\bin\\d3dcompiler_47.dll''
: Quit anti-virus softwares (e.g. 360), they probably preventpip
from copying DLL files.
If you got
ImportError: DLL load failed while importing QtGui
: Try install Microsoft Visual C++ Redistributable.
Install Visual Studio 2019 Community Edition or later version (for C++17 support in MSVC).
(Optional) Install other dependencies via vcpkg:
git clone https://github.com/microsoft/vcpkg.git --depth=1
cd vcpkg
@rem (Optional) integrate vcpkg into your VS2019 if necessary:
vcpkg integrate install
@rem (Optional) Install OpenVDB for the extension ZenVDB & FastFLIP:
vcpkg install openvdb:x64-windows
@rem (Optional) Install Eigen3 for the extension FastFLIP:
vcpkg install eigen3:x64-windows
@rem (Optional) Install CGAL for the extension CGMesh:
vcpkg install cgal:x64-windows
@rem (Optional) Install OpenBLAS for the extension CGMesh:
vcpkg install openblas:x64-windows
@rem (Optional) Install LAPACK for the extension CGMesh:
vcpkg install lapack:x64-windows
Notice that you may need to install the
English Pack
for VS2019 for vcpkg to work.
For Chinese users, you may also need to follow the instruction in this zhihu post to switch to domestic source for faster download.
See also their official guide for other issues.
cmake -B build -DCMAKE_BUILD_TYPE=Release
@rem Use this if you are using vcpkg:
@rem cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
Then open build/zeno.sln
in Visual Studio 2019, and switch to Release mode in build configurations, then run build -> build all
(Ctrl+Shift+B).
cmake -B build -DEXTENSION_FastFLIP:BOOL=ON -DEXTENSION_zenvdb:BOOL=ON -DZENOFX_ENABLE_OPENVDB:BOOL=ON
Then goto VS2019 and run build -> build all
again.
IMPORTANT: In MSVC, Release mode must always be active when building ZENO, since MSVC uses different allocators in Release and Debug mode. If a DLL of Release mode and a DLL in Debug mode are linked together in Windows, it will crash when passing STL objects.
python run.py
If you got:
This application failed to start because it could not find or load the Qt platform plugin "xxx"
Reinstalling the application may fix this problem.
Are you using Anaconda? Please try using the methods in: https://stackoverflow.com/questions/41994485/how-to-fix-could-not-find-or-load-the-qt-platform-plugin-windows-while-using-m
If you got:
ImportError: DLL load failed while importing shiboken2
Don't use Python 3.8, it's a PySide2 bug, use Python 3.9 (or even 3.6) instead. See also this post.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。