File size: 3,209 Bytes
73c6193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
    <title><%= htmlWebpackPlugin.options.title %></title>

    <style>

        body {

            font-family: Monospace;

            /* background-color: #222222; */

            margin: 0px;

            width: 100%;

			height: 100%;

            overflow: hidden;

        }

        #info {

            color: #808080;

            position: absolute;

            top: 10px;

            width: 100%;

            text-align: center;

            z-index: 100;

            display:block;

        }

        #container {

            position: absolute;

            top: 0px;

            width:100%;

            height:100%;

            z-index: -1;

        }

        #controls {

            position: absolute;

            width: 200px;

            bottom: 0px;

            left: 0px;

            padding: 10px;

            background-color: White;

            font: 13px "Lucida Grande", Lucida, Verdana, sans-serif;

        }

        #controls > div {

            margin-bottom: 8px;

        }

        #controls hr {

            border: 0px;

            height: 1px;

            margin-bottom: 10px;

            background-color: #bbb;

        }

        #info a, .button {

            color: #f00;

            font-weight: bold;

            text-decoration: underline;

            cursor: pointer

        }

    </style>
  </head>
  <body>

        <a href="https://github.com/shrekshao/gltf-avatar-threejs"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png" alt="Fork me on GitHub"></a>
        <div id="container">
            <!-- <canvas id ="canvas"></canvas> -->
        </div>
        
        <a id="downloadLink" hidden>download</a>

        <!-- <div id="controls">

            <div id="status">Loading...</div>

            <hr />

            <div id="clothes-btns"></div>

            <div>

                Model

                <select id="scenes_list" size="1" ></select>

            </div>

            <div>

                Camera

                <select id="cameras_list" size="1" ></select>

            </div>

            <div>

                Animations

                <input id="animation_toggle" type="checkbox" checked >Play</input>

                <select id="animations_list" size"1"></select>

            </div>

            <div>

                Extension

                <select id="extensions_list">

                    <option value="glTF">None (Default)</option>

                    <option value="glTF-Embedded">None (Embedded)</option>

                    <option value="glTF-Binary">None (Binary)</option>

                    <option value="glTF-MaterialsCommon">Common Materials</option>

                    <option value="glTF-pbrSpecularGlossiness">Specular-Glossiness (PBR)</option>

                </select>

            </div>



            <br/>

            <button id="export-btn">Export glb</button>

            <a id="downloadLink" hidden>download</a>

        </div> -->
  </body>
</html>