-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
138 lines (121 loc) · 7.08 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VISA - Virtual Institute of Simulation Art</title>
<meta name="description" content="Digital museum">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/index.css">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script
src="https://unpkg.com/[email protected]/dist/aframe-terrain-model-component.min.js"></script>
<script
src="https://unpkg.com/[email protected]/dist/aframe-particle-system-component.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/@tlaukkan/[email protected]/index.js"></script>
<script
src="https://unpkg.com/[email protected]/dist/aframe-text-geometry-component.min.js"></script>
<script
src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
<script src="aframe-effects.min.js"></script>
<script src="aframe-effects.js"></script>
</head>
<body>
<div class="UI">
<p>Use <span>W A S D</span>to navigate the scene. <a href="about.html">> About</a> </p>
</div>
<a-scene device-orientation-permission-ui="enabled: false">
<!-- Asset Loader -->
<a-assets>
<img id="crisis-texture" src="images/oblivion.png">
<img id="sanctuary-texture" src="images/sanctuary.png">
<img id="oasis-texture" src="images/oasis.png">
<img id="unmapped-texture" src="images/neverland.png">
<img id="normal" src="images/water-normal.jpg">
<img id="ambient" src="images/water-ambient.jpg">
</a-assets>
<a-entity class="clickable" id="Crisis" geometry="primitive: sphere"
material="src: #crisis-texture; roughness:0; normalMpa: #normal; ambientOcclusionMap: #ambient"
position="-6 0 -5" scale="1 1 1" animation="property: rotation; to: 0 360 0; loop: true; dur: 10000"
animation__mouseenter="property: scale; to: 1.2 1.2 1.2; property: components.material.material.color; type: color; to: white; startEvents: mouseenter; dur: 500"
animation__mouseleave="property: scale; to: 1 1 1; startEvents: mouseleave; dur: 500">
</a-entity>
<a-entity class="clickable" id="Sanctuary" geometry="primitive: sphere"
material="src: #sanctuary-texture; roughness:0; normalMpa: #normal; ambientOcclusionMap: #ambient"
position="-2 0 -5" scale="1 1 1" animation="property: rotation; to: 0 360 0; loop: true; dur: 10000"
animation__mouseenter="property: scale; to: 1.2 1.2 1.2; startEvents: mouseenter; dur: 500"
animation__mouseleave="property: scale; to: 1 1 1; startEvents: mouseleave; dur: 500">
</a-entity>
<a-entity class="clickable" id="Oasis" geometry="primitive: sphere"
material="src: #oasis-texture; roughness:0; normalMpa: #normal; ambientOcclusionMap: #ambient"
position="2 0 -5" scale="1 1 1" animation="property: rotation; to: 0 360 0; loop: true; dur: 10000"
animation__mouseenter="property: scale; to: 1.2 1.2 1.2; startEvents: mouseenter; dur: 500"
animation__mouseleave="property: scale; to: 1 1 1; startEvents: mouseleave; dur: 500">
</a-entity>
<a-entity class="clickable" id="Unmapped" geometry="primitive: sphere"
material="src: #unmapped-texture; roughness:0; normalMpa: #normal; ambientOcclusionMap: #ambient"
position="6 0 -5" scale="1 1 1" animation="property: rotation; to: 0 360 0 ; loop: true; dur: 10000"
animation__mouseenter="property: scale; to: 1.2 1.2 1.2; startEvents: mouseenter; dur: 500"
animation__mouseleave="property: scale; to: 1 1 1; startEvents: mouseleave; dur: 500">
</a-entity>
<!-- Add Gradient sky -->
<a-sky geometry=" primitive: sphere"
material="shader: threeColorGradientShader; topColor: #1c009a; middleColor: #cb8eff; bottomColor: #8400f6;offset: 0.0">
</a-sky>
<!-- Add Text -->
<!-- <a-entity id="about" class="clickable" text-geometry="value: ABOUT" font="#EXO" size="64" scale=" 1 1 1"
material="color: white" position="0 2 0" rotation="0 0 0">
</a-entity> -->
<a-entity
text="font: https://cdn.aframe.io/fonts/Monoid.fnt; value: Virtual Institute of Simulation Art; align:center"
position="0 0.6 -1" scale="2 2 2">
</a-entity>
<a-entity material="opacity:0.5;transparent: true;"
text="font: https://cdn.aframe.io/fonts/mozillavr.fnt; value: Please Select Your Destination; align:center"
position="0 0.5 -1" scale="1 1 1">
</a-entity>
<a-entity text="font: https://cdn.aframe.io/fonts/Monoid.fnt; value: I: Crisis; align:center"
position="-6 -1.5 -5" scale="4 4 4">
</a-entity>
<a-entity text="font: https://cdn.aframe.io/fonts/Monoid.fnt; value: II: Sanctuary; align:center"
position="-2 -1.5 -5" scale="4 4 4">
</a-entity>
<a-entity text="font: https://cdn.aframe.io/fonts/Monoid.fnt; value: III: Oasis; align:center"
position="2 -1.5 -5" scale="4 4 4">
</a-entity>
<a-entity text="font: https://cdn.aframe.io/fonts/Monoid.fnt; value: IV: Unmapped; align:center"
position="6 -1.5 -5" scale="4 4 4">
</a-entity>
<!-- Add Light -->
<a-entity light="type: ambient; color: #CCC; intensity:0.8"></a-entity>
<a-entity light="type: directional; color: #EEE; intensity: 0.5" position="0 0 2"></a-entity>
<!-- Add Particle System -->
<a-entity particle-system="preset: dust; color: #24CAFF; particleCount: 2000"></a-entity>
<!-- Add Camera -->
<a-entity id="mouseCursor" cursor="rayOrigin: mouse" raycaster="objects: .clickable"></a-entity>
<a-entity camera look-controls wasd-controls position="0 0 0" raycaster="objects: .clickable">
</a-entity>
</a-scene>
<script>
var about = document.querySelector('#about');
var Crisis = document.querySelector('#Crisis');
var Sanctuary = document.querySelector('#Sanctuary');
var Oasis = document.querySelector('#Oasis');
var Unmapped = document.querySelector('#Unmapped');
Crisis.addEventListener('click', function () {
window.location.href = 'crisis.html';
})
Sanctuary.addEventListener('click', function () {
window.location.href = 'sanctuary.html';
})
Oasis.addEventListener('click', function () {
window.location.href = 'oasis.html';
})
Unmapped.addEventListener('click', function () {
window.location.href = 'unmapped.html';
})
about.addEventListener('click', function () {
window.location.href = 'about.html';
})
</script>
</body>