Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

SceneViewer discards Rotation from Matricies with small scale #1058

Open
cnsboth opened this issue Apr 17, 2020 · 0 comments
Open

SceneViewer discards Rotation from Matricies with small scale #1058

cnsboth opened this issue Apr 17, 2020 · 0 comments

Comments

@cnsboth
Copy link

cnsboth commented Apr 17, 2020

In our company we are using Scene Viewer to enable AR for our 3D web viewer.
We noticed that some models have the wrong orientation in AR as well as in the Scene Viewer Preview but not in other gltf viewers like https://github.khronos.org/glTF-Sample-Viewer/

Our Server can output various CAD models converted to GLTF. In our vertex data one unit corresponds to one millimeter. So to display it correctly in AR we apply a matrix with a scale factor of 0.001.
The same matrix also holds rotation information about the model.

For some reason SceneViewer discards the rotation information when the scale is very small like ours. Nonetheless the scale factor from the matrix is applied correctly.

I've build a minimal example gltf so that you can reproduce the issue:

Letter-ExampleGLTF.zip

rotationIssue

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

No branches or pull requests

1 participant