glTF is the runtime asset format for WebGL, OpenGL ES, and OpenGL.
glTF is a draft specification, it may change before ratification. Everyone is encouraged to provide feedback on the specification and contribute to the open-source converter. Please create issues with your feedback.
glTF is an open-source command-line pipeline tool that converts FBX file (and any file format that FBX can read such as obj, collada, ...) to glTF.
IO-glTF is an open-source FBX importer/exporter plug-in that converts FBX file (and any file format that FBX can read such as obj, collada, ...) to glTF.
This plug-in can be used by any FBX based application to import/export glTF files.
This sample is dependent of the following 3rd party extension:
-
The Casablanca C++ RESTful SDK - version 2.4.0.1
-
The FBX C++ SDK - version 2015.1
-
For building on Mac OSX, and Linux, you also need cmake which is also required for the Casablanca C++ RESTful SDK.
However, Casablanca requires version 2.8 (or later), while the glTF converter is setup to use version 3.1, you may install version 3.1 or change the cmake files header back to 2.8.
Required: Visual Studio 2013 (should work with Visual Studio 2012 too, but not tested)
-
Download and install the FBX SDK
-
Clone or download the FBX-glTF source code
-
Load the glTF.sln solution file in Visual Studio 2013
-
Optional: if you did not install FBX at the standard location or use a version different from 2015.1, open the solution Property Manager and edit the User Macro FBX_SDK to point to the root of your FBX SDK. Another way is to edit the Fbx.props file and manually change the path before step 2.
-
Build the FBX-glTF solution. NuGet will install 'casablanca' for you upon building.
Required: Mac OSX Maverick or Yosemite, Xcode 6.1.1
-
Download and install the FBX SDK
-
Clone or download the FBX-glTF source code
-
Download and compile 'casablanca' on your machine. Instructions here
-
Install ‘casablanca’ on your system by running ‘sudo make install’
-
Recommended: Create a folder with the name you want, and go in that directory
-
Optional: Copy the CMakeConfigExample.txt file and rename it as CMakeCache.txt in your build folder, and edit the FBX path entry. That will avoid you to type the parameters below.
-
Execute:
a. For a release build: cmake .. -DCMAKE_BUILD_TYPE=Release -DFBX_SDK=<path to FBX>
b. For a debug build: cmake .. -DCMAKE_BUILD_TYPE=Debug -DFBX_SDK=<path to FBX>
or simply ‘cmake ..’ if you followed step 6.
Note: on Mac OSX, the FBX SDK installs by default in /Applications/Autodesk/FBX SDK/2015.1