Hi everyone! This is similar to that other post, but I’m trying to embed model viewer onto my website and I’m also not a developer and have little understanding of how this works.
I exported my 3d model from Illustrator as a GLTF and imported it onto ModelViewer and copied the code it gave me.
All my code right now is:
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js"></script>
<model-viewer src="Asset 1.gltf" ar ar-modes="webxr scene-viewer quick-look" camera-controls poster="poster.webp" shadow-intensity="0" environment-image="aircraft_workshop_01_1k.hdr" exposure="0.94" tone-mapping="neutral" camera-orbit="0.8286deg 87.01deg 0.6101m" field-of-view="30deg">
<div class="progress-bar hide" slot="progress-bar">
<div class="update-bar"></div>
</div>
<button slot="ar-button" id="ar-button">
View in your space
</button>
<div id="ar-prompt">
<img src="https://modelviewer.dev/shared-assets/icons/hand.png">
</div>
</model-viewer>
And it shows a button with a hand. When I click the button, it does nothing.
Do I need to type other code than what model viewer gives me? I’ve pasted other example model viewer code to test if THOSE’LL work, but they just show nothing. Am I pasting the code in the wrong place?
I’m trying to get my model to be interactable like the logo on this site: https://barbaracadorna.com/about/
Any help would be appreciated, thank you!