-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathar0202-primitive-objects-3D.html
More file actions
55 lines (52 loc) · 3.07 KB
/
ar0202-primitive-objects-3D.html
File metadata and controls
55 lines (52 loc) · 3.07 KB
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
<!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: Primitive 3D Objects</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-box position="0 0 0" rotation="0 45 0" color="#FFC300">
<a-text value="This is a-box" color="#111" align="center" position="0 0 0.6"></a-text>
</a-box>
<a-sphere position="0 3.6 0" radius="0.75" color="silver">
<a-text value="This is a-sphere" color="#111" align="center" position="0 -0.2 1.25"></a-text>
</a-sphere>
<a-cylinder position="0 1.75 0" radius="0.5" height="1.5" color="green">
<a-text value="This is a-cylinder" color="#111" align="center" position="0 0 0.6"></a-text>
</a-cylinder>
<a-octahedron position="-2 4 0" radius="0.5" height="2" color="orange">
<a-text value="This is a-octahedron" color="#111" align="center" position="0 0 0.6"></a-text>
</a-octahedron>
<a-icosahedron position="2 4 0" radius="0.5" height="2" color="blue">
<a-text value="This is a-icosahedron" color="#111" align="center" position="0 0 0.6"></a-text>
</a-icosahedron>
<a-torus-knot position="2 1.75 0" radius="0.5" color="#00FFFF">
<a-text value="This is a-torus-knot" color="#111" align="center" position="0 0 0.7"></a-text>
</a-torus-knot>
<a-torus position="-2 1.75 0" arc="320" radius="0.5" radius-tubular="0.1" color="#FF0000" rotation="0 45 0">
<a-text value="This is a-torus" color="#111" align="center" position="0 0 0.7"></a-text>
</a-torus>
<a-dodecahedron position="-2 -0.5 0" radius="0.5" color="#FFF000">
<a-text value="This is a-dodecahedron" color="#111" align="center" position="0 0 0.6"></a-text>
</a-dodecahedron>
<a-tetrahedron position="0 -1.5 0" color="maroon" radius="0.5" height="0.2">
<a-text value="This is a-tetrahedron" color="#111" align="center" position="0 0 0.6"></a-text>
</a-tetrahedron>
<a-cone position="2 -0.5 0" color="tomato" radius-bottom="0.5" radius-top="0" height="1">
<a-text value="This is a-cone" color="#111" align="center" position="0 0 0.6"></a-text>
</a-cone>
</a-entity>
</a-anchor>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>