-
Notifications
You must be signed in to change notification settings - Fork 119
/
index.html
363 lines (349 loc) · 12 KB
/
index.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>tQuery API - extensions for three.js</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="www/vendor/bootstrap/docs/assets/css/bootstrap.css" rel="stylesheet">
<link href="www/vendor/bootstrap/docs/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">tQuery API</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="#getStarted">Get Started</a></li>
<li><a href="http://learningthreejs.com/blog/categories/tquery/">Tutorials</a></li>
<li><a href="#plugins">Plugins</a></li>
<li><a href="https://github.com/jeromeetienne/tquery" target='_blank'>Github</a></li>
<li><a href="docs" target='_blank'>API</a></li>
<li><a href="tests" target='_blank'>Tests</a></li>
<li><a href="bench/#runall" target='_blank'>Benchmarks</a></li>
<li><a href="http://jeromeetienne.github.com/tqueryboilerplate/" target='_blank'>Boilerplate</a></li>
<li><a href="www/live/editor/" target='_blank'>Playground</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1><span style="color:darkorange">tQuery API</span> : <span style="color:darkorange">t</span>hree.js
+
j<span style="color:darkorange">Query</span></h1>
<h2>Three.js Power + jQuery API Usability</h2>
<p>tQuery API is a thin library on top of three.js
It is an extension system for people to write plugins.
To help them share their code and build on top of each other.
It mimics jquery api, well know for its usuability.
tQuery API aims for "it should not be harder than playing with lego bricks."
</p>
<p>
<a href='https://github.com/downloads/jeromeetienne/tquery/tqueryboilerplate.zip' class="btn btn-large">
Download Boilerplate
</a>
<a target='_blank' href='www/live/editor/' class="btn btn-primary btn-large">
Try it Online
</a>
</p>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span4">
<h2>Power of Three.js</h2>
<p>
Three.js is actively developed by a team of skilled developers.
It got various rendering backends, importers for most 3D models format.
It efficiently abstracts webgl complexity
and provides a wide varieties of 3D objects.
It got numberous examples 120+.
</p>
</div>
<div class="span4">
<h2>jQuery API Usability</h2>
<p>
jQuery API is widely recognized for its usability. It is chained,
instinctive and short.
jQuery popularity is around 85% of market share.
It shows its API is appealing to most developers.
Its plugins ecosystem is varied and lively, and contains
impressive speciment.
</p>
</div>
<div class="span4">
<h2>Crazy simple to Learn</h2>
<p>
tQuery API aims to reproduce the success of jQuery plugin ecosytem
by mimicking its API.
Thus people who know jQuery will learn tQuery in no time.
Thru three.js, they will be be able to reach webgl technology
faster than before. Hopefully they will get exited and develop
extensions for three.js :)
</p>
</div>
</div>
<div class="page-header" id="plugins">
<h1>Featured Plugins</h1>
</div>
<div class="row span12">
<ul class="thumbnails">
<li class="span3">
<a href="plugins/minecraft/examples/" class="thumbnail">
<img src="www/images/plugins/minecraft.png" alt="">
<div class="caption">
<h5>Minecraft character</h5>
<p>
Easily play with your own minecraft character
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/car/examples/" class="thumbnail">
<img src="www/images/plugins/car.png" alt="">
<div class="caption">
<h5>car</h5>
<p>
display a car
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/md2character/examples/" class="thumbnail">
<img src="www/images/plugins/md2character.png" alt="">
<div class="caption">
<h5>md2character</h5>
<p>
Animation of MD2 characters from Quake II
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/glfx/examples/" class="thumbnail">
<img src="www/images/plugins/glfx.png" alt="">
<div class="caption">
<h5>glfx</h5>
<p>
Use glfx.js for post processing.
</p>
</div>
</a>
</li>
</ul>
</div>
<!-- Example row of columns -->
<div class="page-header" id="getStarted">
<h1>How to Get Started <small>Use the boilerplate to run your first tQuery project in less than 1min!</small></h1>
</div>
<div class="row">
<div class="span7">
<pre class="prettyprint linenums">
<!doctype html><title>Minimal tQuery Page</title>
<script src="tquery-bundle.js"></script>
<body><script>
var world = tQuery.createWorld().boilerplate().start();
var object = tQuery.createTorus().addTo(world);
</script></body>
</pre>
</div>
<div class="span5">
<iframe style="width: 100%; height: 120px" src="plugins/minimal/examples/" allowfullscreen webkitallowfullscreen mozallowfullscreen>
</iframe>
</div>
</div>
<div class="row">
<div class="span12">
<p>
You get index.html on the left, and the output on the right.
You can <a target='_blank' href='www/live/editor/'>try it online</a> with the playground.
To get that running on your local computer,
First you get boilerplate's files
<a href="https://github.com/downloads/jeromeetienne/tquery/tqueryboilerplate.zip">here</a>,
then you launch the http server to serve them. Here is a little shell script which does it all.
</p>
<pre class="prettyprint lang-bsh linenums">
curl -OL https://github.com/downloads/jeromeetienne/tquery/tqueryboilerplate.zip
unzip tqueryboilerplate.zip
cd tqueryboilerplate
make server
</pre>
<p>
Then open a browser on <a href="http://127.0.0.1:8000/" target='_blank'>http://127.0.0.1:8000/</a> to
see it running. Up to you to modify index.html until it fits your needs. See its code below... Quite short.
</p>
</div>
</div>
<!-- Example row of columns -->
<div class="page-header" id="plugins">
<h1>More Plugins</h1>
</div>
<div class="row span12">
<ul class="thumbnails">
<li class="span3">
<a href="plugins/minimal/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Minimal pages</h5>
<p>
It represents the minimal page. A simple one.
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/linkify/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Linkify</h5>
<p>
Make all 3D objects a link.
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/text/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Text</h5>
<p>
Insert a text in 3D.
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/csg/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>csg</h5>
<p>
Constructive Solid Geometry.
</p>
</div>
</a>
</li>
</ul>
</div>
<div class="row span12">
<ul class="thumbnails">
<li class="span3">
<a href="plugins/wobble/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Wobble</h5>
<p>
Funny animation
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/terraingenerator/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Terrain generation</h5>
<p>
terrain generation. phong for lighting. light map. perlin for terrain
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/planets/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Planets</h5>
<p>
Trivial generation moon or earth
</p>
</div>
</a>
</li>
<li class="span3">
<a href="plugins/domevent/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Dom Events</h5>
<p>
Simulate the dom events you know in html page, inside three.js
</p>
</div>
</a>
</li>
</ul>
</div>
<div class="row span12">
<ul class="thumbnails">
<li class="span3">
<a href="plugins/shape/examples/" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
<div class="caption">
<h5>Shape</h5>
<p>
Using Shape
</p>
</div>
</a>
</li>
</ul>
</div>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="www/vendor/bootstrap/docs/assets/js/jquery.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/google-code-prettify/prettify.js"></script>
<script>jQuery(function(){ prettyPrint(); });</script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-transition.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-alert.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-modal.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-dropdown.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-scrollspy.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-tab.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-tooltip.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-popover.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-button.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-collapse.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-carousel.js"></script>
<script src="www/vendor/bootstrap/docs/assets/js/bootstrap-typeahead.js"></script>
<!-- twitter bootstrap snippet - make all non internal link with target='_blank' -->
<script>
jQuery(function(){
jQuery('a').filter(function(index){
if( this.href.match(/\#/) ) return;
jQuery(this).attr('target', '_blank' );
});
});
</script>
<!-- github ribbon -->
<a href="https://github.com/jeromeetienne/tquery"><img style="position: fixed; top: 0; right: 0; border: 0;z-index: 9999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
</body>
</html>