-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex-v90.html
More file actions
171 lines (140 loc) · 4.33 KB
/
Copy pathindex-v90.html
File metadata and controls
171 lines (140 loc) · 4.33 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html>
<head>
<title>Gravity Engine with Three.js v90</title>
<meta charset="utf-8" />
<style>
body,
input,
textarea,
select {
font: 1em "Source Code Pro", monospace
}
canvas {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
#controls {
position: absolute;
z-index: 100;
color: white;
}
#controls input[type=range] {
background: none;
}
#controls input[type=number] {
width: 3em
}
label {
display: block;
}
label2 {
bottom: 0px;
font-size: x-small;
}
#IHMCam, #IHMSelection{
bottom: 0px;
font-size: x-small;
margin: 0px;
padding: 5px;
}
.dg.ac {
z-index: 100!important
}
#GeneralInfos {
color: #ffffff;
background-color: #990000;
font-size: small;
position: absolute;
z-index: 100;
bottom: 0px;
padding: 5px;
}
</style>
</head>
<body>
<div id="controls">
<label>
target framerate:
<input id="framerate" type="number" value="30" max="60" min="1" />
</label>
<!--<label>-->
<!--real framerate: <span id="real_framerate">0</span>-->
<!--</label>-->
<!--<label>-->
<!--<input id="activate_trails" type="checkbox" />-->
<!--show trails-->
<!--</label>-->
<!--<label>-->
<!--Trail length:-->
<!--<input id="trails_length" min="0" max="3000" value="100" type="range" />-->
<!--<span></span>-->
<!--</label>-->
<label>
particles alive:
<span id="movers_alive_count"></span>
</label>
<label>
largest / total mass:
<br>
<span id="maximum_mass"></span> /
<span id="total_mass"></span>
</label>
<label>
BIGGEST:
<span id="largest_pos" onclick="selectBiggest();"></span>
</label>
<fieldset id="IHMCam">
<label>
<input id="cbCam" type="checkbox"> CAMERA:
</label>
<label2>
<span id="camera_info"></span>
</label2>
</fieldset>
<fieldset id="IHMSelection">
LAST SELECTED:
<span id="select_infos"></span>
<br/>
<!-- <button onclick='lookSun(this.innerHTML);'>lookOrigin</button> -->
<!-- <button onclick='inverseSelectionStatus();'>kill/reborn</button>
<button onclick='inverseDirection();'>inverse direction</button> -->
<!-- <br/> -->
<select id="mySelect" onchange="setSelection(this)" disabled>
<option value="0" selected>Action on Selection</option>
<option value="changeMass">change the Mass</option>
<option value="inverseSelectionStatus">kill/reborn</option>
<option value="inverseDirection">inverse direction</option>
<!-- <option value="valeur2" selected>Valeur 2</option> -->
<option value="newColor">newColor</option>
</select>
<div>
<label for="cbFPS">
<input id="cbFPS" type="checkbox" name="camFPS" value="FPS" onclick="onCbFPSCam();" disabled>
Follow by Free Cam</label>
</div>
<div>
<label for="cbZoom">
<input id="cbZoom" type="checkbox" name="cbZoom" disabled> AutoZoomIn on it
</label>
</div>
</fieldset>
<div id='IHMButtons' style='position:absolute'>
</div>
<!-- <div id='GeneralInfos' style='position:absolute'> -->
<!-- </div> -->
</div>
<div id="GeneralInfos">PAUSE</div>
<script src="js/libs/dat.gui.min.js"></script>
<script src="js/libs/jquery.js"></script>
<script src="js/libs/three.min-v90.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/controls/FirstPersonControls.js"></script>
<script src="js/functions.js"></script>
<script src="js/Mover.js"></script>
<script src="js/main.app.js"></script>
</body>
</html>