-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 4.67 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<script src="js/vendor/aframe-master.min.js" charset="utf-8"></script>
<!-- <script src="https://unpkg.com/[email protected]/dist/aframe-animation-component.min.js"></script> -->
<script src="js/vendor/aframe-pano-portal.min.js" charset="utf-8"></script>
<!-- AR.js by @jerome_etienne - github: https://github.com/jeromeetienne/ar.js - info: https://medium.com/arjs/augmented-reality-in-10-lines-of-html-4e193ea9fdbf -->
<!-- <script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/examples/vendor/aframe/build/aframe.min.js"></script> -->
<script src="js/vendor/threex-portal-door.js" charset="utf-8"></script>
<script src="js/vendor/aframe-portal-door.js" charset="utf-8"></script>
<script src="js/vendor/aframe-ar.js"></script>
<script src="js/scene.js" charset="utf-8"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene stats="stats" embedded="embedded" arjs='trackingMethod: best; sourceType: webcam;'>
<a-assets>
<a-asset-item id="roboto-msdf" src="fonts/Roboto-msdf.json"></a-asset-item>
<img id="ekya" src="images/logo-ekya.png"/>
</a-assets>
<!-- X: horiz, Y: depth, Z: verti -->
<a-marker type="pattern" url="patterns/pattern-ekya.patt">
<a-image listener="listener" geometry="primitive: plane" src="#ekya" rotation="-90 0 0" width="2" position='0 0 -2.5'></a-image>
<a-text font="fonts/Roboto-msdf.json" value="Ekya Open Day" rotation="-90 0 0" position="-0.5 0 -2" color="#ddd"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="Welcome to the AR Exhibit!" rotation="-90 0 0" position="-1 0 -1.5" color="#ddd"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="By Kevin (XI - A) and Ishan (X - B)" rotation="-90 0 0" position="-1 0 -1" color="#ddd"></a-text>
</a-marker>
<a-marker preset="hiro">
<a-text font="fonts/Roboto-msdf.json" value="Augmented Reality (AR)" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="It overlays a virtual world into the real world" rotation="-90 0 0" position="-1.5 0 -1.5" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="through a viewing device" rotation="-90 0 0" position="-0.5 0 -1" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="It can be used for making a more interactive experience" rotation="-90 0 0" position="-1.5 0 -0.5" color="white"></a-text>
</a-marker>
<a-marker preset="kanji">
<a-text font="fonts/Roboto-msdf.json" value="For example, this portal" rotation="-90 0 0" position="-1 0 -1.5" color="white"></a-text>
<a-portal-door url="images/koper_slovenia.jpg" rotation="0 0 0"></a-portal-door>
</a-marker>
<a-marker type="pattern" url="patterns/pattern-letterA.patt">
<a-text font="fonts/Roboto-msdf.json" value="Or, this rotating cube :P" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
<a-box material="color: red; roughness: 0.5">
<a-animation attribute="rotation"
dur="4000"
fill="forwards"
to="360 360 360"
repeat="indefinite"></a-animation>
</a-box>
</a-marker>
<a-marker>
<a-text font="fonts/Roboto-msdf.json" value="The possibilities are endless" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="The only limit is your imagination ;)" rotation="-90 0 0" position="-1 0 -1.5" color="white"></a-text>
</a-marker>
<a-marker>
<a-text font="fonts/Roboto-msdf.json" value="Ask the exhibit guide for more information" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="For developers:" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
<a-text font="fonts/Roboto-msdf.json" value="Made using A-FRAME from Mozilla and AR.js from Jerome Etienee" rotation="-90 0 0" position="-0.5 0 -2" color="white"></a-text>
</a-marker>
<a-entity camera="camera">
<!-- <a-entity cursor="fuse: true; fuseTimeout: 500" position="0 0 -1" geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03" material="color: black; shader: flat"></a-entity> -->
</a-entity>
</a-scene>
</body>
</html>