-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
29 lines (25 loc) · 1.1 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
<!DOCTYPE html>
<head>
<title>3D Cube</title>
<meta charset="utf-8" />
<script src="./js/aframe.min.js"></script>
<script src="./js/aframe-ar.js"></script>
<script src="./js/transform.js"></script>
<script src="./js/custom.js"></script>
</head>
<body style='margin : 0px; overflow: hidden; font-family: Monospace;'>
<div style='position: fixed; top: 10px; width:100%; text-align: center; z-index: 1;'>
<a href="https://github.com/EPSIBordeaux/ar-cube" target="_blank">ar-cube EPSI Project</a>
</div>
<a-scene embedded arjs='sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3;' setup>
<!-- handle hiro marker -->
<!-- 'registerevents' will register event listeners for the marker when it is found and lost,
as defined in the inline script above -->
<a-marker preset='hiro' id='marker-hiro' registerevents>
<a-box position='0 0.5 0' material='opacity: 0.5; side: double;color:white;'></a-box>
</a-marker>
<!-- add a simple camera -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>