fbx-conv icon indicating copy to clipboard operation
fbx-conv copied to clipboard

convert g3dj to g3db?

Open xeoshow opened this issue 11 years ago • 1 comments

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

xeoshow avatar Jul 14 '14 12:07 xeoshow

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.

xoppa avatar Jul 16 '14 07:07 xoppa