-
Notifications
You must be signed in to change notification settings - Fork 69
/
portal-volcano.html
52 lines (36 loc) · 1.8 KB
/
portal-volcano.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
<!DOCTYPE html>
<html>
<head>
<title>A-Frame: Link component</title>
<meta name="description" content="A-Frame Examples">
<script src="js/aframe-master-v1.3.0.min.js"></script>
<script src="js/aframe-environment-component.min.js"></script>
<script src="js/link-controls.js"></script>
</head>
<body>
<!-- cursor activated from mouse position; only intersects objects with "link" component added (the <a-link> tag) -->
<!-- environments featured: default, volcano, goldmine, egypt, forest, arches, japan -->
<a-scene environment="preset: volcano;" cursor="rayOrigin: mouse;" raycaster="far: 100; objects: [link];">
<a-assets>
<img id="previewDefault" src="images/spherical/default.jpg">
<img id="previewVolcano" src="images/spherical/volcano.jpg">
<img id="previewEgypt" src="images/spherical/egypt.jpg">
<img id="previewForest" src="images/spherical/forest.jpg">
<img id="previewArches" src="images/spherical/arches.jpg">
<img id="previewJapan" src="images/spherical/japan.jpg">
</a-assets>
<!-- note: raycast issue (link still active) after walking through portal -->
<a-sphere id="origin" radius="0.25" position="0 0 0" color="white"></a-sphere>
<a-link position="-4 1.6 -4" rotation="0 40 0"
href="portal-default.html" title="Default" image="#previewDefault"></a-link>
<a-link position="-2 1.6 -5" rotation="0 20 0"
href="portal-egypt.html" title="Egypt" image="#previewEgypt"></a-link>
<a-link position="0 1.6 -6"
href="portal-forest.html" title="Forest" image="#previewForest"></a-link>
<a-link position="2 1.6 -5" rotation="0 -20 0"
href="portal-arches.html" title="Arches" image="#previewArches"></a-link>
<a-link position="4 1.6 -4" rotation="0 -40 0"
href="portal-japan.html" title="Japan" image="#previewJapan"></a-link>
</a-scene>
</body>
</html>