-
Notifications
You must be signed in to change notification settings - Fork 0
/
theater.html
76 lines (60 loc) · 3.17 KB
/
theater.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
<!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/vr-screenshot2.png">
<script src="js/aframe-v0.8.2.min.js"></script>
<title>VR-space-theater</title>
<!-- Hotjar Tracking Code for https://uglykiki.github.io/vrspace/ -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:1060760,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
</head>
<body>
<a-scene>
<!-- Using the asset management system. -->
<a-assets>
<video id="movie" autoplay loop="true" src="assets/moderat.mp4"></video>
<a-asset-item id="love-obj" src="assets/model/redlove.obj" ></a-asset-item>
<img id="sky" src="assets/theater-color.jpg">
</a-assets>
<a-sky src="#sky" rotation="0 -90 5" ></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>
<!-- load video-->
<!-- <a-video src="#movie" width="15" height="9" position="0.5 -4.5 -20" rotation="-15 0 -2" material="opacity: 0.9"></a-video>-->
<a-video src="assets/moderat.mp4" width="15" height="9" position="0.5 -4.5 -20" rotation="-15 0 -2" material="opacity: 0.9"></a-video>
<!--
<a-obj-model src="#love-obj" scale="0.1 0.1 0.1" position="1 1 -1">
<a-animation attribute="rotation"
dur="3000"
to="0 360 0"
repeat="indefinite">
</a-animation>
<a-animation attribute="material.color" from="blue" to="red" dur="1200" repeat="indefinite"></a-animation>
</a-obj-model>
<a-obj-model src="#love-obj" mtl="#love-mtl" scale="0.1 0.1 0.1" position="1 2 -2"></a-obj-model>
<a-obj-model src="#love-obj" mtl="#love-mtl" scale="0.1 0.1 0.1" position="-2 2 -1"></a-obj-model>
<a-obj-model src="#love-obj" mtl="#love-mtl" scale="0.1 0.1 0.1" position="-2 2 -2"></a-obj-model>
<a-obj-model src="#love-obj" mtl="#love-mtl" scale="0.1 0.1 0.1" position="-2 -0.5 -2"></a-obj-model>
<a-obj-model src="#love-obj" mtl="#love-mtl" scale="0.1 0.1 0.1" position="1 -0.2 -2.5"></a-obj-model>
-->
<a-entity></a-entity>
</a-scene>
</body>
</html>