Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FBX SDK exporting into older fbx file format

Tags:

c++

fbx

FBX SDK 2016.0 by default writes FBX files with new format, incompatible with previous SDK version. There is a note about it in a readme:

Updated file format to 7.5 (compatible with 2016+ products) which now uses 64bit integers in the binary block headers to allow for large file support (>2GB). These new FBX files will NOT import in older products (2015 or less), so make sure you set the right export format if you need to target these older products.

But I can't find a way to "set the right export format" in my code to export into previous format.

Tried this in my export setup code with no luck:

fbx_manager_->GetIOSettings()->SetIntProp( 
    EXP_FBX_EXPORT_FILE_VERSION, FBX_FILE_VERSION_7400 );

What is a correct way to request saving with older format version?

like image 409
Ryhor Spivak Avatar asked Apr 23 '15 20:04

Ryhor Spivak


People also ask

What version of FBX does blender export?

Blender first added support for exporting models in the FBX format in version 2.56.

Which FBX format does blender use?

binary FBX files only.

Why can't I export as FBX in Maya?

If you do not see the FBX file extension in the File of Type menu, activate fbxmaya. mll in Maya's Plug-in Manager. Enter a name for the FBX file you want to export. The FBX Export options appear at the right of the Maya Export dialog box.


1 Answers

I am probably late, but I've found the solution: There is method FbxExporter::SetFileExportVersion() which takes a string constant as an argument. Constats can be found in fbxio.h and look like FBX_2014_00_COMPATIBLE

like image 151
Vladislav Mikhalin Avatar answered Oct 03 '22 20:10

Vladislav Mikhalin