Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert g3dj to g3db? #57

Open
xeoshow opened this issue Jul 14, 2014 · 1 comment
Open

convert g3dj to g3db? #57

xeoshow opened this issue Jul 14, 2014 · 1 comment

Comments

@xeoshow
Copy link

xeoshow commented Jul 14, 2014

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

@xoppa
Copy link
Member

xoppa commented Jul 16, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants