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

Generated usdz has a random y rotation when the auto-rotate attribute is used #4732

Closed
3 of 13 tasks
vincentfretin opened this issue Apr 2, 2024 · 2 comments · Fixed by #4753
Closed
3 of 13 tasks

Comments

@vincentfretin
Copy link

vincentfretin commented Apr 2, 2024

Description

When not using ios-src, the generated usdz is correctly facing us when you don't have the auto-rotate attribute on the model-viewer tag.
When you have the auto-rotate attribute set, the generated usdz y rotation is different each time you click on the AR button.
I have currently no idea how this is correlated and where in the code the issue may be.
I found the issue while testing the placement "wall" for QuickLook, see my original comment #4030 (comment)

Live Demo

https://vfretin-wrong-usdz-y-rotation.glitch.me/
I removed the ios-src attribute and kept the auto-rotate attribute.

https://vfretin-ok-usdz-y-rotation.glitch.me/
I removed the ios-src and the auto-rotate attributes. This one is working correctly.

Version

  • model-viewer: v3.4.0

Browser Affected

  • Chrome, version: xx.x.xxxx.xx
  • Edge
  • Firefox
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

AR

  • WebXR
  • SceneViewer
  • QuickLook
@elalish
Copy link
Collaborator

elalish commented Apr 15, 2024

Thank you for the very clear repro!

@vincentfretin
Copy link
Author

I'm glad you found the issue and did the fix!

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