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

Some 3D objects looks deformed/destroyed in the imported model #99

Closed
waseemkhan1989 opened this issue Oct 30, 2020 · 5 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@waseemkhan1989
Copy link

Hi!

Now, I can successfully import glb files on Quest but some objects in my model looks deformed or destroyed. Here is an example of a car. The image is the original one

OriginalHall

This is the one imported through GLTFast on Quest:

com Uraan TopexGLTFast-20201030-114028

How can this issue be corrected?

@atteneder
Copy link
Owner

Thanks for reporting.

Very strange :/

The original image is not from Unity/glTFast, right? From what is it then?

Can you provide the model?

You can also cross-check with alternative glTF viewers like this great one.

@atteneder atteneder self-assigned this Oct 30, 2020
@waseemkhan1989
Copy link
Author

waseemkhan1989 commented Nov 4, 2020

@atteneder Sorry for late replying. I was busy in moving to a new city. For the first picture, I used

3D viewer and second picture is tested with GLTFast on Quest. Thanks for sharing the link of GLTF viewer.

Please find attached the model.

DWG1_Halle.zip

There are also other models with which I am facing the same problem with GLTFast.
Point to be noted! with Unity GLTF library, I am not facing this problem.

Any solution?

@atteneder atteneder added the bug Something isn't working label Nov 15, 2020
@atteneder
Copy link
Owner

atteneder commented Nov 16, 2020

What I observed so far:

I'm using Unity's Matrix4x4.rotation and Matrix4x4.lossyScale to decompose the Matrix. This algorithm seem to break on objects with:

  • negative uniform scale
  • 90° rotation in X
  • 45° rotation in Y

One workaround is to not use negative scale.

I'll have to investigate if other implementations are more robust.

@atteneder atteneder added this to the 2.2.0 milestone Nov 16, 2020
@atteneder
Copy link
Owner

fix is in the making!

@waseemkhan1989 Would you mind it if I share screenshots of your model for educational purpos in my blog?

@waseemkhan1989
Copy link
Author

waseemkhan1989 commented Nov 16, 2020

@atteneder Yeah sure:). I have no problem with it:)

atteneder added a commit to Unity-Technologies/com.unity.cloud.gltfast that referenced this issue Apr 9, 2024
* feat(ci): Editor import tests.

* refactor: Moved all tests that are actual runtime tests into the correct assembly.

* refactor: Converted into easier readable verbatim string.

* fix: Ignore test that's expected to fail on Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants