-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (80 loc) · 4.93 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MZiQ VR3</title>
<script src="bundle.js"></script>
<!--<script src="/lib/aframe-extras.min.js"></script>-->
<!--<script src="https://raw.githubusercontent.com/aframevr/aframe/master/dist/aframe-master.js"></script>-->
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="engine" src="/assets/models/engine.dae"></a-asset-item>
<a-mixin id="image" geometry="height: 2; width: 2"></a-mixin>
<audio id="blip1" src="/assets/sound/plim.wav"></audio>
<audio id="blip2" src="/assets/sound/plup.wav"></audio>
</a-assets>
<!--<a-entity position="1.75 0 1.2" rotation="0 28 0">
<a-camera near="0.1" user-height="0"></a-camera>
</a-entity>-->
<a-entity laser-controls></a-entity>
<a-entity position="1.75 0 1.2" rotation="0 28 0">
<!--universal-controls="rotationControls: hmd, gamepad, mouse; movementControls: keyboard"
mouse-controls="pointerlockEnabled: false"-->
<!--rotationControls: hmd, gamepad; -->
<!--look-controls="enabled:false"-->
<a-entity camera="user-height: 0; near: 0.1" look-controls wasd-controls position="3.076 0 -0.854"
rotation="-9.969 42.055 0" id="camera">
<!--showLine: true;-->
<a-entity debug-raycaster raycaster="far: 100; objects: .intersectable;" geometry="primitive: circle; radius: 0.005;"
material="color: #FFF;" position="0 0 -0.75" cursor></a-entity>
<a-entity id="cardInfo" geometry="width:0.44;height:0.35;primitive:plane" material="shader:flat;color:#FFF"
position="0.9 0.002 -0.8">
<!--<a-entity id="cardTitle" color="#4B5154" position="0 0.11 0" align="center"
baseline="top" anchor="align" text="anchor:align;width:1;color:#4B5154;value:Bradesco;align:center;baseline:top"></a-entity>-->
<a-text id="cardTitle" color="#4B5154" position="0 0.13 0" align="center" width="1"
baseline="top" anchor="align" wrapCount="70" value="Title" color="#4B5154"></a-text>
<a-text id="cardChangeLabel" color="#4B5154" position="-0.12 0.049 0" align="center" width="0.5"
baseline="top" anchor="align" wrapCount="70" value="Change" color="#4B5154"></a-text>
<a-text id="cardChange" color="#4B5154" position="-0.12 0.001 0" align="center" width="1"
baseline="top" anchor="align" wrapCount="70" value="Change" color="#4B5154"></a-text>
<a-text id="cardMarketCapLabel" color="#4B5154" position="0.07 0.049 0" align="center" width="0.5"
baseline="top" anchor="align" wrapCount="70" value="MarketCap" color="#4B5154"></a-text>
<a-text id="cardMarketCap" color="#4B5154" position="0.07 0.001 0" align="center" width="1"
baseline="top" anchor="align" wrapCount="70" value="MarketCap" color="#4B5154"></a-text>
<a-text id="cardPriceLabel" color="#4B5154" position="0.07 -0.066 0" align="center" width="0.5"
baseline="top" anchor="align" wrapCount="70" value="Price" color="#4B5154"></a-text>
<a-text id="cardPrice" color="#4B5154" position="0.07 -0.121 0" align="center" width="1"
baseline="top" anchor="align" wrapCount="70" value="Price" color="#4B5154"></a-text>
<a-text id="cardVolumeLabel" color="#4B5154" position="-0.11 -0.066 0" align="center" width="0.5"
baseline="top" anchor="align" wrapCount="70" value="Volume" color="#4B5154"></a-text>
<a-text id="cardVolume" color="#4B5154" position="-0.11 -0.121 0" align="center" width="1"
baseline="top" anchor="align" wrapCount="70" value="Volume" color="#4B5154"></a-text>
<a-plane material="shader:flat" width="0.3" height="0.005" position="0 0.065 0.01"
color="#697982" opacity="0.3" geometry="height:0.003;primitive:plane;width:0.3"></a-plane>
</a-entity>
<!--<a-light light="type: point; color: #fff; intensity: 0.6;" position="0 0 0"></a-light>-->
</a-entity>
</a-entity>
<a-entity id="treeParent">
<a-entity id="treemapContainer" class="intersectable" treemap-generator drag-rotate="speed: 8;"
position="0 -5.5 -3" rotation="46.811 106.570 18.507"></a-entity>
</a-entity>
<a-entity position="0 -0.5 -3">
<a-collada-model src="#engine" rotation="90 0 0" scale="18 18 18"></a-collada-model>
</a-entity>
<!-- Lights. -->
<a-light type="point" color="#94c6ff" distance="15" position="0 0 -12">
<a-animation attribute="intensity" from="0" to="2" delay="750" dur="500" fill="both"></a-animation>
</a-light>
<a-light type="point" color="#94c6ff" distance="17" position="0 0 -6">
<a-animation attribute="intensity" from="0" to="1" delay="500" dur="500" fill="both"></a-animation>
</a-light>
<a-light type="ambient" color="#4f6487"></a-light>
<!-- Sounds. -->
<a-entity sound="autoplay: true; src: #blip1;"></a-entity>
<a-entity sound="autoplay: true; src: #blip2;"></a-entity>
</a-scene>
</body>
</html>