2
2D画像を表示するには問題ありませんでしたが、コンソールにエラーは表示されませんでしたが、何も表示されず、次のエラーが表示されます。 'aframe.min.js:121'で未定義の 'slice'プロパティを読み取れません。aframe-ar.jsでGLTFモデルを使用しているときに '未定義のプロパティ'スライスを読むことができません
私がモデルだ場所です - 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>
[この回答](https://stackoverflow.com/a/44708737/165674)は、同様の問題を解決するのに役立ちました。 –
パーフェクト、そのおかげです。 –
[(A-Frame)local gltf wont load;未定義のプロパティ 'slice'を読み取れません](https://stackoverflow.com/questions/44698203/a-frame-local-gltf-wont-load-cannot-read-property-slice-of-undefined) –