FbxSharp
FbxSharp copied to clipboard
Load binary files
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.
Hi, I might have a solution to support binary loading, let me know if you want to discuss
@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.
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
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 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