I am trying to load a gltf2.0 model using ar.js. I have tried it several time but I think I am wrong at something. Here's the code:
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/examples/vendor/aframe/build/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='trackingMethod: best;'>
<a-anchor hit-testing-enabled='true'>
<a-gltf-model-next src="damagedHelmet/damagedHelmet.gltf" scale="0.5 0.5 0.5"></a-gltf-model>
</a-anchor>
<a-camera-static/>
</a-scene>
</body>
The folder of gltf model is in the same folder in which the html code is. Can anyone please help me with this?
gltf-model-next. Just usegltf-model. Also, could you check that the model works on this drag-and-drop viewer? If not, there may be a problem with the model itself. - Don McCurdygltf-model-nexttogltf-modelis also not helping.Can you please share me any piece of html where a certain gltf model is loaded with updated version of libraries or can share the syntax for the same - Charizard