-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (24 loc) · 961 Bytes
/
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
<!doctype HTML>
<html>
<head>
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.0/aframe/build/aframe-ar.js"></script>
</head>
<body style='margin : 0px; overflow: hidden;'>
<!-- <a-scene embedded arjs='sourceType: webcam;'> -->
<a-scene embedded arjs>
<!-- put your content here. -->
<!-- define your gltf asset -->
<a-assets>
<a-asset-item id="tree" src="tree.glb"></a-asset-item>
</a-assets>
<!-- use your gltf model -->
<a-entity gltf-model="#tree"></a-entity>
<!-- define a camera which will move according to the marker position -->
<!-- <a-marker-camera preset='hiro'></a-marker-camera> -->
<a-marker-camera type='pattern' url='hiro.patt'></a-marker-camera>
</a-scene>
</body>
</html>