-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchemistry.html
45 lines (41 loc) · 1.93 KB
/
chemistry.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
38
39
40
41
42
43
44
45
<!doctype HTML>
<html>
<style lang="en" type="text/css" id="night-mode-pro-style">
body {
background-color: transparent;
}
</style>
<link type="text/css" rel="stylesheet" id="night-mode-pro-link">
<head>
<title>AR Learn Chemistry</title>
<meta name="viewport" content="width=device-width, user-scalable=yes, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="https://img.icons8.com/external-glyph-on-circles-amoghdesign/344/external-abc-education-vol-02-glyph-on-circles-amoghdesign.png" type="image/x-icon">
<!-- include ar.js for A-Frame -->
<script src="https://raw.githack.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://raw.githack.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
</head>
<body>
<a-scene embedded arjs="detectionMode: mono_and_matrix; matrixCodeType: 3x3;">
<!-- include assets like 3D models and give them an id to use later -->
<a-assets>
<a-assets-item id="benzene"
src="./chemistry/benzene.glb">
</a-assets-item>
<a-assets-item id="water"
src="./chemistry/H2O.glb">
</a-assets-item>
</a-assets>
<!-- recognise different barcode markers ad show digital objects - box/sphere/cylinder/3D-model/image/video/anything -->
<a-marker type="barcode" value="0">
<a-entity position="0 0 0" scale="0.01 0.01 0.01" rotation="0 90 0" gltf-model="#benzene"></a-entity>
</a-marker>
<a-marker type="barcode" value="1">
<a-entity position="0 0 0" scale="0.1 0.1 0.1" rotation="0 90 0" gltf-model="#water"></a-entity>
</a-marker>
<!-- adding the camera -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>