-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathar0104-disable-vr-button.html
28 lines (25 loc) · 1.13 KB
/
ar0104-disable-vr-button.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
<!doctype HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!-- Correcting zooming issue -->
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Library untuk VR membangun 3D -->
<script src="./js/aframe/aframe.min.js"></script>
<!-- Library untuk AR yang melakukan pengenalan marker dan menyematkan kamera-->
<script src="./js/arjs/aframe-ar.js"></script>
<title>WebAR: Disable VR UI</title>
</head>
<body style="margin : 0px; overflow: hidden;">
<!-- Disable VR UI in A-Frame and debug UI in AR.js -->
<a-scene embedded vr-mode-ui="enabled: false" arjs="debugUIEnabled: false;">
<!-- a-anchor merupakan alias dari a-marker, keduanya memiliki fungsi yang sama -->
<a-anchor>
<a-plane width="2" height="1" rotation="-90 0 0" color="blue" material="opacity: 0.5;">
<a-text value="Ini adalah sebuah bidang" color="#111" position="0 0.6 0" align="center"></a-text>
</a-plane>
</a-anchor>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>