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

screenshot using webxr

Open lucasmatheustesta opened this issue 4 years ago • 5 comments

Description

I know that using scene-viewer it already come with the screenshot button. I'd like to know if there is anyway to implement screenshot feature using webxr. Thank you

Version

  • model-viewer: v1.1.0

Browser Affected

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

OS

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

lucasmatheustesta avatar Aug 26 '20 21:08 lucasmatheustesta

I would love to implement this; the webXR team is discussing how best to expose this functionality in a web API.

elalish avatar Aug 26 '20 21:08 elalish

Any update on this yet?

Podden avatar May 04 '21 13:05 Podden

Were there any updates on this?

iiLearner avatar Feb 28 '23 14:02 iiLearner

This would be awesome!

gabrielgaldinomagalhaes avatar Apr 26 '23 23:04 gabrielgaldinomagalhaes

From my understanding, this needs webxr raw camera access that is now available since Chrome 107. https://github.com/immersive-web/raw-camera-access/blob/main/explainer.md The doc there doesn't help much... I found an experiment with this api via the following YouTube video https://www.youtube.com/watch?v=CbETxtioNlY Here is the live demo https://graemeniedermayer.github.io/ArExperiments/html/cameraAccessWithoutDepth.html The source code is here https://github.com/graemeniedermayer/ArExperiments/blob/main/javascript/cameraAccessWithoutDepth.js

This is a bit too low level gl stuff for me currently, but if anyone want to look at it, please go ahead.

vincentfretin avatar May 17 '23 13:05 vincentfretin