-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathar0204-primitive-a-text.html
31 lines (28 loc) · 1.22 KB
/
ar0204-primitive-a-text.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
<!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: a-text</title>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene vr-mode-ui="enabled: false" embedded arjs>
<a-anchor>
<a-entity rotation="-90 0 0">
<a-text value="This is a-text" color="yellow" position="0 1.5 0" align="center"></a-text>
<!-- a-plane -->
<!-- https://aframe.io/docs/1.0.0/primitives/a-text.html -->
<a-plane width="2" height="1" 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-entity>
</a-anchor>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>