question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to open scene viewer without showing the 3d model with model-viewer?

See original GitHub issue

For 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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tehfonsicommented, Jun 10, 2020
2reactions
cdatacommented, May 16, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to open scene viewer without showing the 3d ...
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...
Read more >
Using Scene Viewer to display interactive 3D models in AR ...
Launch Scene Viewer natively in AR directly from a 3D model embedded in a web page.
Read more >
<model-viewer> Examples and Documentation
It's useful if the 3D model file is stored on another server that require authentication. By default the file will be fetch without...
Read more >
Customize a WebXR Augmented Reality ...
This demonstrates the use of slots, as well as shared and unshared DOM between the 3D and AR modes. A slot is used...
Read more >
<model-viewer>
Easily display interactive 3D models on the web and in AR.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found