model-viewer icon indicating copy to clipboard operation
model-viewer copied to clipboard

Question: Support for model with app specific gui (DOM) and screenshot functionality

Open tom-r-o opened this issue 5 years ago • 3 comments

Description

My requirement - show an AR model with:

  • Application specific ui (add a couple of playback buttons)
  • Support taking a screenshot

IIUC the webxr mode does not allow taking a screenshot, but Scene View does. Is is possible to add DOM elements on top of Scene Viewer?

Note: when searching "panda" in google in an android device there's a Scene View mode that has specialized UI. Is this API available and documented?

Browser Affected

  • [x] Chrome
  • [ ] Edge
  • [ ] Firefox
  • [ ] IE
  • [x] Safari

OS

  • [x] Android
  • [x] iOS
  • [ ] Linux
  • [ ] MacOS
  • [ ] Windows

tom-r-o avatar Dec 29 '20 10:12 tom-r-o

No, DOM customization not part of scene-viewer's API, and is unlikely to be since it is an app external to the browser. However, we are working to bring screenshots to WebXR.

elalish avatar Dec 29 '20 16:12 elalish

To clarify, when googling "panda" and entering the AR mode there's a gallery with Scene View - how is it made? (is it an android application?)

image

tom-r-o avatar Dec 30 '20 13:12 tom-r-o

Yes, scene-viewer is an Android application, as is AGSA (the Android Google Search App, which scene-viewer is a part of).

elalish avatar Dec 30 '20 17:12 elalish