-
Notifications
You must be signed in to change notification settings - Fork 19
/
view.html
146 lines (146 loc) · 6.1 KB
/
view.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Collada Animation Viewer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.custom.min.js"></script>
<link type="text/css" href="css/jquery-ui.custom.css" rel="stylesheet" media="screen" />
<!-- Bootstrap -->
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet" media="screen" />
<link type="text/css" href="css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- Three.js -->
<script type="text/javascript" src="js/Three.js"></script>
<script type="text/javascript" src="js/TrackballControls.js"></script>
<script type="text/javascript" src="js/ColladaLoader.js"></script>
<!-- Our own loader -->
<script type="text/javascript" src="view.js"></script>
<script type="text/javascript" src="ColladaLoader2.js"></script>
<!-- Application initialization -->
<script>
$(document).ready(function () {
initApplication();
});
</script>
<!-- Inline CSS -->
<style type="text/css">
#view_container {
width: 100%;
background-color: black;
}
#logContainer {
height:200px;
overflow-y:auto;
margin-top:10px;
}
#log td {
padding: 2px;
}
.main-height {
height: 400px;
}
.option-box {
border: 1px solid #ddd;
padding: 10px;
margin: 0 0 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="row-fluid">
<div class="span3">
<span class="help-block">Textures</span>
<textarea id="images" class="input-block-level main-height" readonly></textarea>
</div>
<div class="span6">
<button class="btn pull-right" id="load">Load</button>
<input type="file" style="display:none;" id="inputfile" />
<span class="help-block">Collada file</span>
<div id="view_container" class="main-height"> </div>
</div>
<div class="span3">
<span class="help-block">Statistics</span>
<textarea id="statistics" class="input-block-level main-height" readonly></textarea>
</div>
</div>
<div class="row-fluid">
<div class="span4"><div class="option-box">
<span class="help-block">Loader</span>
<select id="loader_type" class="input-block-level">
<option>ColladaLoader (threejs r64)</option>
<option selected>ColladaLoader2 (new implementation)</option>
<option>Three.js JSON (threejs r64)</option>
</select>
</div></div>
<div class="span4"><div class="option-box">
<span class="help-block">Options</span>
<label class="checkbox" id="load_animations_label">
<input type="checkbox" value="LoadAnimations" id="load_animations" checked>
Load animations
</label>
<label class="checkbox" id="skin_to_morph_label">
<input type="checkbox" value="SkinToMorph" id="skin_to_morph">
Skins as morphs
</label>
<label class="checkbox" id="use_lights_label">
<input type="checkbox" value="UseLights" id="use_lights">
Use loaded lights
</label>
<label class="checkbox" id="use_camera_label">
<input type="checkbox" value="UseCamera" id="use_camera">
Use loaded camera
</label>
</div></div>
<div class="span4"><div class="option-box">
<span class="help-block">Animation playback</span>
<label class="range" id="kpsLabel" for="kps">10.0 keyframes per second</label>
<div id="kps" type="range" value="10" min="1" max="99" ></div>
<label class="range" id="frameRangeLabel" for="frameRange">Keyframe playback range: 0 - 5000</label>
<div id="frameRange" type="range" value="10" min="0" max="5000" ></div>
</div></div>
</div>
<div class="row-fluid"><div class="option-box">
<div class="btn-group">
<button class="btn btn-danger active" id="filterErrors">
<i class="icon-white icon-remove-sign"></i> Errors
</button>
<button class="btn btn-warning active" id="filterWarnings">
<i class="icon-white icon-warning-sign"></i> Warnings
</button>
<button class="btn btn-info active" id="filterInfo">
<i class="icon-white icon-info-sign"></i> Info
</button>
<button class="btn active" id="filterTrace">
<i class="icon-time"></i> Trace
</button>
</div>
<button class="btn pull-right" id="clearLog">
Clear
</button>
<div id="logContainer" class="option-box">
<table class="table table-hover" id="log">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div></div>
<!--
<div class="row-fluid">
<textarea id="profile" rows="10" class="input-block-level" readonly></textarea>
</div>
-->
</div>
</body>
</html>