-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
654 lines (559 loc) · 26.2 KB
/
Copy pathindex.html
File metadata and controls
654 lines (559 loc) · 26.2 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
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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
<!doctype html>
<html lang="en">
<head>
<meta name="google-site-verification" content="taam-xWTrCWy4JPF4V1vmT5YXZNakBEOSw_4IEqQEGA" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./img/logo.png">
<link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.css">
<title>MixPose</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="css/product.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light">
<a class="navbar-brand mx-4" href="index.html">
<img style="max-width: 35px;" class="navbar-left" src="img/logo.png">
<img style="max-width: 95px;" class="navbar-left" src="img/logotype.png">
<!-- <strong>MixPose</strong> -->
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<!--
<li class="nav-item">
<a class="nav-link mx-4" href="test.html">First</a>
</li>
<li class="nav-item">
<a class="nav-link mx-4" href="test2.html">Second</a>
</li> -->
<li class="nav-item">
<a class="text-muted nav-link mx-3" target="_blank" href="https://twitter.com/mixpose">
<i class="fa fa-lg fa-twitter-square" aria-hidden="true"></i>
<span class="d-sm-none d-md-none d-lg-none d-xl-none">
mixpose
</span>
</a>
</li>
<li class="nav-item">
<a class="text-muted nav-link mx-3" target="_blank" href="https://www.linkedin.com/company/mixpose">
<i class="fa fa-lg fa-linkedin-square" aria-hidden="true"></i>
<span class="d-sm-none d-md-none d-lg-none d-xl-none">
mixpose
</span>
</a>
</li>
<li class="nav-item">
<a class="text-muted nav-link mx-3" target="_blank" href="https://www.facebook.com/MixPoseAI">
<i class="fa fa-lg fa-facebook-square" aria-hidden="true"></i>
<span class="d-sm-none d-md-none d-lg-none d-xl-none">
MixPoseAI
</span>
</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link mx-3" href="press.html">Press</a>
</li> -->
<li class="nav-item">
<a class="nav-link mx-3" href="awards.html">Awards</a>
</li>
<li class="nav-item">
<a class="nav-link mx-3" href="http://eepurl.com/gVWRfn" target="_blank">Sign Up</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link mx-4" href="#" data-toggle="modal" data-target="#myModal">Sign Up</a>
</li> -->
</ul>
</div>
</nav>
<div class="position-relative overflow-hidden d-flex bg-custom p-md-5 text-center bg-light">
<span id="ThreeJsCanvas" class="invisible viewpoint-fadeInUp-delay2"></span>
<div class="col-md-5 p-lg-5 mx-auto my-5 invisible viewpoint-fadeInRight">
<h1 class="display-4 font-weight-normal"><strong>MixPose</strong></h1>
<p class="lead font-weight-normal text-green">Streaming platform for yoga instructors, fitness professionals and dance teachers.</p>
<a class="btn btn-outlined btn-big btn-custom" target="_blank" href="http://eepurl.com/gVWRfn">
Sign up
<i class="material-icons v-align md-18">arrow_forward</i>
</a>
<div class="d-block header-social-links">
<div class="vl-green mt-3"></div>
<div class="text-center mt-2 mb-2">
<h6>Follow us:</h6>
</div>
<a class="text-muted mx-2" target="_blank" href="https://twitter.com/mixpose">
<i class="fa fa-twitter fa-lg fa-circle-icon" aria-hidden="true"></i>
<!-- mixpose -->
</a>
<a class="text-muted mx-2" target="_blank" href="https://www.linkedin.com/company/mixpose">
<i class="fa fa-linkedin fa-lg fa-circle-icon" aria-hidden="true"></i>
<!-- mixpose -->
</a>
<a class="text-muted mx-2" target="_blank" href="https://www.facebook.com/MixPoseAI">
<i class="fa fa-facebook fa-lg fa-circle-icon" aria-hidden="true"></i>
<!-- MixPoseAI -->
</a>
</div>
<!-- <a class="btn btn-outlined btn-big btn-custom" data-toggle="modal" data-target="#myModal" href="#">Sign up<i
class="material-icons v-align md-18">arrow_forward</i></a> -->
</div>
</div>
<!-- Signup Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<script>
function validateEmail(email) {
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
function dismissModal() {
$('#register-modal').modal('hide');
}
function handleEmailSuccess(data) {
dismissModal();
alert('Thanks for Registering!');
}
function handleEmailError(res, textStatus, errorThrown) {
dismissModal();
alert("Error registering, you might already be registered.");
}
function sendEmailRequest(yourName, yourEmail) {
console.log('sendEmailRequest');
const data = {
name: yourName,
email: yourEmail
};
const url = "http://13.65.170.101:9001";
// const url = "http://localhost:9001";
$.ajax({
url: `${url}/api/register`,
type: 'POST',
data: JSON.stringify(data),
contentType: 'application/json; charset=utf-8',
success: handleEmailSuccess,
error: handleEmailError
});
}
function validateFormOnSubmit() {
const yourName = $("#your-name").val();
const yourEmail = $("#your-email").val();
console.log('validate form', yourName, yourEmail);
const nameValid = yourName !== "";
if (!nameValid) {
alert("Name cannot be empty");
return false;
}
const emailValid = validateEmail(yourEmail);
if (!emailValid) {
alert("Please use a valid email address");
return false;
}
sendEmailRequest(yourName, yourEmail);
return false;
}
</script>
<!-- Modal content-->
<!--https://www.w3schools.com/bootstrap/bootstrap_modal.asp-->
<div class="modal-content" id="register-modal">
<!-- <div class="modal-header">
<h4 class="modal-title">Sign Up</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div> -->
<div class="modal-body m-4">
<h5 class="mb-5">Sign up for updates on MixPose</h5>
<div name="register-form">
Name:
<br>
<input type="text" id="your-name" title="Your Name" name="yourName"><br/>
Email:
<br>
<input type="email" id="your-email" title="Your Email" name="yourEmail"><br/>
<br>
<button class="btn btn-info" type="submit" value="Submit" data-dismiss="modal" onClick="validateFormOnSubmit()">
Submit
</button>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
</script>
<!-- Container (Services Section) -->
<div class="container-fluid text-center">
<h2><strong>FEATURES</strong></h2>
<!-- <h4>What we offer</h4> -->
<br>
<div class="row pt-sm-4">
<div class="col-sm-4 invisible viewpoint-fadeInUp-delay4">
<i class="material-icons md-custom md-48">view_stream</i>
<h4 class="pt-sm-4">Live Stream Lessons</h4>
<!-- <p>Lorem ipsum dolor sit amet..</p> -->
</div>
<div class="col-sm-4 invisible viewpoint-fadeInUp-delay2">
<i class="material-icons md-custom md-48">accessibility_new</i>
<h4 class="pt-sm-4">Pose Detection</h4>
<!-- <p>Lorem ipsum dolor sit amet..</p> -->
</div>
<div class="col-sm-4 invisible viewpoint-fadeInUp">
<i class="material-icons md-custom md-48">feedback</i>
<h4 class="pt-sm-4">Interactive Feedback</h4>
<!-- <p>Lorem ipsum dolor sit amet..</p> -->
</div>
</div>
</div>
<div class="container-fluid bg-light invisible viewpoint-fadeInUp">
<div class="container">
<h2 class="text-center"><strong>About</strong></h2>
<div class="row text-center pt-2">
<h4 class="mt-4"><strong>MixPose</strong>
is a streaming platform to empower fitness professionals, yoga instructors and dance teachers through power of AI.
</h4>
<p class="mt-4">
The idea behind MixPose is so that fitness professionals and yoga teachers can choose to teach anywhere they feel comfortable, such as beaches, waterfall, outdoors or their own home.
And users can watch the stream in the comfort of their own TV.
</p>
</div>
</div>
</div>
<!-- Container (About Section) -->
<div class="container-fluid bg-custom invisible viewpoint-fadeInUp">
<div class="owl-carousel owl-theme">
<div class="item">
<img src="img/screenshots/mp-01.png" alt="">
</div>
<div class="item">
<img src="img/screenshots/mp-02.png" alt="">
</div>
<div class="item">
<img src="img/screenshots/mp-03.png" alt="">
</div>
<div class="item">
<img src="img/screenshots/mp-04.png" alt="">
</div>
<div class="item">
<img src="img/screenshots/mp-05.png" alt="">
</div>
</div>
</div>
<!-- Container (About Section) -->
<div class="container-fluid bg-custom invisible viewpoint-fadeInUp">
<div class="container">
<!-- <h2 class="text-center mb-4"><strong>About</strong></h2> -->
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 col-12">
<p>
With MixPose, yoga and fitness professionals can teach classes via streaming platform,
which would generate income for them.
</p>
</div>
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-12">
<div class="text-center video-container">
<iframe src="https://www.youtube.com/embed/O1aZmy_YuL4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-12 py-4 mb-4">
<div class="text-center video-container">
<video id="yoga-intro-video" style="width: 100%; height: auto;" controls autoplay loop>
<source src="img/yoga-intro.mp4" type="video/mp4">
</video>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 col-12 my-4">
<p>
Mixpose also enables instructions from many places like India and Nepal, where yoga was born.
Yogis are able to teach live classes from India and dance teachers are able to instruct from Latin America.
</p>
</div>
</div>
</div>
</div>
<!-- <div style="top: 0; width: 100%; height: 100%; z-index: -1;">
<video id="video" style="width:100%; height:100%" controls autoplay loop>
<source src="img/yoga-beach.mp4" type="video/mp4">
</video>
</div> -->
<div class="container-fluid bg-light invisible viewpoint-fadeInUp">
<div class="container mt-4 pt-4">
<h2 class="text-center"><strong>Device Support</strong></h2>
<!-- <img class="img-fluid mt-4 pt-4" src="img/api.png"> -->
<div class="row text-center pt-4">
<div class="col-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 invisible viewpoint-fadeInUp-delay4">
<i class="material-icons md-custom md-48">phone_iphone</i>
<h4 class="pt-4">Mobile App</h4>
<!-- <p>Lorem ipsum dolor sit amet..</p> -->
</div>
<div class="col-6 col-xs-6 col-sm-6 col-md-6 col-lg-6 invisible viewpoint-fadeInUp">
<i class="material-icons md-custom md-48">tv</i>
<h4 class="pt-4">TV App</h4>
<!-- <p>Lorem ipsum dolor sit amet..</p> -->
</div>
<!-- <div class="col-sm-4 invisible viewpoint-fadeInUp-delay2">
<i class="material-icons md-custom md-48">accessibility_new</i>
<h4 class="pt-4">Pose Detection</h4>
</div> -->
</div>
</div>
</div>
<!-- <hr> -->
<footer class="container py-4 mt-4">
<div class="row mx-auto">
<div class="col-6 col-xs-6 col-sm-3 col-md-3 col-lg-3">
<span class="navbar-brand">
<img style="max-width:35px; color: black;" class="navbar-left" src="img/logo.png">
<img style="max-width:95px; color: black;" class="navbar-left" src="img/logotype.png">
<!-- <strong>MixPose</strong> -->
</span>
<span class="d-block text-muted">© 2020</span>
<small>
<span class="d-block mb-3 text-muted">All Rights Reserved</span>
</small>
</div>
<div class="col-6 col-xs-6 col-sm-3 col-md-3 col-lg-3 text-right text-sm-left">
<h5 class="mt-2">About</h5>
<ul class="list-unstyled text-small">
<!-- <li><a class="text-muted" href="press.html">Press</a></li> -->
<li><a class="text-muted" href="awards.html">Awards</a></li>
</ul>
</div>
<div class="col-6 col-xs-6 col-sm-3 col-md-3 col-lg-3">
<h5 class="mt-2">Social</h5>
<ul class="list-unstyled text-small">
<li>
<a class="text-muted" target="_blank" href="https://twitter.com/mixpose">
<i class="fa fa-twitter-square" aria-hidden="true"></i>
mixpose
</a>
</li>
<li>
<a class="text-muted" target="_blank" href="https://www.linkedin.com/company/mixpose">
<i class="fa fa-linkedin-square" aria-hidden="true"></i>
mixpose
</a>
</li>
<li>
<a class="text-muted" target="_blank" href="https://www.facebook.com/MixPoseAI">
<i class="fa fa-facebook-square" aria-hidden="true"></i>
MixPoseAI
</a>
</li>
</ul>
</div>
<div class="col-6 col-xs-6 col-sm-3 col-md-3 col-lg-3 text-right text-sm-left">
<p class="mt-2">
<a class="text-green" href="#">Back To Top
<i class="fa fa-arrow-circle-up" aria-hidden="true"></i>
</a>
</p>
<!-- <h5>About</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="press.html">Press</a></li>
<li><a class="text-muted" href="awards.html">Awards</a></li>
</ul> -->
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r69/three.min.js"></script>
<script src="js/animate-viewport.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-viewport-checker/1.8.8/jquery.viewportchecker.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"
integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"
integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.js"></script>
<script src="js/custom.js"></script>
<!-- three.js script -->
<script>
// website accent colors are 50acfd, 02f1ff
// 3js code goes here
var scene3d = document.getElementById("ThreeJsCanvas");
var CANVAS_WIDTH = 500;
var CANVAS_HEIGHT = 400;
// SCENE
var scene_header = new THREE.Scene();
// CAMERA
camera_header = new THREE.PerspectiveCamera(75, CANVAS_WIDTH / CANVAS_HEIGHT, 0.1, 1000);
camera_header.position.set(0, 0, 150);
camera_header.lookAt(scene_header.position);
// RENDERER
// transparent div background color
var renderer_header = new THREE.WebGLRenderer({alpha: true});
renderer_header.setClearColor(0x000000, 0);
renderer_header.setSize(CANVAS_WIDTH, CANVAS_HEIGHT);
// GEOMETRY & MATERIALS
// outlined sphere
var geometry_sphere = new THREE.SphereGeometry(80, 5, 5);
// var geometry_sphere = new THREE.DodecahedronGeometry(80, 2);
var material_phong_outlined = new THREE.MeshPhongMaterial({
color: 0x000000,
wireframeLinewidth: 3,
shininess: 30,
specular: 0x111111,
wireframe: true
});
var sphere_outlined = new THREE.Mesh(geometry_sphere, material_phong_outlined);
scene_header.add(sphere_outlined);
sphere_outlined.castShadow = true;
sphere_outlined.receiveShadow = true;
// outlined sphere ends
// materials
var lambertMaterial = new THREE.MeshLambertMaterial({
opacity: 0.25,
color: 0x50acfd
});
lambertMaterial.transparent = true;
var color = new THREE.Color("#00cb39");
var material_phong_shiny = new THREE.MeshPhongMaterial({
color: color.getHex(),
// opacity: 0.9,
specular: 0xffffff,
shinyness: 100
});
//torus
// var geometry_torus = new THREE.TorusKnotGeometry(35, 4, 100, 10);
// box
var geometry_insideBox = new THREE.BoxGeometry(80, 80, 80);
var torus_mesh = new THREE.Mesh(geometry_insideBox, lambertMaterial);
var torus_mesh_outline = new THREE.Mesh(geometry_insideBox, material_phong_outlined);
scene_header.add(torus_mesh);
scene_header.add(torus_mesh_outline);
//LOCATION ICONS
location_icon_PivotPoint = new THREE.Object3D();
location_icon_PivotPoint.position.set(0, 0, 0);
var location_icon_geometry_logo = new THREE.BoxGeometry(30, 65, 0);
var location_icon_geometry = new THREE.BoxGeometry(20, 32, 0);
// var location_icon_material = new THREE.MeshBasicMaterial( {color: 0x8d8d8d} ); //test material of plain color
THREE.ImageUtils.crossOrigin = '';
// var location_icon_image = THREE.ImageUtils.loadTexture( 'http://oi67.tinypic.com/6fql9h.jpg' );
// var location_icon_image = THREE.ImageUtils.loadTexture( 'http://i.imgur.com/j7dzU42.jpg' );
var location_icon_image_logo = THREE.ImageUtils.loadTexture('https://i.imgur.com/46Wrx50.png');
var location_icon_image = THREE.ImageUtils.loadTexture('https://i.imgur.com/hJ9nGrB.png');
var location_icon_imageMaterial_logo = new THREE.MeshBasicMaterial({
map: location_icon_image_logo,
opacity: 0.75
});
var location_icon_imageMaterial = new THREE.MeshBasicMaterial({
map: location_icon_image,
opacity: 0.75
});
location_icon_imageMaterial_logo.transparent = true;
location_icon_imageMaterial.transparent = true;
//NOTE: tiling of images in textures only functions if image dimensions are powers of two
//for examples: (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...)
location_icon_image_logo.wrapS = location_icon_image_logo.wrapT = THREE.RepeatWrapping;
var location_icon_Mesh_logo = new THREE.Mesh(location_icon_geometry_logo, location_icon_imageMaterial_logo);
location_icon_image.wrapS = location_icon_image.wrapT = THREE.RepeatWrapping;
var location_icon_Mesh = new THREE.Mesh(location_icon_geometry, location_icon_imageMaterial);
var location_icon_Mesh2 = new THREE.Mesh(location_icon_geometry, location_icon_imageMaterial);
var location_icon_Mesh3 = new THREE.Mesh(location_icon_geometry, location_icon_imageMaterial);
scene_header.add(location_icon_Mesh_logo);
scene_header.add(location_icon_Mesh);
scene_header.add(location_icon_Mesh2);
scene_header.add(location_icon_Mesh3);
location_icon_PivotPoint.add(location_icon_Mesh);
location_icon_PivotPoint.add(location_icon_Mesh2);
location_icon_PivotPoint.add(location_icon_Mesh3);
// show other icons
// scene_header.add(location_icon_PivotPoint);
// location_icon_Mesh_logo.position.z = 60;
// location_icon_Mesh_logo.position.x = 60;
// location_icon_Mesh_logo.rotation.y = Math.PI/2;
location_icon_Mesh.position.z = 60;
location_icon_Mesh.position.x = 60;
location_icon_Mesh.rotation.y = Math.PI / 3;
location_icon_Mesh2.position.z = -60;
location_icon_Mesh2.position.x = 60;
location_icon_Mesh2.position.x = -20;
// location_icon_Mesh2.rotation.y = -Math.PI/2;
location_icon_Mesh3.position.z = 60;
location_icon_Mesh3.position.x = -60;
location_icon_Mesh3.rotation.y = -Math.PI / 3;
//location icons end----------------------------
//CIRCULAR FLOOR
//Create a ground for shape to hover over
// var groundGeometry = new THREE.PlaneBufferGeometry(50, 50);
var groundGeometry = new THREE.CircleGeometry(7, 50);
var texture_ground = new THREE.MeshPhongMaterial({
color: 0x50acfd,
opacity: 0.8,
specular: 0xffffff,
shinyness: 20,
side: THREE.DoubleSide
});
var ground = new THREE.Mesh(groundGeometry, texture_ground);
ground.rotation.x = -Math.PI / 2;
ground.position.set(0, -55, 0); // (0, -105, 0) to go below the outlined sphere
ground.receiveShadow = true;
scene_header.add(ground);
// brighter lights
var ambientLight = new THREE.AmbientLight(0x00cb39);
scene_header.add(ambientLight);
var lights_header = [];
lights_header[0] = new THREE.PointLight(0xe90269, 1, 0);
lights_header[1] = new THREE.PointLight(0xe90269, 1, 0);
lights_header[2] = new THREE.PointLight(0x02f1ff, 1, 0);
lights_header[0].position.set(0, 200, 0);
lights_header[1].position.set(100, 200, 100);
lights_header[2].position.set(-100, -200, -100);
scene_header.add(lights_header[0]);
scene_header.add(lights_header[1]);
scene_header.add(lights_header[2]);
// light cast shadows
lights_header[0].castShadow = true;
lights_header[1].castShadow = true;
lights_header[2].castShadow = true;
// FINISH SCENE SETUP
// document.body.appendChild(scene3d.domElement);
ThreeJsCanvas.appendChild(renderer_header.domElement);
// renderer.render(scene, camera);
var steps = 0;
var render = function () {
steps += 0.07;
requestAnimationFrame(render);
sphere_outlined.rotation.y += 0.004;
torus_mesh_outline.rotation.y -= 0.01;
torus_mesh.rotation.y -= 0.01;
torus_mesh_outline.rotation.z -= 0.001;
torus_mesh.rotation.z -= 0.001;
torus_mesh_outline.position.y = 5 + (1.7 * (Math.cos(steps)));
torus_mesh.position.y = 5 + (1.7 * (Math.cos(steps)));
location_icon_PivotPoint.rotation.y += 0.004; //rotates around center
// location_icon_PivotPoint.rotation.x += 0.03;
// location_icon_Mesh.rotation.y += 0.01;
// location_icon_Mesh_logo.rotation.x -= 0.009;
// location_icon_Mesh_logo.rotation.y -= 0.009;
// location_icon_Mesh_logo.rotation.z -= 0.009;
location_icon_Mesh_logo.position.y = (1 * (Math.cos(steps)));
renderer_header.render(scene_header, camera_header);
};
render();
</script>
</body>
</html>