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

The difference between import the gltf1.0 and gltf2.0 #46

Open
Flatliu opened this issue Apr 29, 2019 · 2 comments
Open

The difference between import the gltf1.0 and gltf2.0 #46

Flatliu opened this issue Apr 29, 2019 · 2 comments

Comments

@Flatliu
Copy link

Flatliu commented Apr 29, 2019

Thanks for this addon that enable me to import the gltf into blender.
And now I am wondering if it could import gltf1.0 into blender. To start with, I try to change the code of searching way. Because there is a dict behind every main properties in gltf 1.0, while it is list behind the main properties. But it is quite difficult, and especially in creating the virtual nodes. I'm not sure if it is a good way.
And if there are already some ways to convert the gltf1.0 to gltf2.0?

@scurest
Copy link
Collaborator

scurest commented Apr 30, 2019

I don't know of an existing glTF 1 -> glTF 2 converter, but I would recommend that over modifying this importer. It looks like if you're willing to make some assumptions about your input you could bang a passable one together fairly easily (except for the materials).

The current importer code is very deeply intertwined with the 2.0 spec. And, yes, the vnode stuff is unpleasant.

@emackey
Copy link

emackey commented Apr 30, 2019

I think gltf-pipeline can still do 1.0 to 2.0 conversion. It's close to being legacy code at this point, and I haven't tested this conversion in a long time, so no guarantees. But it might be worth a try.

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

No branches or pull requests

3 participants