FbxSharp icon indicating copy to clipboard operation
FbxSharp copied to clipboard

Load binary files

Open izrik opened this issue 8 years ago • 5 comments

FbxSharp currently can only load ascii files. This means that a binary file must be converted to ascii before it can be opened. Some fbx exporters only output binary files. In order to better support those cases, FbxSharp should be able to load binary files as well.

izrik avatar Aug 17 '16 20:08 izrik

Hi, I might have a solution to support binary loading, let me know if you want to discuss

vpenades avatar Jun 19 '17 16:06 vpenades

@vpenades I am definitely interested. I've looked into the Blender FBX export script to get some idea of the format. My understanding is that the underlying structure of the binary files is more-or-less the same as ascii, it's just that everything is encoded. If that is the case, then I could re-use some of the logic in the Parser class, perhaps with a specialized Tokenizer. That would certainly make thing easy.

izrik avatar Jun 28 '17 21:06 izrik

I actually have a working binary parser for my own (not frozen) FBX reader... I was able to integrate it into your code and it almost worked, except for one thing, the parsing of actual values; in an ascii FBX, all values are ASCII, and your code expects ASCII. But with the binary format, you get the values with their native format, Int32, Double, etc

vpenades avatar Jun 29 '17 14:06 vpenades

Its surprising that this is still an open issue. We could try to use the Blender module for importing fbx if there are enough people interested in contributing to it.

SimantoR avatar Nov 09 '18 15:11 SimantoR

@SimantoR it just happens FBX on c# didn't get enough momentum to be worth the pain of fixing it. Besides, FBX has become too convoluted to be handled in a safe way without the official SDK.

Nowadays there's a new kid on the block which is glTF

vpenades avatar Nov 09 '18 16:11 vpenades