-
Notifications
You must be signed in to change notification settings - Fork 0
/
ar.html
131 lines (111 loc) · 4.77 KB
/
ar.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
<script src="https://raw.githack.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
</head>
<body style="margin: 0; overflow: hidden;">
<a-scene
renderer="logarithmicDepthBuffer: true;"
embedded
loading-screen="enabled: true;"
arjs="sourceType: webcam; debugUIEnabled: false;"
>
<a-assets>
<a-asset-item
id="animated-asset"
src="assets/asset-flag.glb"
></a-asset-item>
<a-asset-item
id="animated-asset-cat"
src="assets/asset-cat.glb"
></a-asset-item>
<a-asset-item
id="animated-asset-alice"
src="assets/asset-alice.gltf"
></a-asset-item>
<a-asset-item
id="animated-asset-julia"
src="assets/asset-julia.glb"
></a-asset-item>
<a-asset-item
id="india-asset"
src="assets/asset-india.glb"
></a-asset-item>
<video
src="assets/asset-catherine.mp4"
preload="auto"
id="vid"
response-type="arraybuffer"
loop="true"
crossorigin
webkit-playsinline
autoplay ="true"
muted="false"
playsinline
></video>
</a-assets>
<a-entity
look-at="[gps-camera]"
animation-mixer="loop: repeat"
gltf-model="#animated-asset"
scale="1 1 1"
gps-entity-place="latitude: 51.534938; longitude: -0.125173;"
></a-entity>
<a-entity
look-at="[gps-camera]"
animation-mixer="loop: repeat"
gltf-model="#animated-asset-julia"
scale="0.5 0.5 0.5"
gps-entity-place="latitude: 51.53540956431046; longitude: -0.12420944500263432;"
></a-entity>
<a-entity
look-at="[gps-camera]"
animation-mixer="loop: repeat"
gltf-model="#animated-asset-alice"
scale="1 1 1"
gps-entity-place="latitude: 51.53540956431070; longitude: -0.12420944500263450;"
></a-entity>
<a-entity
look-at="[gps-camera]"
gltf-model="#animated-asset-cat"
scale="2.2957866146019565 2.2957866146019565 2.2957866146019565"
gps-entity-place="latitude: 51.53545223406967; longitude: -0.12577649205923083;"
></a-entity>
<a-entity
look-at="[gps-camera]"
animation-mixer="loop: repeat"
rotation="90 0 0"
gltf-model="#india-asset"
scale="2.2957866146019565 2.2957866146019565 2.2957866146019565"
gps-entity-place="latitude: 51.53545223406967; longitude: -0.12577649205923083;"
></a-entity>
<a-image
src="assets/asset.jpeg"
look-at="[gps-camera]"
scale="1 1 1"
gps-entity-place="latitude: 51.53588935675412; longitude: -360.12490401975816;"
></a-image>
<a-video
src="#vid"
position='0 0.1 0'
rotation="-90 0 0"
look-at="[gps-camera]"
videohandler
smooth="true"
smoothCount="10"
smoothTolerance="0.01"
smoothThreshold="5"
autoplay="true"
scale="50 50 50"
gps-entity-place="latitude: 51.53541795471287; longitude: -0.12374455993267476;"
></a-video>
<a-camera look-controls-enabled='true' arjs-look-controls='smoothingFactor: 0.1' gps-camera='minDistance: 2' ></a-camera>
</a-scene>
</body>
</html>