You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
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:
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
The text was updated successfully, but these errors were encountered: