generated from stefanstoehr/ar-0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (32 loc) · 1.82 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
31
32
33
34
35
36
37
38
39
40
41
<!doctype HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>THE LIVING PLAN</title>
</head>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/1.7.7/aframe/build/aframe-ar.js"></script>
<!-- add this script in order to load a large set of 3D model extensions-->
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<body style='margin : 0px; overflow: hidden;' antialias="true">
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'>
<a-assets>
<a-asset-item id="area1" src="https://raw.githubusercontent.com/stefanstoehr/ar-1/master/LausitzerStr.gltf"></a-asset-item>
</a-assets>
<a-marker type="pattern" preset="custom" url="https://raw.githubusercontent.com/stefanstoehr/ar-1/master/pattern-eins.patt">
<a-entity
gltf-model="#area1"
scale="128 128 128" rotation="0 0 0">
</a-entity>
</a-marker>
<!-- use this <a-entity camera> to support multiple-markers, otherwise use <a-marker-camera> instead of </a-marker> -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>
<!-- thanks @ essentials
https://jeromeetienne.github.io/AR.js-docs/posts/post-XX-how-to-use-arjs-with-aframe.html
https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html
https://medium.com/swlh/ar-js-the-simplest-way-to-get-cross-browser-augmented-reality-on-the-web-10cbc721debc
https://medium.com/@aschmelyun/so-you-want-to-get-started-with-ar-js-41dd4fba5f81
-->