【发布时间】:2018-05-18 14:26:16
【问题描述】:
我想知道 Ar.js 是如何工作的,但我被困在了 创建自定义标记和自定义形状,有什么方法可以 自定义事物。
这就是我要开始的事情。
<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>
<!-- create your content here. just a box for now -->
<a-box position='0 0.5 0' material='opacity: 0.5;'></a-box>
<!-- define a camera which will move according to the marker position -->
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>
这是一个简单的入门示例
【问题讨论】:
标签: javascript aframe ar.js