Skip to content

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

@vincentfretin

Description

@vincentfretin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions