A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
Go to file
K. S. Ernest (iFire) Lee 935644846b Use non-modular boost. 2021-06-06 18:16:10 -07:00
.github/workflows Use non-modular boost. 2021-06-06 18:16:10 -07:00
npm/fbx2gltf Fixed the npm library output path 2019-10-09 09:48:14 -07:00
src Restore building for Linux. 2021-06-06 16:18:01 -07:00
third_party Oops, forgot to actually commit json.hpp. 2019-04-03 09:58:48 -07:00
.clang-format Apply clang-format to all our source. (#149) 2018-12-18 23:30:29 -08:00
.dockerignore Added sdk to dockerignore 2019-05-14 07:16:28 -07:00
.gitattributes Azure CI build support. (#182) 2019-04-23 12:44:03 -07:00
.gitignore Restore building for Linux. 2021-06-06 16:18:01 -07:00
CMakeLists.txt Restore building for Linux. 2021-06-06 16:18:01 -07:00
CODE_OF_CONDUCT.md Add Facebook's generic Code of Conduct file. 2018-10-15 15:19:36 -07:00
CONTRIBUTING.md Initial commit. 2017-10-13 01:55:11 -07:00
Dockerfile Added sdk to dockerignore 2019-05-14 07:16:28 -07:00
FindFBX.cmake License -> BSD (#186) 2019-05-03 16:13:18 -07:00
LICENSE License -> BSD (#186) 2019-05-03 16:13:18 -07:00
README.md Use non-modular boost. 2021-06-06 18:16:10 -07:00
conanfile.py Use non-modular boost. 2021-06-06 18:16:10 -07:00
docker-compose.yaml Dockerize FBX2glTF (#184) 2019-05-07 17:20:38 -07:00

README.md

FBX2GLTF

This is an interm fbx2gltf release.

Change skinning-weights to 4 if your engine does not support that feature.

Change the default import of the engine to be different from 30 fps if needed.

For Linux

Use ./FBX2glTF-linux-64 --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx.

For Windows

Use FBX2glTF-windows-64.exe --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx.

You need to install the MVSC redistributable. https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads.

For Mac

Use ./FBX2glTF-macosx --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx.

Build Instructions

# Determine SDK location & build settings for Linux vs (Recent) Mac OS X
> if [[ "$OSTYPE" == "darwin" ]]; then
    export CONAN_CONFIG="-s compiler=apple-clang -s compiler.version=11.0 -s compiler.libcxx=libc++"
    export FBXSDK_TARBALL="https://github.com/V-Sekai/FBXSDK-Darwin/archive/2019.2.tar.gz"
else
    export CONAN_CONFIG="-s compiler.libcxx=libstdc++11"
    export FBXSDK_TARBALL="https://github.com/V-Sekai/FBXSDK-Linux/archive/2020.2.tar.gz"
  fi

# Fetch Project
> GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/V-Sekai/FBX2glTF.git
> cd FBX2glTF

# Fetch and unpack FBX SDK
> curl -sL "${FBXSDK_TARBALL}" | tar xz --strip-components=1 --wildcards */sdk
# Fetch and unpack FBX SDK on Mac OS X
> curl -sL "${FBXSDK_TARBALL}" | tar xz --strip-components=1 
# Then decompress the contents
> zstd -d -r --rm sdk

# Install and configure Conan, if needed
> pip3 install conan --user # or sometimes just "pip"; you may need to install Python/PIP
> conan remote add --force bincrafters https://api.bintray.com/conan/bincrafters/public-conan

# Initialize & run build
> conan install . -i build -s build_type=Release ${CONAN_CONFIG} --build fmt --build libiconv --build=libxml2 --build=zlib --build=bzip2 --build=libbacktrace --build=boost
> conan build . -bf build