This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurrentviewer.html
74 lines (74 loc) · 3.14 KB
/
currentviewer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>Current glTF Viewer - Three.js Object Viewer</title>
<link rel="stylesheet" href="./scss/main.scss">
</head>
<body>
<header>
<h1>Three.js Object Viewer</h1>
<nav>
<ul>
<li><a href="https://github.com/cdlib/threejs-viewer">GitHub page</a></li>
<li><a href="index.html">index page</a></li>
</ul>
</nav>
<h2>Current glTF Viewer</h2>
<h3><span id="nameheading"></span>, <span id="institutionheading"></span></h3>
</header>
<div id="demo3" class="container">
<div class="loadstatus">
<div id="loadstatus-label"></div>
<progress id="progressbar" value="0" max="100"></progress>
</div>
<!-- load the <canvas> here -->
</div>
<div class="controls">
<button id="fullscreen">Fullscreen</button>
<label id="intensitylabel" for="intensity">Light Intensity:</label>
<input id="intensityrange" type="range" name="intensity" min="15" max="35" step="0.1" value="25">
<button id="resetcamera">Reset</button>
<button id="toggledirections" aria-expanded="true" hidden>Show how to move object</button>
<div id="modelsize" class="modelsize">
<span id="sizelabel">Size:</span>
<span id="modelwidth">width: <output></output>;</span>
<span id="modelheight">height: <output></output>;</span>
<span id="modeldepth">depth: <output></output></span>
<label for="modelscale">Scale:</label>
<select id="modelselect">
<option value="mm">millimeters</option>
<option value="cm">centimeters</option>
<option value="in">inches</option>
<option value="ft">feet</option>
<option value="yd">yards</option>
<option value="m">meters</option>
</select>
<label for="gridoptionsbutton">Show Measurement Grid:</label>
<input id="gridoptionsbutton" type="checkbox">
<fieldset id="gridoptions" hidden>
<input id="gridxbutton" type="radio" name="gridtype" checked>
<label for="gridxbutton">Show Grid X Axis</label>
<input id="gridybutton" type="radio" name="gridtype">
<label for="gridybutton">Show Grid Y Axis</label>
<div class="measurementkey">
<span id="gridkey">One square = <output></output></span>
</div>
</fieldset>
</div>
<div id="debugmenu" hidden>
<p><strong>[Debug View]</strong></p>
<p><strong>Bounding Box Size:</strong> <span id="boxsize"></span></p>
<p><strong>Camera Near:</strong> <span id="cameranear"></span></p>
<p><strong>Camera Far:</strong> <span id="camerafar"></span></p>
</div>
<ul id="directions" hidden>
<li><strong>Mouse:</strong> drag left button to rotate, scroll wheel to zoom, drag left button and hold ctrl key to pan</li>
<li><strong>Keyboard:</strong> arrow keys to rotate, W, A, S, D keys to pan and zoom</li>
<li><strong>Touch:</strong> drag one finger to rotate, pinch or spread two fingers to zoom, drag two fingers to pan</li>
</ul>
</div>
<script src="./js/index.js"></script>
</body>
</html>