-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-r.html
47 lines (24 loc) · 1.13 KB
/
index-r.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
43
44
45
46
47
<!doctype HTML>
<html>
<!-- include A-Frame obviously -->
<script src="./build/aframe-v0.8.2.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="./build/aframe-ar.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs>
<a-assets>
<a-asset-item id="tree-obj" src="./3Dmodels/2.obj"></a-asset-item>
<a-asset-item id="tree-mtl" src="./3Dmodels/2.mtl"></a-asset-item>
</a-assets>
<!-- load gltf model -->
<a-marker preset='custom' type='pattern' url='./build/data/pattern-marker.patt'>
<!-- <a-entity gltf-model="/static/gltf/scene.gltf" animation-mixer scale="1 1 1" rotation="-120 0 0" position="0 0.5 0"></a-entity> -->
<a-entity obj-model="obj: #tree-obj; mtl: #tree-mtl" scale="0.2 0.2 0.2" rotation="-90 0 0" position="0 2.0 0"></a-entity>
<!-- <a-animation attribute="rotation" dur="9000" to="-120 0 0" repeat="indefinite"></a-animation> -->
</a-entity>
</a-marker>
<!-- add camera -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>