那么,首先,ArmorPaint是什么?它是用于在3D模型上绘制PBR纹理的独立软件包。作者以16欧元的价格出售现成的组件,但是GitHub上的源代码构建是免费的。作者建议该程序包本身与ArmorEngine(与Blender集成的游戏引擎)一起使用。
谁不想读
因此,让我们开始吧。我们需要以下软件:
. Windows, OS .
Visual Studio Community 2019, :
Git:
, , D:/apbuild
GitCMD :
:
:
git clone --recursive https://github.com/armory3d/armorpaint
cd armorpaint
armorpaint apbuild. Git # Open generated Visual Studio project
node armorcore/make -g direct3d11
cd armorcore
# Unpack `v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB)//
git apply patch/window_handling.diff --directory=Kinc
node Kinc/make -g direct3d11
# Open generated Visual Studio project
# Set `Project - Properties - Debugging - Command Arguments` to `..\..\build\krom`
# Build for x64 & release
1, armorcore, v8\libraries\win32\release\v8_monolith.7z monolith.7z. , .
, Visual Studio. apbuild/armorpaint/kromx/build, Krom.vcxproj. Visual Studio.
VS ..\..build\krom
在上方工具栏中,设置release和x64。右键单击Krom项目(右),调用上下文菜单,然后单击“构建”。组装完成。我们按本地调试器窗口,启动汇编程序。要更新源,可以在构建之前依次插入以下行:
git pull origin master
git submodule update --init --recursive
可以将汇编后的程序从apbuild文件夹移动到另一个位置,以更方便地使用。感谢您的关注。