# 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.
* https://unity.com/ja
* https://github.com/icosa-gallery/open-brush/

### 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`.
* Put it in an obvious path.
  * Use `C:\Tools\src\com-autodesk-fbx` as an example

### Install Visual Studio 2017 (Community)
* https://visualstudio.microsoft.com/ja/vs/older-downloads/

* Requires `C# SDK`, `C++ SDK`, and `Universal 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/
  
### Install Python
* https://www.python.org/downloads/
  * Check `Add Python 3.9 to PATH`.

### Install FBX SDK.
* https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-0
  * Use `FBX SDK 2020.0.1 VS2015`.

### Install git.
* https://git-scm.com/
  * Check `Git from the command line and also from 3rd-party software`.

## TiltBrush compatible corrections.
* Copy `Support/fbx/tilt_brush.i` from the TiltBrush repository into the `Sources` directory of `com.autodesk.fbx`.
* Open `Sources/fbxsdk.i` and add `%include "tilt_brush.i"` under the line `%include "fbxtemplates.i"`.

## Build

1. Open a command prompt and navigate to the directory containing the `com.autodesk.fbx` source code.
2. run `python build.py`.

## Enable FBX support on TiltBrush 

1. Copy `com.autodesk.fbx` from `build/install` to `Packages` in TiltBrush.

![image.png](/attachment/60150e29c04cf70047878755)

![image.png](/attachment/60150e58c04cf70047878756)

![image.png](/attachment/60150e80c04cf70047878757)

2. add `;FBX_SUPPORTED;FBXSDK_RUNTIME` to `Scripting Define Symbols

![image.png](/attachment/60150febc04cf70047878758)

3. run `Tilt/Build/Do Build`

![image.png](/attachment/601510ffc04cf70047878759)



---

## Page Navigation

- Canonical URL: https://wiki.thakyuu.invr.chat/TiltBrush/Tips_how_to_support_fbx_en
- Permalink: https://wiki.thakyuu.invr.chat/60151306c04cf7004787875b
- Parent: [TiltBrush](/60150573c04cf7004787874f.md)
- Children: 0 total
- Total descendants: 0
- Siblings: 1 total
  - [Tips_how_to_support_fbx_ja](/601508d0c04cf70047878752.md)
- Last updated: 2021-01-30T08:19:28.325Z by thakyuu
- Full page listing (all children regardless of count): https://wiki.thakyuu.invr.chat/_api/v3/page-listing/children?id=60151306c04cf7004787875b
