1
我只想用Hiro標記在我的網頁瀏覽器上顯示AR.js(增強現實)的PNG文件!但結果是一個黑盒子,我不明白這個問題。用AR.js顯示PNG圖像文件(增強現實)
謝謝你的幫助 伯努瓦
<!DOCTYPE html>
<html>
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs>
<a-assets>
<img id="transpImage" src="http://www.icone-png.com/png/13/13081.png">
</a-assets>
<a-image width="1" height="1" src="#transpImage"></a-image>
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>
</html>