-
Notifications
You must be signed in to change notification settings - Fork 0
/
ar-v1.html
34 lines (34 loc) · 1.17 KB
/
ar-v1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
<script src="src/aframe-ar-before-rewrite.js"></script>
<script src="src/component-refraction.js"></script>
<title>Title</title>
<style>
#arjsDebugUIContainer {display:none!important;}
</style>
</head>
<body style="height: 100vh; width: 100%;">
<a-scene arjs='sourceType: webcam;'>
<a-marker preset="custom" url="assets/pattern-v.patt">
<a-entity
obj-model="obj: url(assets/v.obj); mtl: url(assets/v.mtl)"
position="0 0 0"
scale="0.0016 0.001 0.0016"
refraction-material="refractionIndex: 0.85; opacity: 1; distance: 1.15; tintColor: [0, 0, 0];"
>
<a-animation
attribute="rotation"
to="0 360 0"
dur="6000"
easing="linear"
repeat="indefinite"
/>
</a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>