Is it possible to view my GLTF and USDZ file in AR from clicking a button. I do not want to have a background poster or object preview just a button.
Asked
Active
Viewed 2,593 times
2 Answers
1
But here: https://modelviewer.dev/examples/model-formats.html
You can see "With only a USDZ model" it should be possible. You could make the poster an empty/transparent image.
Then edit the button ui and make the model-viewer as big as your button. https://modelviewer.dev/examples/customizing-ui.html
From what I can see that is the best thing you can do right now.
EDIT:
Whoops, actually you can just call an intent to Scene Viewer in a link then style it as a button. Or a button with some js.
https://developers.google.com/ar/develop/java/scene-viewer#3d-or-ar

Aseliot
- 87
- 1
- 11
-
Thank you! stuck on this all day! – mick1996 Jan 17 '22 at 15:30