-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (66 loc) · 2.34 KB
/
Copy pathindex.html
File metadata and controls
81 lines (66 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="en-EN" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>READYPLAYERME AVATAR</title>
<!-- JEELIZFACEEXPRESSIONS LIB: DETECT FACIAL EXPRESSIONS: -->
<script src="../../../dist/jeelizFaceExpressions.js"></script>
<!-- THREE.JS: -->
<script src="../../../libs/three/v119/three.min.js"></script>
<script src="../../../libs/three/v119/GLTFLoader.js"></script>
<!-- CUSTOM SMALL LIBS: -->
<script src="../../../libs/custom/lib_ajax.js"></script>
<script src="../../../libs/custom/lib_array.js"></script>
<!-- THREE.JS WEBOJI HELPER: -->
<!-- required to import the morphs: -->
<script src="../../../helpers/three/ThreeMorphAnimGeomBuilder.js"></script>
<!-- MAIN DEMO SCRIPT WITH main() FUNC: -->
<script src="main.js"></script>
<!-- INCLUDE FORK ME ON GITHUB BANNER -->
<script src="../../appearance/widget.js"></script>
<link rel="stylesheet" href="../../appearance/style.css" type="text/css" />
<style type='text/css'>
body {
background-color: white;
margin: 0;
}
a {
color: blue;
}
#jeelizFaceExpressionsCanvas {
z-index: 20;
position: fixed;
bottom: 0; left: 0;
max-height: 25vh;
transform: rotateY(180deg); /* mirror video */
}
.webojiCanvas {
z-index: 10;
position: fixed;
max-height: 100%; max-width: 100%; left: 50%; top: 50%;
width: 100vmin;
transform: translate(-50%, -50%) rotateY(180deg); /* mirror */
}
.notice {
position: fixed;
z-index: 30;
top: 0;
width: 100vw;
margin-top: 1em;
text-align: center;
font-size: 14pt;
}
</style>
</head>
<body onload>
<!-- VIDEO FEEDBACK: -->
<canvas id='jeelizFaceExpressionsCanvas'></canvas>
<!-- WEBOJI: -->
<canvas class='webojiCanvas' id='webojiCanvas' width='600' height='600'></canvas>
<div class='notice'>
You can generate your own GLB avatar on <a href='https://vr.readyplayer.me/' target='_blank'>vr.readyplayer.me</a>
</div>
</body>
</html>