-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
105 lines (91 loc) · 3.73 KB
/
about.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
<!DOCTYPE html>
<html lang="eng">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="UGLYKIKI">
<meta property="og:image" content="assets/screenshot/vr-screenshot2.png">
<script src="js/aframe-v0.8.2.min.js"></script>
<script src="js/aframe-effects.min.js"></script>
<script src="js/aframe-particle-system-component.min.js"></script>
<script src="https://unpkg.com/aframe-text-geometry-component@^0.5.0/dist/aframe-text-geometry-component.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v4.2.0/dist/aframe-extras.min.js"></script>
<!-- <script src="https://cdn.aframe.io/fonts/Roboto-msdf.json"></script>-->
<title>VR-space-about</title>
</head>
<body>
<a-scene effects="bloom, fxaa" bloom="radius: 0.5" fxaa>
<a-asset>
<img id="sky" src="assets/outside.jpg">
<a-asset-item id="hand-obj" src="assets/model/prayerhand_color.obj" ></a-asset-item>
<audio id="bgsound" src="assets/sound/wind.wav"></audio>
<img id="homeThumbnail" src="assets/vr-screenshot2.png">
</a-asset>
<!-- 360 background-->
<a-sky src="#sky" rotation="0 90 0"></a-sky>
<!-- add cursor-->
<a-entity camera look-controls>
<a-cursor id="cursor" position="0 0 -1" color="white" raycaster="objects: .clickable">
<a-animation begin="mouseenter" attribute="color" dur="50" from="white" to="springgreen"></a-animation>
<a-animation begin="mouseleave" attribute="color" dur="50" from="springgreen" to="white" ></a-animation>
<a-animation begin="click" easing="ease-in" attribute="scale" fill="backwards" from="0.1 0.1 0.1" to="1 1 1" dur="50"></a-animation>
</a-cursor>
</a-entity>
<!-- add background music-->
<a-sound src="#bgsound" autoplay="true" position="0 0 5" loop="true"></a-sound>
<!-- add back button-->
<a-entity id="back"
class="clickable"
geometry="primitive: octahedron; height:0.6; width:0.6;"
position="0 0 3.5"
rotation="0 0 0"
material="shader:flat; src: assets/back-texture.jpg; repeat: 4 2"
sound="on: mouseenter; src: assets/sound/entry.wav">
<a-animation attribute="rotation" dur="2000" begin="mouseenter" to="0 360 0"></a-animation>
</a-entity>
<a-entity
text-geometry="value: Back; size: 0.2; font: roboto "
position="0 1 2"
rotation="-60 180 0"
material="shader:flat; src: assets/back-texture.jpg; repeat: 4 2">
</a-entity>
<a-text
class="clickable"
value="Web VR: A-Frame"
align="center"
position="0 1.2 -2"
width="2.5">
</a-text>
<a-text
value="Sound Library: freesound.org"
align="center"
position="0 0.9 -2"
width="2.5">
</a-text>
<a-text
value="Panorama Images: Google Street View"
position="0 0.6 -2"
align="center"
width="2.5">
</a-text>
<a-text
value="Artist: Kiki Wu"
position="0 -0.5 -2"
align="center"
width="2">
</a-text>
<!-- add rain-->
<a-entity
position="0 -4 -70"
particle-system="preset: rain">
</a-entity>
</a-scene>
<script>
var back = document.querySelector ( '#back');
back.addEventListener ( "click", function( )
{
window.location.href = 'index.html';
})
</script>
</body>
</html>