Is it possible to open scene viewer without showing the 3d model with model-viewer?
See original GitHub issueFor some cases we would like to create a link to open directly scene viewer, so we would like to know if it is possible.
I noticed model-viewer component creates an anchor with a ‘intent’ command with some fallback parameters.
is it possible to hide the model-viewer component but keep the link to open the AR functionality directly?
I tried with an anchor with the href attribute set with the intent command but it is not working, i also tried by handling the event and using another anchor to trigger the .click() method but it didn’t work, does it have any restriction or something like that?
intent://subdomain.domain.com/file.glb? link=https://domain/ar-example/ar-example.html &title=3dmodel #Intent; scheme=http; package=com.google.ar.core; action=android.intent.action.VIEW; S.browser_fallback_url=https://domain/ar-example.html#model-viewer-no-ar-fallback; end
<a href="intent://subdomain.domain.com/file.glb?link=https://domain/ar-example.html&title=3dmodel#Intent;scheme=http;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=https://domain/ar-example.html#model-viewer-no-ar-fallback;end"> AR </a>
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
You can find the full documentation here: https://developers.google.com/ar/develop/java/scene-viewer#ar-only
Sorry, your comment took me by surprise because I wrote the docs for that attribute 😉
It looks like the docs were accidentally reverted to an older version. I filed https://github.com/GoogleWebComponents/model-viewer/issues/549 to track this issue.
In the mean time, you can read the correct docs in the PR where
reveal
was added: #487