Skip to content

Scene viewer can't load object due to AR QuickLook parameters when auto generating USDZ blob #3992

@elizaII

Description

@elizaII

Description

Scene Viewer will throw an error whenever I've appended AR quicklook parameters to src (per the pull request #3434) since I want to auto generate the USDZ file as well. The AR quicklook parameters work splendid on iOS' quicklook, but causes Scene Viewer to fail. I suspect it's because the modelUrl for Scene Viewer never checks if it contains a hash (with the quicklook parameters) (line 308-336 in ar.ts), so Scene Viewer can't find the object file. It will look for a file that looks like the following:locationUrl/file.glb#quicklookParameters, which doesn't exist.

You can reproduce it by appending a hash with any parameters after the file in src.
Removing the hash and subsequent parameters loads the object fine in Scene Viewer.

Live Demo

https://fixed-honeysuckle-nickel.glitch.me/

On iOS (the auto-generated version with the banner) ✅

On Android (launching Scene Viewer)

Translation: Couldn't load object; Looks like there's something wrong with this object.

Version

  • model-viewer: v2.1.1

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

AR

  • WebXR
  • SceneViewer
  • QuickLook

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions