-
Notifications
You must be signed in to change notification settings - Fork 0
/
demoaframe.html
27 lines (21 loc) · 968 Bytes
/
demoaframe.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
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="xesoft.png">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="simple-client-simulator.js"></script>
</head>
<body>
<a-scene inspector="https://cdn.jsdelivr.net/gh/aframevr/aframe-inspector@master/dist/aframe-inspector.min.js">
<a-assets>
<a-asset-item id="chess-base" src="asset/chess_base.gltf" />
<a-asset-item id="chess-queen" src="asset/black_chess_queen.gltf" />
<a-asset-item id="chess-tower" src="asset/black_chess_tower.gltf" />
</a-assets>
<a-entity gltf-model="#chess-base" depth="1" position="0 0 -5" scale="7 7 7"></a-entity>
<a-entity gltf-model="#chess-queen" position="1.3 0 -3.7" scale="7 7 7"></a-entity>
<a-entity gltf-model="#chess-tower" position="0 0 -5" scale="7 7 7"></a-entity>
<a-entity gltf-model="#chess-tower" position="2.95 0 -5" scale="7 7 7"></a-entity>
</a-scene>
</body>
</html>