-
Notifications
You must be signed in to change notification settings - Fork 5
/
page-credits.php
144 lines (90 loc) · 4.11 KB
/
page-credits.php
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
139
140
141
142
143
144
`<?php
get_header();
require_once "functions/functions-awards.php";
$pedestals = get_pedestals('polys3');
// var_dump($pedestals);
$assets = [];
if(@$_GET['dump'] == 'awards'){
?>
<div id="dump" style="position:absolute;top:0px; height:100vh;width:20%;background-color:rgba(10,10,10,0.4);color:#fff;z-index:100;overflow-y:scroll;">
<?php
?>
</div>
<?php
}
$menu = get_menu_array("polys3-credits");
$credits = getCreditsArray($menu);
$assets3D = get3DAssets("logo3D_src",$credits);
$asset_list = getAssetList($assets3D);
//print("<pre>".print_r($credits,true)."</pre>"); die();
//print("<pre>".print_r($asset_list,true)."</pre>");die();
// include "webxr/polys3/drawer-experiences.php";
// include "webxr/polys2/drawer-nominations.php";
?>
<a-scene renderer="antialias: true;
colorManagement: true;
sortObjects: true;
maxCanvasWidth: 5600;
maxCanvasHeight: 2750;"" gltf-model="dracoDecoderPath: assets/draco/;" grab-panels item-grab device-set nomination-link anti-drop
device-orientation-permission-ui physics="iterations: 30;"
inspector="https://cdn.jsdelivr.net/gh/aframevr/aframe-inspector@master/dist/aframe-inspector.min.js"
loading-screen="backgroundColor: #12171a" renderer="colorManagement: true; foveationLevel: 0;maxCanvasWidth:5600;
maxCanvasHeight: 3200;"
background="color: #000000">
<a-assets timeout="80000">
<!-- Loads assets -->
<?php
include "webxr/polys3/assets.php";
include "webxr/polys3/mixins.php";
?>
</a-assets>
<a-sky src="#sky" animation="property: object3D.rotation.y; to: -360; easing: linear; dur: 1200000; loop: true;"></a-sky>
<?php
include "webxr/polys3/credits-rigging.php";
//include "webxr/polys3/lights.php";
$showplatform="true";
if(@$_GET['showplatform']){
$showplatform = "false";
}
?>
<a-entity id="trophy" class="clickable center-obj-zone" static-body="shape: box; mass: 2" position="0 -200 -400" mixin="obj" rotation="0 75 0" scale="200 200 200" gltf-model="#trophy">
<a-light id="trophy-light-front" color="#ffffff" position="0 0 0" rotation="0 0 0" light="type: directional; intensity: 4; angle: 75; distance:30; shadowRadius: -3.72" visible=""></a-light>
<a-light id="trophy-light-left" color="#ffffff" position="-2 3 0" rotation="0 -80 0" light="type: directional; intensity: 30;distance:20; angle: 60; shadowRadius: -3.72" visible=""></a-light>
<a-light id="trophy-light-right" color="#ffffff" position="-1 0 3" rotation="0 60 0" light="type: directional; intensity: 30; angle: 45;distance:45; shadowRadius: -3.72" visible=""></a-light>
</a-entity>
<a-entity id="outer-wrap" position="0.05 3.5
800" rotation="0 0 0" scale="1 1 1" visible="true">
<a-entity id="credits-wrap" visible="true" scale="2 2 2" position="0 -2 0" rotation="0 0 0">
<?php
$z_offset = 0;
foreach($credits as $key => $credit){
getCredit($credit,$z_offset,0);
$z_offset = ($z_offset-(15*-1));
}
?>
</a-entity><!-- credits-->
</a-scene>
<script>
AFRAME.registerComponent('qz-keyboard-controls', {
// ...
getVelocityDelta: function () {
var data = this.data,
keys = this.getKeys();
this.dVelocity.set(0, 0, 0);
if (data.enabled) {
if (keys.KeyW || keys.ArrowUp) { this.dVelocity.z -= 1; }
if (keys.KeyA || keys.ArrowLeft) { this.dVelocity.x -= 1; }
if (keys.KeyS || keys.ArrowDown) { this.dVelocity.z += 1; }
if (keys.KeyD || keys.ArrowRight) { this.dVelocity.x += 1; }
// NEW STUFF HERE
if (keys.KeyQ) { this.dVelocity.y += 1; }
if (keys.KeyZ) { this.dVelocity.y -= 1; }
}
return this.dVelocity.clone();
},
// ...
});
</script>
<?php
get_footer();
?>`