-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.1.html
21 lines (21 loc) · 1.15 KB
/
index.1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- AR.js by @jerome_etienne - github: https://github.com/jeromeetienne/ar.js - info: https://medium.com/arjs/augmented-reality-in-10-lines-of-html-4e193ea9fdbf -->
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/examples/vendor/aframe/build/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam;'>
<!-- handle marker with your own pattern -->
<!-- <a-marker type='pattern' patternUrl='one.patt'> -->
<!-- <a-box position='0 0.5 0' material='color: red;'></a-box> -->
<!-- </a-marker> -->
<!-- handle marker with hiro preset -->
<a-marker preset='hiro'>
<a-box position='0 0.5 0' material='color: blue;'></a-box>
</a-marker>
<!-- <a-marker preset='kanji'> -->
<!-- <a-box position='0 0.5 0' material='color: green;'></a-box> -->
<!-- </a-marker> -->
<!-- handle barcode marker -->
<!-- add a simple camera -->
<!-- <a-entity camera></a-entity> -->
</a-scene>
</body>