Files
gyk-ar/pages/first.html

34 lines
1.1 KiB
HTML

<html>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.7.5/aframe/build/aframe-ar.js"></script>
<!-- <script src="./assets/three.js"></script>
<script src="./assets/draco.js"></script> -->
<body style="margin : 0px; overflow: hidden;">
<a-scene
embedded
arjs="trackingMethod: best; debugUIEnabled: false sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3;"
>
<!-- <a-anchor hit-testing-enabled="true">
</a-anchor> -->
<a-marker type="barcode" value="5">
<a-box
material="opacity: 0.5; side:double; color:red;"
rotation="-90 0 0"
>
<a-text value="Hello, World!"></a-text>
</a-box>
<a-box
material="opacity: 0.5; side:double; color:yellow;"
position="1 1 1"
rotation="-90 0 0"
>
<a-text value="Hello, World!"></a-text>
</a-box>
</a-marker>
<a-entity camera look-controls></a-entity>
</a-scene>
<script></script>
</body>
</html>