forked from takahirox/a-mmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
42 lines (35 loc) · 1.56 KB
/
index2.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
41
42
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MMD Models</title>
<meta name="description" content="A-Frame MMD pose">
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
<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="./build/a-mmd.min.js"></script>
</head>
<body>
<!--
The license of MMD assets used here
https://github.com/mrdoob/three.js/tree/dev/examples/models/mmd#readme
-->
<a-scene antialias="true" outline>
<a-assets>
<img id="sky" crossorigin="anonymous" src="https://cdn.rawgit.com/aframevr/aframe/v0.7.1/examples/primitives/models/peach-gradient.jpg">
</a-assets>
<a-entity position="0 15 8">
<a-camera></a-camera>
</a-entity>
<a-entity mmd>
<a-entity mmd-model="model:https://cdn.rawgit.com/mrdoob/three.js/r87/examples/models/mmd/miku/miku_v2.pmd;
vpd:https://cdn.rawgit.com/takahirox/MMDLoader-app/master/assets/vpd/imas/makoto_basic.vpd;
physics:true; blink:true" position="0 0 0"></a-entity>
</a-entity>
<a-plane rotation="-90 0 0" color="#AAAAAA" height="200" width="200"></a-plane>
<a-sky src="#sky"></a-sky>
<a-light type="ambient" color="#888"></a-light>
<a-light color="#AAA" distance="100" intensity="0.4" type="point"></a-light>
</a-scene>
</body>
</html>