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

GLB import / export has issues #634

Closed
havarsa opened this issue Sep 13, 2021 · 1 comment · Fixed by #644
Closed

GLB import / export has issues #634

havarsa opened this issue Sep 13, 2021 · 1 comment · Fixed by #644

Comments

@havarsa
Copy link

havarsa commented Sep 13, 2021

I am experiencing multiple problems with the UnityGLTF component. It is very unfortunate, as we would benefit greatly from having proper GLTF support in our project.

One of the major issues is importing / exporting to GLB. Importing a GLB from Sketchfab, ie, works just fine, and it imports impressive models with no issues. However, creating a few 3D objects in Unity and exporting and then reimporting does reveal issues!

Try this;

  1. Create a cube on root. Create a sub object for this cube, say a cylinder. And again, for this cylinder, add a sub object capsule.
    You have this object now:
    image

  2. Now; export to GLB using 'GLTF -> ExportGLB Selected'

  3. Import it back in. Several problems occur:
    a. Imported object looks like this:
    image
    The capsule node is lost, but the capsule mesh has merged with the cylinder mesh, and is placed on the cylinder node. This completely messes up the structure of objects.

    b. Additionally, most but not all times I get this exception thrown:
    image
    (this example is from a different different test object)

Anyone else experience this?

@hybridherbst
Copy link
Collaborator

Would be great if you try out the dev branch / this PR, which greatly improves export:

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants