2

我已经很好地使用了 2D 图像,并且在控制台中没有任何错误,但是当尝试使用 gltf 模型时,没有任何显示,并且我收到以下错误“无法读取 aframe.min.js 中未定义的属性 'slice' :121'。

这是我得到模型的地方 - https://sketchfab.com/models/294e79652f494130ad2ab00a13fdbafd

这是我试图遵循的文档 - https://aframe.io/blog/arjs/

<html>
<head>
  <meta aframe-injected="" name="viewport"
        content="width=device-width,initial-scale=1,maximum-scale=1,shrink-to-fit=no,user-scalable=no,minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes">


  <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>

  <script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>


</head>

<body>
<a-scene embedded arjs>

  <a-assets>

    <a-asset-item id="drone" src="busterDrone/busterDrone.gltf"></a-asset-item>

  </a-assets>


  <a-marker preset="hiro">

    <!--why doesn't this work?-->
    <a-entity gltf-model="#drone"></a-entity>

</a-marker>


</a-scene>


</body>
</html>
4

1 回答 1

1

这似乎与 a-frame 相关,而不是 AR.js

于 2017-08-13T14:04:54.310 回答