(对不起我的英语) 在网路上可以正确显示,但在行动Android上则无法显示。该手机的Android版本为5.1.1,可以正确显示3D对象,例如CUBES,但不能正确显示GLTF模型。
我无法在更新的Android版本中尝试过,也许就是这样吗?
<html>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs>
<a-marker type='pattern' url='pattern-2.patt' registerevents>
<a-box shader= flat position='0 0.5 0' material='opacity: 1;' scale="0.5 0.5 0.5">
<a-animation attribute="rotation"
dur="3000"
to="0 -360 0"
repeat="indefinite"
easing= "linear">
</a-animation>
</a-box>
<a-entity
position="0 1 0"
scale="0.01 0.01 0.01"
gltf-model="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
></a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>```