2017-08-13 20 views
2

我已经很好地使用了2D图像,并且在控制台中没有任何错误,但是当尝试使用gltf模型时,什么也没有显示,我得到了以下错误'无法读取aframe.min.js:121'处未定义的属性'切片'。在使用GLFF模型和aframe-ar.js时,获取'无法读取未定义的属性'片'

这是我得到的模型 - 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> 
+1

[This answer](https://stackoverflow.com/a/44708737/165674)帮助我解决了类似的问题。 –

+0

完美,谢谢你 –

+0

[(A-Frame)本地gltf不会加载可能的副本;无法读取未定义的属性'切片'](https://stackoverflow.com/questions/44698203/a-frame-local-gltf-wont-load-cannot-read-property-slice-of-undefined) –

回答

1

这似乎与一帧比AR.js

更多
相关问题