Procedure to enable FBX output(en)
Notice
- This document has been translated from the Japanese version
- There may be errors in the text.
- Original /TiltBrush/Tips_how_to_support_fbx_ja
- The contents of this document are subject to no support and no warranty.
Prep.
Advance to the point where you can run open-brush on Unity.
Get the source code for com.autodesk.fbx
- https://github.com/Unity-Technologies/com.autodesk.fbx/releases/tag/3.0.1-preview.1
- Confirmed to work with
3.0.1-preview.1
.
- Confirmed to work with
- Put it in an obvious path.
- Use
C:\Tools\src\com-autodesk-fbx
as an example
- Use
Install Visual Studio 2017 (Community)
-
Requires
C# SDK
,C++ SDK
, andUniversal Windows App Development Tools
.
Install Cmake.
- https://cmake.org/download/
- No problem with the latest Windows installer.
- Confirmed to work with
cmake-3.19.4-win64-x64.msi
. - Make sure to add PATH during installation (Current User or System Wide).
Install swigwin-3.0.12
-
http://www.swig.org/download.html
swigwin-3.0.12.zip
.- You need to use
3.0.12
.
-
After downloading, move the file to an understandable path and pass the PATH
- Use
C:\Tools\swigwin
as an example - No problem with user environment variables
- https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
- Use
Install Python
- https://www.python.org/downloads/
- Check
Add Python 3.9 to PATH
.
- Check
Install FBX SDK.
- https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-0
- Use
FBX SDK 2020.0.1 VS2015
.
- Use
Install git.
- https://git-scm.com/
- Check
Git from the command line and also from 3rd-party software
.
- Check
TiltBrush compatible corrections.
- Copy
Support/fbx/tilt_brush.i
from the TiltBrush repository into theSources
directory ofcom.autodesk.fbx
. - Open
Sources/fbxsdk.i
and add%include "tilt_brush.i"
under the line%include "fbxtemplates.i"
.
Build
- Open a command prompt and navigate to the directory containing the
com.autodesk.fbx
source code. - run
python build.py
.
Enable FBX support on TiltBrush
- Copy
com.autodesk.fbx
frombuild/install
toPackages
in TiltBrush.
- add
;FBX_SUPPORTED;FBXSDK_RUNTIME
to `Scripting Define Symbols
- run
Tilt/Build/Do Build