model-viewer
model-viewer copied to clipboard
screenshot using webxr
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
I would love to implement this; the webXR team is discussing how best to expose this functionality in a web API.
Any update on this yet?
Were there any updates on this?
This would be awesome!
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.