creating a banner while in AR with ar-status #4550
-
Hi! I'm trying to set up a landing page with a simple 3D/AR experience using model-viewer. The iOS part is up and running but the 'android' part is not quite there yet. While in AR mode I need a banner with a short description and link to my portfolio (that is working just fine with QuickLook). As the model-viewer documentation suggests I'm using ar-status through CSS. With the options 'not-presenting' and 'failed' works alright (the banner shows while in the browser, not in AR), but it is not working with 'session-started' and 'object-placed' which is what I really need. Instead o having the banner I get the screen capture button, any ideas why? While testing I used the ar-status options one by one and all at once (as you can see in the CSS at the end of this post). So secondary question, can the ar-status options be used simultaneously? Something like: model-viewer[ar-status="session-started object-placed not-presenting failed"] so the banner is present all the time. I'm a graphic designer so my main skills are somewhere else, I try my best with documentations and forums like this one so I apologize if I made/asked something dumb. Here's the test-site This is the model-viewer html
This is the prompt/banner html
This is the prompt or 'banner' css
This is the ar-status css
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So I just found out about the html child element in #3811 , I'm gonna do some testing tomorrow and see what happens! |
Beta Was this translation helpful? Give feedback.
-
To see the HTML banner in AR, you need to be using WebXR. Currently you're prioritising SceneViewer with this attribute:
You need to prioritise WebXR like this:
|
Beta Was this translation helpful? Give feedback.
To see the HTML banner in AR, you need to be using WebXR. Currently you're prioritising SceneViewer with this attribute:
ar-modes="scene-viewer webxr quick-look"
You need to prioritise WebXR like this:
ar-modes="webxr scene-viewer quick-look"