-
Hi all, I hope I can get some help here. I have a model that works just fine with the default model-viewer html page generated by the editor. Now i want to add a header bar plus button to the page and as soon as I do this the 'AR view in your space' button is no longer visible in AR mode. What am I doing wrong or is this expected behaviour?. Can this be done? See my code below:
Preview of the model: https://makeit3d.nl/wp-content/uploads/client/Bekkersyachts/Azur45HT/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I believe the issue is that your MV element is actually going off the bottom of your screen - you can tell by doing a two-finger pan and looking at the little centering dot - that's always in the middle of the element, but it appears low in yours, so you aren't actually seeing the bottom of the MV element, which is where the AR button is. This is just the usual CSS weirdness, possibly having to do with the URL bar at the top of the screen in mobile. You might want to replace Also, nice boat - have you considered using our grounded skybox feature? https://modelviewer.dev/examples/lightingandenv/#groundedSkybox |
Beta Was this translation helpful? Give feedback.
I believe the issue is that your MV element is actually going off the bottom of your screen - you can tell by doing a two-finger pan and looking at the little centering dot - that's always in the middle of the element, but it appears low in yours, so you aren't actually seeing the bottom of the MV element, which is where the AR button is. This is just the usual CSS weirdness, possibly having to do with the URL bar at the top of the screen in mobile. You might want to replace
<model-viewer>
with an<img>
tag and tweak your CSS until you can see the whole image, then go back to MV.Also, nice boat - have you considered using our grounded skybox feature? https://modelviewer.dev/examples/ligh…