Answer the question
In order to leave comments, you need to log in
How to load glTF model in AR.js?
Good day to all, I'm trying to deal with ar.js and everything that comes with it.
There was a problem, I can’t load the model that will be used, I tried many examples, but not one of them comes up.
Maybe someone has a working source code with a model? glTF
Just planning to convert 3dmax to glTF
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam;'>
<a-marker preset='hiro'>
<!--Adding a glTF 2.0 model to your scene-->
<a-entity
gltf-model-next="src: url(/damagedHelmet.gltf);"
>
</a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question