-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (35 loc) · 1.87 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
34
35
36
37
38
39
40
<!doctype HTML>
<html>
<!-- A-Frame ライブラリの読み込み -->
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<!-- AR.js ライブラリの読み込み -->
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
<!-- a-mmd ライブラリの読み込み -->
<script src="https://cdn.rawgit.com/kripken/ammo.js/dcab07bf0e7f2b4b64c01dc45da846344c8f50be/builds/ammo.js"></script>
<script src="https://cdn.rawgit.com/takahirox/aframe-outline/v1.1.1/build/aframe-outline.min.js"></script>
<script src="https://cdn.rawgit.com/takahirox/a-mmd/v1.0.3/build/a-mmd.min.js"></script>
<body style='margin:0px; overflow:hidden;'>
<!-- ここからA-Frame -->
<a-scene embedded arjs="debugUIEnabled:false;trackingMethod:best;" vr-mode-ui="enabled: false">
<!-- 光を当てる -->
<a-light type="directional" color="#B7B7B7" intensity="0.5" position="0 40 0"></a-light>
<!-- マーカー上になにを展開するかを書く -->
<!-- マーカーの読み取り結果 -->
<a-marker type='pattern' url='./pattern/negative.patt'>
<a-entity mmd="">
<a-entity rotation="-90 0 0" position="0 0 0" scale="0.1 0.1 0.1"
mmd-model="model:./model_obj/FML4/FML4.pmx; vmd:./motion/zoi/zoi1.vmd; physics:false; blink:true;"></a-entity> <!-- vmd:./MMDMotion/31.vmd; -->
</a-entity>
</a-marker>
<a-marker type='pattern' url='./pattern/positive.patt'>
<a-entity mmd="">
<a-entity rotation="-90 0 0" position="0 0 0" scale="0.1 0.1 0.1"
mmd-model="model:./model_obj/FML2/FML2.pmx; vmd:./motion/zoi/zoi1.vmd; physics:false; blink:true;"></a-entity> <!-- vmd:./MMDMotion/31.vmd; -->
</a-entity>
</a-marker>
<!-- カメラを追加 -->
<a-entity camera></a-entity>
</a-scene>
<!-- ここまでA-Frame -->
</body>
</html>