-
Notifications
You must be signed in to change notification settings - Fork 11
/
vr-primitive-a-sky.html
37 lines (31 loc) · 1.25 KB
/
vr-primitive-a-sky.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
<!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-sky</title>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs>
<a-assets>
<img id="lego" src="./images/360/lego_conv.jpg">
</a-assets>
<!-- A plain color as a background -->
<a-sky color="#6EBAA7"></a-sky>
<!-- An equirectangular image as a background -->
<a-sky src="#lego"></a-sky>
<a-anchor>
<!-- a-plane -->
<a-plane width="2" height="1" position="0 0 0" 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>