Is it possible to open scene viewer without showing the 3d model with model-viewer? #1860
Replies: 10 comments 1 reply
-
Hi @Esteban26 thanks for the questions. 🚨Important disclaimer: the implementation you are looking at in To answer your high-level question: it is possible to set To answer your low level question: the code you are looking at is the code that launches Scene Viewer. In short: you probably just have a small typo or something in the syntax, keep trying! |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response @cdata :) I already found my issues |
Beta Was this translation helpful? Give feedback.
-
intent://subdomain.domain.com/file.glb? |
Beta Was this translation helpful? Give feedback.
-
@cdata is the reveal attribute a public parameter/attribute? I didn't see it at the documentation. Will this attribute be able in future versions? https://googlewebcomponents.github.io/model-viewer/index.html |
Beta Was this translation helpful? Give feedback.
-
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 #549 to track this issue. In the mean time, you can read the correct docs in the PR where |
Beta Was this translation helpful? Give feedback.
-
Here is a more direct link to the correct docs: |
Beta Was this translation helpful? Give feedback.
-
You can find the full documentation here: https://developers.google.com/ar/develop/java/scene-viewer#ar-only |
Beta Was this translation helpful? Give feedback.
-
Hi! I've tried to inspect this thread and #631 carefully, but still can't get the solution. Is there a straight answer can showing GLB model in AR be as simple as USDZ only by direct link? Or scanning a QR code for example? Just point your device's camera at QR code and be redirected directly to AR mode? I've tried the way with calling intent, but it also works only if user touch the link with his own finger, calling this I remember the same issue with autoclicking default ar-button in model-viewer, console says such implementations are not permitted. God why? |
Beta Was this translation helpful? Give feedback.
-
You're running up against the browser security model. Entering AR either via WebXR or App intent is not allowed except by user activation. This means they have to actually click the AR button; you can't do it for them. You can use a custom AR button using our |
Beta Was this translation helpful? Give feedback.
-
Is it not possible to use the intent:// on IOS? I basically have a product configurator made that you can configure on desktop, and then when you click a "View In Room", a QR code will generate from the intent url so the configured product will launch automatically in AR instead of having to re-configure it all again on mobile and then finally click "View In Space". However whenever I put the intent URL in, and scan the generated QR Code, my Iphone says "No Usable Data Found". So for now I just have it linked to the document.URL so it'll at least open the model-viewer on the client's phone to configure it. Hopefully this makes sense? I've only got like a month's worth of history with HTML, CSS, JS so far so any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
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>
Beta Was this translation helpful? Give feedback.
All reactions