-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (28 loc) · 1.02 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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
</head>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded artoolkit='sourceType:webcam;'>
<a-marker preset="hiro">
<a-entity>
<a-entity id="drone" position="0 0 -0.5" scale="0.5 0.5 0.5" rotation="-90 -45 45"
gltf-model-next="src: url(./assets/marcus/scene.gltf);"
animation-mixer>
</a-entity>
<a-animation attribute="alternate"
fill="backwards"
to="0 0 0.5"
repeat="indefinite"
direction="alternateReverse"
begin="1000"
dur="10000">
</a-animation>
</a-entity>
</a-marker>
</a-scene>
</body>
</html>