tori
tori

Reputation: 11

a-frame error 'core: a-assets warn Asset loading timed out 3000ms

    <a-scene environment="preset: forest">
      <a-assets>
        <a-asset-item id="duck" src="./assets/duck.glb"></a-asset-item>
      </a-assets>
      <a-entity gltf-model="#duck" position="-4 -4 -4"></a-entity>
      <a-entity
        camera
        position="-1.946 2.807 -3.552"
        wasd-controls
        look-controls
      >
      </a-entity>
    </a-scene>
!error message!
core:propertyTypes:warn "#duck" asset not found. 
http://localhost:8080/assets/duck.glb 404 (Not Found)
aframe-master.js?ce54:2199 core:a-assets:warn Asset loading timed out in   3000 ms

I'm trying to connect a-frame with Vue, but I can't get a file from the asset. I keep getting that error, but I haven't been able to solve it at all. I'm not used to a-frame, so I need help. Please help me.

And another question is, I set the environment="preset: forest" property, but when I open the server, the environment property is not working. What's wrong with this?

Upvotes: 1

Views: 1619

Answers (1)

Zulker Nien
Zulker Nien

Reputation: 51

By default, asset loading time is set to 3seconds. Setting a custom timeout for fairly large assets solved it for me.

<a-assets timeout="10000">
        <a-asset-item id="duck" src="./assets/duck.glb"></a-asset-item>
</a-assets>

Upvotes: 2

Related Questions