/
index.html
33 lines (26 loc) · 1.23 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DPT-AR</title>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs="debugUIEnabled:false;">
<a-entity camera></a-entity>
<!-- Markerを表示した際の処理を以下に記述する -->
<!-- ARマーカーのファイル名をここで指定する -->
<a-marker type="pattern" url="img/pattern-dpt.patt">
<!-- 表示したい画像を src= ~ で指定する -->
<!-- 画像の大きさは width と height で設定可能 -->
<!-- 画像を表示させる位置は position で設定可能 -->
<!-- 画像を水平に表示させる場合は下記の rotation でOK -->
<a-image width="5" height="5" position="0.2 0.4 0.4" rotation="-90 0 0" src="img/dpt.jpg">
</a-image>
</a-marker>
</a-scene>
</body>
</html>