aframe - A-frame - glTF - Asset not found -


i'm trying import gltf-model scene, correct paths , references console claims "core:propertytypes:warn "#model" asset not found. +0ms". tried gltf-model exported blender me downloaded working model. not having problem .obj-files in scene. suggestions try 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 use same code structure .gltf-files .obj-files no longer error "asset not found" instead error cross origin requests. why .gltf not .obj?

thanks

there's syntax error in how you're using gltf-model component, in 2 of examples: should gltf-model="#foo", not gltf-model="gltf: #foo". (obj/mtl files bit different because there 2 files required).

if assets still not found after fixing that, may need include more information models in working folder, , how you're starting local server (if you're using one).


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -