Thu, 06 Apr 2017 17:45:36 +0200
bug :)
8 | 1 | <!DOCTYPE html> |
2 | <html lang="en"><head> | |
3 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
4 | <title>ScubaTools Object Viewer</title> | |
5 | <meta charset="utf-8"> | |
6 | <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
7 | ||
16 | 8 | <link rel="stylesheet" href="js/jquery-ui.css" /> |
11 | 9 | <link rel="stylesheet" href="stlviewer.css" /> |
16 | 10 | <script src="js/jquery-1.12.4.min.js"></script> |
11 | <script src="js/jquery-ui.min.js"></script> | |
8 | 12 | |
16 | 13 | <script src="js/three.min.js"></script> |
14 | <script src="js/Detector.js"></script> | |
15 | <script src="js/STLLoader.js"></script> | |
16 | <script src="js/OrbitControls.js"></script> | |
8 | 17 | |
18 | </head> | |
19 | <body> | |
20 | <div id="info"> | |
11 | 21 | <div class="listcontainer"> |
22 | <h2>Available:</h2> | |
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
23 | move to selected |
11 | 24 | <ul id="sortable1"> |
25 | <!-- PLACEHOLDER CYLINDERS --> | |
26 | </ul> | |
27 | </div> | |
28 | <div class="listcontainer"> | |
29 | <h2>Selected:</h2> | |
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
30 | <a href="#" id="clearselected">clear list</a> |
11 | 31 | <ul id="sortable2"> |
32 | ||
33 | </ul> | |
34 | </div> | |
35 | ||
18 | 36 | <div class="infocontainer"> |
37 | <div id="infocontainer"></div> | |
38 | <img src="" id="image2d" /> | |
17 | 39 | </div> |
11 | 40 | |
17 | 41 | <div> |
42 | <a href="https://neo-soft.org" target="_blank">NeoSoft</a> ScubaTools - | |
43 | <a href="https://threejs.org/" target="_blank">three.js</a> - | |
44 | STL loader by <a href="https://github.com/aleeper" target="_blank">aleeper</a>. | |
45 | <br/> | |
46 | Left mouse: rotate camera, right mouse: move camera, middle mouse or wheel: zoom | |
47 | </div> | |
11 | 48 | |
8 | 49 | </div> |
50 | ||
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
51 | <div id="rendercontainer"></div> |
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
52 | |
11 | 53 | <script src="stlviewer.js"></script> |
54 | ||
8 | 55 | <script> |
12 | 56 | if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); |
8 | 57 | var container; |
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
58 | var controls; |
8 | 59 | var camera, cameraTarget, scene, renderer; |
12 | 60 | var m_spacer = new THREE.MeshPhongMaterial( { |
61 | color: 0x736f6e, specular: 0x111111, shininess: 100 } ); | |
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
62 | |
12 | 63 | var m_cylinder = new THREE.MeshPhongMaterial( { |
64 | color: 0x4682b4, specular: 0x111111, shininess: 200 } ); | |
13
39fb313ba27c
finished viewer again, giving up with texturing mesh without uv mapping
mdd
parents:
12
diff
changeset
|
65 | |
12 | 66 | init(); |
8 | 67 | animate(); |
68 | ||
14 | 69 | </script> |
8 | 70 | |
71 | ||
72 | </body></html> |