index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>three.js - Javascript 3D library</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <style>
  8. @font-face {
  9. font-family: 'inconsolata';
  10. src: url('files/inconsolata.woff') format('woff');
  11. font-weight: normal;
  12. font-style: normal;
  13. }
  14. * {
  15. box-sizing: border-box;
  16. }
  17. body {
  18. background-color: #ffffff;
  19. margin: 0px;
  20. font-family: 'inconsolata';
  21. font-size: 15px;
  22. line-height: 18px;
  23. color: #555;
  24. }
  25. h1 {
  26. margin-top: 30px;
  27. margin-bottom: 30px;
  28. margin-left: 20px;
  29. font-size: 25px;
  30. font-weight: normal;
  31. }
  32. h2 {
  33. color: #999;
  34. font-size: 18px;
  35. font-weight: normal;
  36. margin-top: 5px;
  37. margin-bottom: 30px;
  38. }
  39. hr {
  40. border: 0px;
  41. height: 1px;
  42. background-color: #ccc;
  43. margin: 30px 0px;
  44. }
  45. sup {
  46. position: relative;
  47. margin-left: 5px;
  48. font-size: 15px;
  49. top: -0.5em;
  50. vertical-align: top;
  51. }
  52. a {
  53. color: #2194CE;
  54. text-decoration: none;
  55. }
  56. a:hover {
  57. text-decoration: underline;
  58. }
  59. #panel {
  60. position: fixed;
  61. left: 0px;
  62. top: 0px;
  63. bottom: 0px;
  64. width: 180px;
  65. background: #ffffff;
  66. }
  67. #panel #content {
  68. padding: 0px 20px;
  69. }
  70. #panel img {
  71. border: 1px solid #ccc;
  72. }
  73. #panel #resource {
  74. text-align: center;
  75. }
  76. #panel #book {
  77. text-align: center;
  78. margin-top: 15px;
  79. }
  80. #viewer {
  81. position: absolute;
  82. top: 0px;
  83. right: 0px;
  84. left: 180px;
  85. padding: 28px 20px;
  86. }
  87. #viewer #more {
  88. position: absolute;
  89. top: 32px;
  90. right: 20px;
  91. }
  92. #viewer #projects a {
  93. display: block;
  94. width: 200px;
  95. height: 150px;
  96. float: left;
  97. }
  98. #viewer #projects img {
  99. width: 100%;
  100. height: 100%;
  101. }
  102. #viewer #projects img:hover {
  103. opacity: 0.75;
  104. }
  105. /* mobile */
  106. #expandButton {
  107. display: none;
  108. position: absolute;
  109. right: 20px;
  110. top: 12px;
  111. width: 32px;
  112. height: 32px;
  113. }
  114. #expandButton span {
  115. height: 2px;
  116. background-color: #2194CE;
  117. width: 16px;
  118. position: absolute;
  119. left: 8px;
  120. top: 10px;
  121. }
  122. #expandButton span:nth-child(1) {
  123. top: 16px;
  124. }
  125. #expandButton span:nth-child(2) {
  126. top: 22px;
  127. }
  128. @media all and ( max-width: 640px ) {
  129. h1 {
  130. margin-top: 20px;
  131. margin-bottom: 20px;
  132. }
  133. h2 {
  134. margin-bottom: 20px;
  135. }
  136. #panel {
  137. position: absolute;
  138. left: 0;
  139. top: 0;
  140. height: 480px;
  141. width: 100%;
  142. right: 0;
  143. z-index: 100;
  144. overflow: hidden;
  145. border-bottom: 1px solid #dedede;
  146. }
  147. #content {
  148. position: absolute;
  149. left: 0;
  150. top: 60px;
  151. right: 0;
  152. bottom: 0;
  153. font-size: 17px;
  154. line-height: 22px;
  155. overflow: auto;
  156. }
  157. #viewer {
  158. position: absolute;
  159. left: 0;
  160. top: 56px;
  161. width: 100%;
  162. height: calc(100% - 56px);
  163. overflow: auto;
  164. }
  165. #expandButton {
  166. display: block;
  167. }
  168. #panel.collapsed {
  169. height: 56px;
  170. }
  171. }
  172. </style>
  173. </head>
  174. <body>
  175. <script src="//cdn.webglstats.com/stat.js" defer="defer" async="async"></script>
  176. <script type="text/javascript">
  177. var _gaq = _gaq || [];
  178. _gaq.push(['_setAccount', 'UA-86951-15']);
  179. _gaq.push(['_trackPageview']);
  180. (function() {
  181. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  182. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  183. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  184. })();
  185. </script>
  186. <div id="panel" class="collapsed">
  187. <h1>three.js<sup><a href="http://github.com/mrdoob/three.js/releases">r71</a></sup></h1>
  188. <a id="expandButton" href="#">
  189. <span></span>
  190. <span></span>
  191. <span></span>
  192. </a>
  193. <div id="content">
  194. <a href="examples/">examples</a>,
  195. <a href="http://stemkoski.github.io/Three.js/">more</a><br /><br />
  196. <a href="http://github.com/mrdoob/three.js/zipball/master">download</a>,
  197. <a href="http://cdnjs.com/libraries/three.js/">cdn</a><br /><br />
  198. <a href="docs/index.html#Manual/Introduction/Creating_a_scene">getting started</a><br />
  199. <a href="docs/">documentation</a><br />
  200. <a href="http://webchat.freenode.net/?channels=three.js">chat</a><br />
  201. <a href="http://stackoverflow.com/questions/tagged/three.js">help</a><br /><br />
  202. <a href="http://github.com/mrdoob/three.js/">github</a><br />
  203. <a href="http://github.com/mrdoob/three.js/contributors">contributors</a><br />
  204. <a href="http://github.com/mrdoob/three.js/wiki">wiki</a><br />
  205. <a href="http://github.com/mrdoob/three.js/issues">issues</a><br /><br />
  206. <a href="editor/">editor</a> (beta)
  207. <hr />
  208. <div id="resource">
  209. <script>
  210. var resources = [
  211. '<a href="http://www.udacity.com/overview/Course/cs291/" target="_blank"><img src="files/udacity.png" width="121" height="152" /></a>',
  212. '<a href="http://davidscottlyons.com/threejs/presentations/frontporch14/" target="_blank"><img src="files/intro.png" width="121" height="106" /></a>'
  213. ];
  214. document.write( resources[ Math.floor( Math.random() * resources.length ) ] );
  215. </script>
  216. </div>
  217. <div id="book">
  218. <script>
  219. var books = [
  220. '<a href="http://shop.oreilly.com/product/0636920024729.do" target="_blank"><img src="files/books/webgl.png" width="100" height="132" /></a>',
  221. '<a href="https://www.packtpub.com/web-development/learning-threejs-javascript-3d-library-webgl" target="_blank"><img src="files/books/learning-threejs-javascript-3d-library-webgl.png" width="100" height="123" /></a>',
  222. '<a href="https://www.packtpub.com/game-development/game-development-threejs" target="_blank"><img src="files/books/game-development-threejs.png" width="100" height="123" /></a>',
  223. '<a href="https://www.packtpub.com/web-development/threejs-essentials" target="_blank"><img src="files/books/threejs-essentials.png" width="100" height="124" /></a>',
  224. '<a href="https://www.packtpub.com/web-development/threejs-cookbook" target="_blank"><img src="files/books/threejs-cookbook.png" width="100" height="123" /></a>'
  225. ];
  226. document.write( books[ Math.floor( Math.random() * books.length ) ] );
  227. </script>
  228. </div>
  229. </div>
  230. </div>
  231. <script>
  232. var panel = document.getElementById( 'panel' );
  233. var expandButton = document.getElementById( 'expandButton' );
  234. expandButton.addEventListener( 'click', function ( event ) {
  235. panel.classList.toggle( 'collapsed' );
  236. event.preventDefault();
  237. } );
  238. </script>
  239. <div id="viewer">
  240. <h2>featured projects</h2>
  241. <a id="more" href="https://plus.google.com/+ThreejsOrg">more projects</a>
  242. <div id="projects">
  243. <a href="http://a-way-to-go.com/" target="_blank"><img src="files/projects/waytogo.png"></a>
  244. <a href="http://www.urbangalaxyonline.com/" target="_blank"><img src="files/projects/urbangalaxyonline.jpg"></a>
  245. <a href="http://www.leiainc.com/" target="_blank"><img src="files/projects/leiainc.png"></a>
  246. <a href="http://www.heroforge.com/" target="_blank"><img src="files/projects/heroforge.png"></a>
  247. <a href="http://www.bullseyesplayground.com/" target="_blank"><img src="files/projects/bullseyesplayground.jpg"></a>
  248. <a href="http://christmasexperiments.com/" target="_blank"><img src="files/projects/christmasexperiments2014.png"></a>
  249. <a href="http://cabbi.bo/" target="_blank"><img src="files/projects/cabbibo.png"></a>
  250. <a href="http://thedivergentseries.com/" target="_blank"><img src="files/projects/thedivergentseries.png"></a>
  251. <a href="http://mozvr.com/" target="_blank"><img src="files/projects/mozvr.jpg"></a>
  252. <a href="http://peoplebehindthepixels.com/" target="_blank"><img src="files/projects/peoplebehindthepixels.jpg"></a>
  253. <a href="http://brian.peiris.io/RiftSketch/" target="_blank"><img src="files/projects/riftsketch.jpg"></a>
  254. <a href="http://pablotheflamingo.com/" target="_blank"><img src="files/projects/pablotheflamingo.jpg"></a>
  255. <a href="http://www.shapespark.com/" target="_blank"><img src="files/projects/shapespark.png"></a>
  256. <a href="http://witnessgotham.com/" target="_blank"><img src="files/projects/witnessgotham.jpg"></a>
  257. <a href="http://autodesk360.com/" target="_blank"><img src="files/projects/a360.png"></a>
  258. <a href="http://gisele.underarmour.com/" target="_blank"><img src="files/projects/gisele.jpg"></a>
  259. <a href="http://cityofdrones.io/" target="_blank"><img src="files/projects/cityofdrones.png"></a>
  260. <a href="https://www.g-star.com/en_nl/newdenimarrivals" target="_blank"><img src="files/projects/newdenimarrivals.png"></a>
  261. <a href="https://www.batmanarkhamknight.com/en_US/batmobile" target="_blank"><img src="files/projects/batmanarkhamknight.jpg"></a>
  262. <a href="http://potree.org/wp/demo/" target="_blank"><img src="files/projects/potree.jpg"></a>
  263. <a href="http://www.overthetinyhills.com/" target="_blank"><img src="files/projects/overthetinyhills.jpg"></a>
  264. <a href="http://vr.chromeexperiments.com/" target="_blank"><img src="files/projects/cardboard.jpg"></a>
  265. <a href="http://timeinvariant.github.io/gorescript/play/" target="_blank"><img src="files/projects/gorescript.jpg"></a>
  266. <a href="http://www.google.com/doodles/rubiks-cube" target="_blank"><img src="files/projects/rubiks-cube.jpg"></a>
  267. <a href="http://www.georgeandjonathan.com/" target="_blank"><img src="files/projects/georgeandjonathan.jpg"></a>
  268. <a href="http://www.nike.com/xp/b/genealogyofthefree/zoetrope.html" target="_blank"><img src="files/projects/genealogyofthefree.jpg"></a>
  269. <a href="http://i-remember.fr/en" target="_blank"><img src="files/projects/iremember.png"></a>
  270. <a href="http://ogreen.special-t.com/en/" target="_blank"><img src="files/projects/ogreen.jpg"></a>
  271. <a href="http://verold.com/" target="_blank"><img src="files/projects/verold.png"></a>
  272. <a href="http://carvisualizer.plus360degrees.com/classics/" target="_blank"><img src="files/projects/classics.png"></a>
  273. <a href="http://photosynth.net/preview" target="_blank"><img src="files/projects/photosynth.png"></a>
  274. <a href="http://helloracer.com/racer-s/" target="_blank"><img src="files/projects/racer-s.jpg"></a>
  275. <a href="http://christmasexperiments.com/2013/" target="_blank"><img src="files/projects/christmasexperiments.jpg"></a>
  276. <a href="http://middle-earth.thehobbit.com/" target="_blank"><img src="files/projects/thehobbit.jpg"></a>
  277. <a href="http://asmallgame.com/kiddisco/" target="_blank"><img src="files/projects/kiddisco.jpg"></a>
  278. <a href="http://gravitymovie.warnerbros.com/" target="_blank"><img src="files/projects/gravity.jpg"></a>
  279. <a href="https://www.justareflektor.com/" target="_blank"><img src="files/projects/reflektor.jpg"></a>
  280. <a href="http://clara.io/" target="_blank"><img src="files/projects/clara.png"></a>
  281. <a href="http://hellorun.helloenjoy.com" target="_blank"><img src="files/projects/hellorun.jpg"></a>
  282. <a href="http://acko.net/" target="_blank"><img src="files/projects/acko.jpg"></a>
  283. <a href="http://advertising.apple.com/" target="_blank"><img src="files/projects/iad.png"></a>
  284. <a href="http://cubeslam.com/" target="_blank"><img src="files/projects/cubeslam.jpg"></a>
  285. <a href="http://hyperlapse.tllabs.io/" target="_blank"><img src="files/projects/hyperlapse.jpg"></a>
  286. <a href="http://chrome.com/maze/" target="_blank"><img src="files/projects/wwmaze.jpg"></a>
  287. <a href="http://antivj.com/paleodictyon_app/" target="_blank"><img src="files/projects/paleodictyon.jpg"></a>
  288. <a href="http://www.findyourwaytooz.com/" target="_blank"><img src="files/projects/findyourwaytooz.jpg"></a>
  289. <a href="http://voxeljs.com/" target="_blank"><img src="files/projects/voxeljs.jpg"></a>
  290. <a href="http://christmasexperiments.com/2012/23/" target="_blank"><img src="files/projects/neverseenthesky.jpg"></a>
  291. <a href="http://www.google.com/zeitgeist/2012/#explore" target="_blank"><img src="files/projects/zeitgeist2012.jpg"></a>
  292. <a href="http://lab.sehsucht.de/" target="_blank"><img src="files/projects/zoetrope.jpg"></a>
  293. <a href="http://www.pillandpillow.com/mvsw/site/" target="_blank"><img src="files/projects/mvsw.jpg"></a>
  294. <a href="http://thecarpandtheseagull.thecreatorsproject.com/" target="_blank"><img src="files/projects/thecarpandtheseagull.jpg"></a>
  295. <a href="http://workshop.chromeexperiments.com/stars/" target="_blank"><img src="files/projects/100000stars.jpg"></a>
  296. <a href="http://theywilleatyou.com/" target="_blank"><img src="files/projects/theywilleatyou.jpg"></a>
  297. <a href="http://blast.hellohikimori.com/" target="_blank"><img src="files/projects/blast.jpg"></a>
  298. <a href="http://hexgl.bkcore.com/" target="_blank"><img src="files/projects/hexgl.jpg"></a>
  299. <a href="http://workshop.chromeexperiments.com/projects/armsglobe/" target="_blank"><img src="files/projects/armsglobe.jpg"></a>
  300. <a href="http://carvisualizer.plus360degrees.com/threejs/" target="_blank"><img src="files/projects/carvisualizer.jpg"></a>
  301. <a href="http://www.chromeweblab.com/" target="_blank"><img src="files/projects/chromeweblab.jpg"></a>
  302. <a href="http://lightgraffiti.littlesun.com/" target="_blank"><img src="files/projects/lightgraffiti.jpg"></a>
  303. <a href="http://www.pajamaclubmusic.com/3d/" target="_blank"><img src="files/projects/tntfortwo.jpg"></a>
  304. <a href="http://www.chaostoperfection.com/" target="_blank"><img src="files/projects/chaostoperfection.jpg"></a>
  305. <a href="http://www.sketchpatch.net/labs/livecodelabIntro.html" target="_blank"><img src="files/projects/livecodelab.jpg"></a>
  306. <a href="http://collinhover.github.com/kaiopua/" target="_blank"><img src="files/projects/kaiopua.jpg"></a>
  307. <a href="http://chandlerprall.github.com/Physijs/" target="_blank"><img src="files/projects/physijs.jpg"></a>
  308. <a href="http://www.playmapscube.com/" target="_blank"><img src="files/projects/googlecube.jpg"></a>
  309. <a href="http://triggerrally.com/" target="_blank"><img src="files/projects/triggerrally.jpg"></a>
  310. <!-- <a href="http://yagiz.me/zombiesvscow/" target="_blank"><img src="files/projects/zombiesvscow.jpg"></a> -->
  311. <a href="http://blackjk3.github.com/threefab/" target="_blank"><img src="files/projects/threefab.jpg"></a>
  312. <a href="http://dl.dropbox.com/u/6213850/WebGL/nyanCat/nyan.html" target="_blank"><img src="files/projects/nyancat.jpg"></a>
  313. <a href="http://idflood.github.io/ThreeNodes.js/" target="_blank"><img src="files/projects/threenodes.jpg"></a>
  314. <!-- <a href="http://www.adidas.com/football/uk/pages/f50/" target="_blank"><img src="files/projects/f50.jpg"></a> -->
  315. <a href="http://lights.helloenjoy.com/" target="_blank"><img src="files/projects/lights.jpg"></a>
  316. <a href="http://inear.se/beanstalk/" target="_blank"><img src="files/projects/beanstalk.jpg"></a>
  317. <!-- <a href="http://superfad.com/missioncontrol/" target="_blank"><img src="files/projects/missioncontrol.jpg"></a> -->
  318. <a href="http://ro.me/" target="_blank"><img src="files/projects/rome.jpg"></a>
  319. <a href="http://data-arts.appspot.com/globe" target="_blank"><img src="files/projects/globe.jpg"></a>
  320. <a href="http://helloracer.com/webgl/" target="_blank"><img src="files/projects/helloracer.jpg"></a>
  321. </div>
  322. <script>
  323. // I wish I could do this with CSS
  324. var projects = document.getElementById( 'projects' );
  325. function resize() {
  326. var baseWidth = 200;
  327. var baseHeight = 150;
  328. var fullWidth = projects.clientWidth;
  329. var width = ( fullWidth / ( Math.ceil( fullWidth / baseWidth ) * baseWidth ) ) * baseWidth;
  330. var height = ( width / baseWidth ) * baseHeight;
  331. for ( var i = 0; i < projects.children.length; i ++ ) {
  332. var child = projects.children[ i ];
  333. child.style.width = width + 'px';
  334. child.style.height = height + 'px';
  335. }
  336. }
  337. window.addEventListener( 'resize', resize, false );
  338. resize();
  339. </script>
  340. </div>
  341. </body>
  342. </html>