I'm trying to import a gltf-model into my scene, but even with correct paths and references the console claims the "core:propertyTypes:warn "#model" asset not found. +0ms". Tried with a gltf-model exported from Blender by me as well as a downloaded working model. I am not having this problem with any .obj-files in the scene. Any suggestions to what I could try to change?
<a-assets>
<a-asset-item id="monster" src="/monster.gltf"></a-asset-item>
<a-asset-item id="separaterunner" src="/separaterunner.gltf"></a-asset-item>
<item id="plane" src="/plane.glb"></item>
</a-assets>
<a-entity id="separaterunner" gltf-model="gltf: #separaterunner"></a-entity>
<a-entity id="plane" gltf-model="gltf: #plane"></a-entity>
<a-entity id="monster" gltf-model="#monster"></a-entity>
If I use the same code structure for .gltf-files as for .obj-files I no longer get the error about "asset not found" but instead an error about cross origin requests. Why is that for .gltf but not for .obj?
Thanks