-
Notifications
You must be signed in to change notification settings - Fork 9
/
camera.html
64 lines (63 loc) · 2.06 KB
/
camera.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Cache-control" content="public" />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>
Augnex
</title>
<script src="https://apis.mapmyindia.com/advancedmaps/v1/mlshmhqdw8sytpv197pbjfdes81y5k93/map_load?v=1.3"></script>
<style>
html,
body,
#map {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
</style>
<link rel="icon" href="favicon.png" type="image/gif" sizes="16x16" />
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<script>
THREEx.ArToolkitContext.baseURL =
"https://raw.githack.com/jeromeetienne/ar.js/master/three.js/";
</script>
<link rel="stylesheet" href="./index.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css"
/>
</head>
<body style="margin: 0; overflow: hidden;">
<a-scene
cursor="rayOrigin: mouse; fuse: true; fuseTimeout: 0;"
raycaster="objects: [gps-entity-place];"
vr-mode-ui="enabled: false"
embedded
arjs="sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;"
>
<a-camera gps-camera="minDistance: 10" rotation-reader> </a-camera>
</a-scene>
<a
href="home.html"
class="btn btn-primary"
style=" position: fixed;
bottom: 0;
width: 100vw;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
"
>
Navigation
</a>
<!-- <div id="map"></div> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="./ar.js"></script>
</body>
</html>