Update documentation.
This commit is contained in:
parent
14c964fb99
commit
0e72666709
|
@ -71,7 +71,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FBX2glTF-windows-x64.exe
|
name: FBX2glTF-windows.exe
|
||||||
path: build/Release/FBX2glTF.exe
|
path: build/Release/FBX2glTF.exe
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -218,5 +218,5 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FBX2glTF-Darwin
|
name: FBX2glTF-macos
|
||||||
path: build/FBX2glTF
|
path: build/FBX2glTF
|
||||||
|
|
38
README.md
38
README.md
|
@ -6,48 +6,22 @@ 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.
|
Change the default import of the engine to be different from 30 fps if needed.
|
||||||
|
|
||||||
|
There are artifacts in the Github Actions for Windows, MacOS and Linux.
|
||||||
|
|
||||||
## For Linux
|
## For Linux
|
||||||
|
|
||||||
Use `./FBX2glTF-linux-64 --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx`.
|
Use `./FBX2glTF-linux --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx`.
|
||||||
|
|
||||||
## For Windows
|
## For Windows
|
||||||
|
|
||||||
Use `FBX2glTF-windows-64.exe --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx`.
|
Use `FBX2glTF-windows.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.
|
You need to install the MVSC redistributable. https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads.
|
||||||
|
|
||||||
## For Mac
|
## For Mac
|
||||||
|
|
||||||
Use `./FBX2glTF-macosx --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx`.
|
Use `./FBX2glTF-macos --pbr-metallic-roughness --skinning-weights 8 --anim-framerate bake30 --user-properties example.fbx`.
|
||||||
|
|
||||||
## Build Instructions
|
## Build Instructions
|
||||||
|
|
||||||
```
|
Reference the Github workflow.
|
||||||
# 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
|
|
||||||
```
|
|
Loading…
Reference in New Issue