forked from stemkoski/AR.js-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzahlencode.html
62 lines (51 loc) · 2.22 KB
/
zahlencode.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
<!doctype HTML>
<html>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<script src="js/aframe.min.js"></script>
<script src="js/aframe-ar.js"></script>
<!-- support 3D text -->
<script src="js/aframe-text-geometry-component.min.js"></script>
<body style="margin: 0px; overflow: hidden;">
<!-- add some info at the top of the page -->
<p align="center"> Schaut euch um, was ihr hiermit scannen könnt!<br>Look around and see what you can scan with this! </p>
<a-scene embedded vr-mode-ui="enabled: false;" arjs="debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3;">
<a-assets>
<a-asset-item id="exoFont" src="fonts/exoBlack.typeface.json"></a-asset-item>
<img id="pixels" src="images/pixels.png" />
</a-assets>
<!-- 3D text 0 = Dom (3. Stelle im Code) 4083-->
<a-marker type="barcode" value="0">
<!-- using aframe-text-geometry component
can set: bevelSize, bevelThickness, curveSegments, font, height, size, style, value.
alignment (centering) may be tricky; try calculating bounding box and repositioning.
for more info, see: https://www.npmjs.com/package/aframe-text-geometry-component -->
<a-entity text-geometry="value: 8; font: #exoFont;"
material="color: yellow; src: #pixels; repeat: 0.5 0.5;"
rotation="-90 0 0">
</a-entity>
</a-marker>
<!-- 3D text 9 = tv tower (4. Stelle im Code) 4083-->
<a-marker type="barcode" value="9">
<a-entity text-geometry="value: 3; font: #exoFont;"
material="color: blue; src: #pixels; repeat: 0.5 0.5;"
rotation="-90 0 0">
</a-entity>
</a-marker>
<!-- 3D text 10 = else (1. Stelle im Code) 4083-->
<a-marker type="barcode" value="10">
<a-entity text-geometry="value: 4; font: #exoFont;"
material="color: green; src: #pixels; repeat: 0.5 0.5;"
rotation="-90 0 0">
</a-entity>
</a-marker>
<!-- 3D text 15 = bbtor (2. Stelle im Code) 4083-->
<a-marker type="barcode" value="15">
<a-entity text-geometry="value: 0; font: #exoFont;"
material="color: red; src: #pixels; repeat: 0.5 0.5;"
rotation="-90 0 0">
</a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>