-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
333 lines (286 loc) · 13.4 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta http-equiv="cache-control" content="no-store">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<link rel="shortcut icon" href="#">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
<title>Augmenta designer (beta)</title>
<link rel="icon" href="img/augmenta-logo.png" type="image/png">
</head>
<body>
<div class="row full-height">
<!-- HEADER/VIEWPORT - LEFT -->
<div id="left-section" class="column">
<!-- HEADER -->
<div id="header" class="row center-x-spaced center-y">
<!-- LOGO -->
<div id="augmenta-link-logo">
<a href="https://www.augmenta.tech">
<img id="augmenta-link-logo-img" src="img/augmenta-logo.png" alt="Augmenta">
</a>
</div>
<!-- TITLE -->
<div>
<h1 id="website-title">Augmenta Designer (beta)</h1>
</div>
<!-- SHARE, CONTACT, HELP... BUTTONS -->
<div id="header-buttons">
<div id="generate-link" class="button main-button">
<span class="iconify main-icon" data-icon="ci:share"></span>
<p> Share </p>
</div>
<!-- SHARE MODAL -->
<div id="share-modal" class="modal hidden">
<div id="share-modal-content" class="column center-x center-y modal-content">
<p id="copy-feedback-text" class="main-text">URL of your scene has been copied to clipboard !</p>
</div>
</div>
<!-- END SHARE MODAL -->
<!-- CONTACT BUTTON -->
<a id="contact-button" class="button main-button" href="https://augmenta.tech/contact/" target="_blank">
<span class="iconify main-icon" data-icon="ci:mail"></span>
<p>Contact us</p>
</a>
<!-- END CONTACT BUTTON -->
<!-- TO ADD HELP BUTTON <p>Help ?</p> -->
</div>
</div>
<!-- VIEWPORT -->
<div id="viewport">
<!-- ADD TOOLS
<div id="toolbar" class="row">
<div data-tool="1" class="active">
<span class="iconify" data-icon="fluent:cursor-20-filled"></span>
</div>
<div data-tool="2">
<span class="iconify" data-icon="fluent:hand-right-16-filled"></span>
</div>
<div data-tool="3">
<span class="iconify" data-icon="fluent:arrow-rotate-clockwise-16-filled"></span>
</div>
<div data-tool="4">
<span class="iconify" data-icon="fluent:zoom-in-16-filled"></span>
</div>
</div> -->
<!-- VIEWPORT BUTTONS -->
<div id="viewport-buttons" class="row center-x">
<!-- FRUSTUMS BUTTON -->
<div id="display-frustums-button" class="button main-button">
<span id="display-frustums-button-icon" class="iconify main-icon" data-icon="akar-icons:eye-open"></span>
<p id="display-frustums-button-text">Frustums</p>
</div>
<!-- ADD MEASURES BUTTON
<div class="button main-button">
<p>Measures</p>
</div> -->
<!-- UNITS BUTTON -->
<div id="toggle-unit-button" class="button main-button">
<span class="iconify main-icon" data-icon="codicon:arrow-both"></span>
<p id="toggle-unit-button-m" class="bold-font">m</p><p> / </p><p id="toggle-unit-button-ft">ft</p>
</div>
</div>
<!-- DUMMIES BUTTONS -->
<div id="dummies-buttons" class="row">
<!-- ADD BUTTON -->
<div id="add-dummy-button" class="button main-button">
<p>+ Add dummy</p>
</div>
<!-- DELETE BUTTON -->
<div id="delete-all-dummies-button" class="button default-button">
<span class="iconify secondary-icon" data-icon="fluent:delete-16-filled"></span>
<p>Delete all dummies</p>
</div>
</div>
</div>
</div>
<!-- INSPECTOR - RIGHT -->
<div id="right-section">
<div id="inspector" class="full-height">
<!-- SCENE PANEL -->
<div id="scene-infos" class="column sections-container">
<!-- WIZARD BUTTON -->
<div id="open-wizard" class="row center-x center-y">
<div id="open-wizard-button" class="button main-button">
<span class="iconify main-icon" data-icon="fa:magic"></span>
<p >Generate scene</p>
</div>
</div>
<!-- WIZARD MODAL -->
<div id="wizard-modal" class="modal hidden">
<div id="wizard-content" class="modal-content">
<span id="close-wizard" class="close">×</span>
<!-- WIZARD CONTENT -->
<div class="column sections-container">
<!-- TRACKING SECTION IN WIZARD -->
<div id="tracking-section-wizard">
<!-- TRACKING MODE -->
<div id="tracking-mode-wizard">
<h3>What do you want to track ?</h3>
<select title="tracking-mode-wizard" name="tracking-mode-wizard" id="tracking-mode-selection-wizard">
<option value="human-tracking" selected>Floor (people tracking)</option>
<option value="hand-tracking">Table (hand tracking)</option>
</select>
</div>
<!-- HEIGHT DETECTED FOR OVERLAPS -->
<div id="overlap-height-wizard">
<p>Target overlap height detection</p>
<select title="overlap-height-wizard" name="overlap-height-wizard" id="overlap-height-selection-wizard">
<!-- <option value="0.3">Feet</option>
<option value="0.7">Knees</option> -->
<option value="1.2" selected>Hips</option>
<option value="1.6">Shoulders</option>
<option value="2">Entire body</option>
</select>
</div>
</div>
<!-- SCENE SECTION IN WIZARD -->
<div>
<h3>Scene size</h3>
<!-- WIDTH INPUT -->
<div>
<p>Width (<span data-unittext="1">m</span>)</p>
<input id="input-scene-width-wizard" type="number" placeholder="w" min="0" max="100" step = "0.1">
</div>
<!-- LENGTH INPUT -->
<div>
<p>Length (<span data-unittext="1">m</span>)</p>
<input id="input-scene-length-wizard" type="number" placeholder="h" min="0" max="100" step = "0.1">
</div>
<!-- HOOK HEIGHT INPUT -->
<div id="hook-height-input">
<p>Camera hook height from scene (<span data-unittext="1">m</span>) </p>
<input id="input-hook-height-wizard" type="number" placeholder="r" min="0" max="100" step = "0.1">
</div>
</div>
<!-- CAMERA TYPES SECTION IN WIZARD -->
<div>
<div id="cam-types-checkboxes-wizard">
<h3>Choose the type.s of camera.s you want to use</h3>
<!-- filled in javascript -->
</div>
<div>
<p>No suitable sensor ? <a href="https://augmenta.tech/contact/" target="_blank">Contact us</a> !</p>
</div>
</div>
<!-- GENERATE SCENE BUTTON IN WIZARD -->
<div id="generate-scene-wizard-button" class="button main-button">
<span class="iconify main-icon" data-icon="fa:magic"></span>
<p>Generate scene</p>
</div>
</div>
</div>
</div>
<!-- END WIZARD MODAL -->
<!-- TRACKING SECTION IN INSPECTOR -->
<div id="tracking-section-inspector">
<!-- TRACKING MODE -->
<div id="tracking-mode-inspector">
<h3>What do you want to track ?</h3>
<select title="tracking-mode-inspector" name="tracking-mode-inspector" id="tracking-mode-selection-inspector">
<option value="human-tracking" selected>Floor (people tracking)</option>
<option value="hand-tracking">Table (hand tracking)</option>
</select>
</div>
<!-- HEIGHT DETECTED FOR OVERLAPS -->
<div id="overlap-height-inspector" class="">
<p>Target overlap height detection</p>
<select title="overlap-height-inspector" name="overlap-height-inspector" id="overlap-height-selection-inspector">
<!-- <option value="0.3">Feet</option>
<option value="0.7">Knees</option> -->
<option id="default-height-detected" value="1.2" selected>Hips</option>
<option value="1.6">Shoulders</option>
<option id="dummy-height-reference" value="2">Entire body</option>
</select>
</div>
</div>
<!-- SCENE SECTION IN INSPECTOR -->
<div>
<h3>Scene size</h3>
<!-- WIDTH INPUT -->
<div>
<p>Width (<span data-unittext="1">m</span>)</p>
<input id="input-scene-width-inspector" type="number" placeholder="w" min="0" max="100" step = "0.1">
</div>
<!-- LENGTH INPUT -->
<div>
<p>Length (<span data-unittext="1">m</span>)</p>
<input id="input-scene-length-inspector" type="number" placeholder="h" min="0" max="100" step = "0.1">
</div>
<!-- SENSOR HEIGHT -->
<div>
<p>Sensor height (<span data-unittext="1">m</span>)</p>
<input id="input-scene-sensor-height-inspector" type="number" placeholder="sh" min="0" max="30" step="0.1" disabled>
</div>
</div>
<!-- SCENE COVERED FEEDBACK -->
<div class="row">
<p>Scene fully covered: </p><span id="scene-fully-covered-icon" class="iconify-inline" data-icon="ion:checkmark-circle-sharp"></span>
</div>
</div>
<!-- SENSORS PANEL -->
<div id="sensors-infos" class="column sections-container">
<!-- NUMBER OF NODES FEEDBACK -->
<div id="number-sensors" class="row center-x center-y">
<p class="main-text">Number of nodes: <span id="number-nodes-value">0</span></p>
</div>
<!-- NODES BUTTONS -->
<div id="nodes-buttons" class="row center-x">
<!-- ADD BUTTON -->
<div id="add-node-button" class="button main-button" >
<p>+ New node</p>
</div>
<!-- DELETE BUTTON -->
<div id="delete-all-nodes-button" class="button default-button" >
<span class="iconify secondary-icon" data-icon="fluent:delete-16-filled"></span>
<p>Delete all nodes</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Beta style management -->
<script>
{
const url = document.location.href;
if(url.includes('beta'))
{
// TITLE
document.getElementById('website-title').innerHTML += ' (beta)';
/* DARK MODE */
// SHARE MODAL
document.getElementById('share-modal-content').classList.add('dark-mode');
document.getElementById('copy-feedback-text').classList.add('dark-mode');
// INSPECTOR
const inspectorChilds = document.getElementById('inspector').getElementsByTagName("*");
for(let i = 0; i < inspectorChilds.length; i++)
{
inspectorChilds[i].classList.add('dark-mode');
}
document.getElementById('inspector').classList.add('dark-mode');
}
}
</script>
</body>
<script src="https://code.iconify.design/2/2.1.0/iconify.min.js"></script>
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script type="esms-options">{ "polyfillEnable": ["json-modules"] }</script>
<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "/js/lib/three-js/build/three.module.js",
"three-loaders/": "/js/lib/three-js/examples/jsm/loaders/",
"three-text-geometry": "/js/lib/three-js/examples/jsm/geometries/TextGeometry.js",
"polybool": "/js/lib/polybooljs/dist/polybool.min.js"
}
}
</script>
<script type="module" src="js/main.js"></script>
</html>