how to add 2d video instead of 3d model in mind-ar by using its scripts?

35 Views Asked by At

I just started using mind-ar opensource project on git hubtext this one has the JS version. and I cant replace the 3d model, here is the snippet

      <a-assets>
        <a-asset-item id="bearModel" src="https://cdn.jsdelivr.net/gh/hiukim/[email protected]/examples/image-tracking/assets/band-example/bear/scene.gltf"></a-asset-item>
        <a-asset-item id="raccoonModel" src="https://cdn.jsdelivr.net/gh/hiukim/[email protected]/examples/image-tracking/assets/band-example/raccoon/scene.gltf"></a-asset-item>
      </a-assets>

it is using .gltf format for its 3d models so I gave it from my local storage :file:///d:/file.gltf but it didn't work so I deployed that file on GitHub pages and pasted that URL in it and it started loading and when I showed the target image it removed the UI mean it has placed the model on top of it but it was not showing the model. so I want to replace that model with a 2d transparent video (after removing its green screen.)

0

There are 0 best solutions below