libgdx / fbx-conv

Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes.
Apache License 2.0
446 stars 116 forks source link

convert g3dj to g3db? #57

Open xeoshow opened 10 years ago

xeoshow commented 10 years ago

Sometimes it is very useful to convert g3dj to g3db, not sure if could add such feature?

xoppa commented 10 years ago

I've done some testing on this not so long ago. Converting json to ubjson (and back) is relatively easy (deserialize -> serialize) there might be even a generic tool for that (no need to restrict it to g3dx). You could do it with libgdx as well (just read the json and write it back to ubjson). This is not necessarily a feature specific for fbx-conv.

That said: we do use some features in ubjson for g3db that json doesn't support (mostly optimized containers, although the implementation might vary) which heavily reduces the file size. To take advantage of this when converting g3dj to g3db the converter has to be aware of the data. So that would require implementation a c++ model-loader.