-
Notifications
You must be signed in to change notification settings - Fork 0
/
AR.html
56 lines (50 loc) · 1.8 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
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Experiencia ARcor</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-look-at-component@0.8.0/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://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap" rel="stylesheet">
<!--
<script>
window.onload = () => { navigator.geolocation.getCurrentPosition((position) => {
document.querySelector('a-text').setAttribute('gps-entity-place', `latitude: ${position.coords.latitude}; longitude: ${position.coords.longitude};`)
});
}
</script>
-->
</head>
<body style="margin: 0; overflow: hidden;">
<div id="scene">
<a-scene
vr-mode-ui="enabled: false"
embedded
arjs="sourceType: webcam; debugUIEnabled: false;"
>
<a-assets>
<a-asset-item id="egg-obj" src="./assets/model/EggAM/a_mousse.obj"></a-asset-item>
<a-asset-item id="egg-mtl" src="./assets/model/EggAM/a_mousse.mtl"></a-asset-item>
</a-assets>
<a-entity
id="BonNegro"
obj-model="obj: #egg-obj; mtl: #egg-mtl"
position="0 1 -3.30"
scale="0.1 0.1 0.1"
visible="true"
metalness="1">
</a-entity>
<!--
<a-text
value=""
look-at="[gps-camera]"
scale="5 5 5"
></a-text>
-->
<a-camera camera rotation-reader> </a-camera>
</a-scene>
</div>
</body>
</html>