forked from tparisi/glam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
337 lines (282 loc) · 13.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GLAM - GL And Markup</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="css/project-pages.css">
</head>
<body>
<script src="//cdn.webglstats.com/stat.js" defer="defer" async="async"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-86951-15']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="panel" class="collapsed">
<h1>GLAM</h1>
<a id="expandButton" href="#">
<span></span>
<span></span>
<span></span>
</a>
<div id="content">
<a href="#about">ABOUT</a><br>
<a href="#news">NEWS</a><br>
<a href="#demos">DEMOS</a><br>
<a href="#examples">EXAMPLES</a><br>
<a href="./docs/" >DOCUMENTATION</a><br>
<a href="https://github.com/tparisi/glam" >GITHUB</a><br>
<a href="#contribute">CONTRIBUTE</a><br>
</div>
<p class="copyright">
Copyright © 2014
Third Eye
</p>
</div>
<div id="viewer">
<div id="about" class="feature">
<h1>Welcome</h1>
<div class="featuretext">
GLAM (GL And Markup) is a declarative language for 3D web content.<p>
<p>
GLAM combines the power of WebGL with a set of easy-to-use markup tags and style properties. With GLAM, 3D authoring is like any other web authoring. To make 3D, you create elements, set their attributes, add event listeners, and define styles. Just like DOM used to make! Content is easy to animate: keyframes and tweens can be defined in a compact set of markup tags, or as standard CSS3 animations or transitions.
<p>GLAM is also fully extensible: to add custom behavior, write JavaScript event handlers. If you want fancy shading written in GLSL, simply specify your vertex and fragment shaders as properties of the object's style. GLAM renders with WebGL, using Three.js, and adds behaviors, interaction and lots of easy-to-use features on top. But most importantly, GLAM defines a markup language and set of stylesheet extensions that make 3D programming a snap.
</div>
</div>
<hr>
<div id="news" class="feature">
<h1>News</h1>
<h2>Cardboard VR Comes to GLAM!</h2>
<div class="featuretext col-parent">
<span class="left-col">
<div class="byline"> February 3, 2015</div>
Thanks to the generous support of our <a href="https://www.kickstarter.com/projects/dodocase/diy-virtual-reality-open-source-future" target="_blank">DIYVR Kickstarter</a> backers, we have added Cardboard VR rendering and head tracking to GLAM. Just point your mobile browser at <a href="./examples/vr/bubblepopcb.html">
this link</a>, drop your phone in a Cardboard viewer, and go!<br>
To learn how to add Cardboard VR to your GLAM apps, check out the <a href="./docs/manual/tutorials/adding-cardboardvr.html">tutorial</a>.
</span>
<span class="heroimage right-col">
<a href="./examples/vr/bubblepopcb.html" >
<img src="./img/demo/bubblepopcb.png">
</a>
</span>
</div>
</div>
<hr>
<div class="feature">
<h1 id="demos">Demos</h1>
<div class="col-parent">
<span class="demo multi-col">
BUBBLE POP!
<div class="demoImg">
<a href="./demos/bubblepop.html" >
<img width=160 height=160 src="./img/demo/bubblepop.jpg">
</a>
</div>
</span>
<span class="demo multi-col">
GLAM CITY
<div class="demoImg">
<a href="./demos/glamcity.html" >
<img width=160 height=160 src="./img/demo/glamcity.jpg">
</a>
</div>
</span>
<div class="demo multi-col">
ANIMATED CUBE
<div class="demoImg">
<a href="./demos/glamcubeanimated.html" >
<img width="160" height="160" src="./img/demo/glamcubeanimated.jpg">
</a>
</div>
</div>
<div class="demo multi-col">
POSTPROCESSING
<div class="demoImg">
<a href="./demos/glamsceneanimatedeffects.html" >
<img src="./img/demo/glamsceneanimatedeffects.jpg">
</a>
</div>
</div>
</div>
</div>
<hr>
<div class="features">
<h1 id="examples">Examples</h1>
<div class="col-parent">
<div class="demo multi-col">
BASIC CUBE
<div class="demoImg">
<a href="./examples/basic/glamcube.html" >
<img width=160 height=160 src="./img/demo/glamcube.jpg"></a>
</div>
</div>
<div class="demo multi-col">
SCENE
<div class="demoImg">
<a href="./examples/hierarchy/glamscene.html" >
<img width=160 height=160 src="./img/demo/glamscene.jpg"></a>
</div>
</div>
<div class="demo multi-col">
ANIMATED CUBE
<div class="demoImg">
<a href="./examples/animation/glamcubeanimated.html" >
<img width="160" height="160" src="./img/demo/glamcubeanimated.jpg"></a>
</div>
</div>
<div class="demo multi-col">
ANIMATED SCENE
<div class="demoImg">
<a href="./examples/animation/glamsceneanimated.html" >
<img src="./img/demo/glamsceneanimated.jpg">
</a>
</div>
</div>
<div class="demo multi-col">
INTERACTION
<div class="demoImg">
<a href="./examples/interaction/glamcubeinteractive.html" >
<img width=160 height=160 src="./img/demo/glamcubeinteractive.jpg"></a>
</div>
</div>
<div class="demo multi-col">
MESHES
<div class="demoImg">
<a href="./examples/visuals/glammesh.html" >
<img width=160 height=160 src="./img/demo/glammesh.jpg"></a>
</div>
</div>
<div class="demo multi-col">
LINES
<div class="demoImg">
<a href="./examples/visuals/glamlines.html" >
<img width="160" height="160" src="./img/demo/glamlines.jpg"></a>
</div>
</div>
<div class="demo multi-col">
3D TEXT
<div class="demoImg">
<a href="./examples/visuals/glamtext.html" >
<img src="./img/demo/glamtext.jpg">
</a>
</div>
</div>
<div class="demo multi-col">
PARTICLE SYSTEMS
<div class="demoImg">
<a href="./examples/visuals/glamparticles.html" >
<img width=160 height=160 src="./img/demo/glamparticles.jpg"></a>
</div>
</div>
<div class="demo multi-col">
IMPORTS
<div class="demoImg">
<a href="./examples/imports/glamimport.html" >
<img width=160 height=160 src="./img/demo/glamcity.jpg"></a>
</div>
</div>
<div class="demo multi-col">
BUMP MAPPING
<div class="demoImg">
<a href="./examples/materials/glambumpmap.html" >
<img width="160" height="160" src="./img/demo/glambumpmap.jpg"></a>
</div>
</div>
<div class="demo multi-col">
NORMAL MAPPING
<div class="demoImg">
<a href="./examples/materials/glamearth.html" >
<img src="./img/demo/glamearth.jpg">
</a>
</div>
</div>
<div class="demo multi-col">
FRESNEL SHADER
<div class="demoImg">
<a href="./examples/shaders/glamshaderfresnel.html" >
<img width=160 height=160 src="./img/demo/glamshaderfresnel.jpg"></a>
</div>
</div>
<div class="demo multi-col">
SUN SHADER
<div class="demoImg">
<a href="./examples/shaders/glamsun.html" >
<img width=160 height=160 src="./img/demo/glamsun.jpg"></a>
</div>
</div>
<div class="demo multi-col">
SKYBOX
<div class="demoImg">
<a href="./examples/backgrounds/glamskybox.html" >
<img width="160" height="160" src="./img/demo/glamskybox.jpg"></a>
</div>
</div>
<div class="demo multi-col">
SKYSPHERE
<div class="demoImg">
<a href="./examples/backgrounds/glamskysphere.html" >
<img src="./img/demo/glamskysphere.jpg">
</a>
</div>
</div>
<div class="demo multi-col">
DOT SHADER EFFECT
<div class="demoImg">
<a href="./examples/effects/glamcubeeffects.html" >
<img width=160 height=160 src="./img/demo/glamcubeeffects.jpg"></a>
</div>
</div>
<div class="demo multi-col">
BLOOM EFFECT
<div class="demoImg">
<a href="./examples/effects/glamsceneanimatedeffects.html" >
<img width=160 height=160 src="./img/demo/glamsceneanimatedeffects.jpg"></a>
</div>
</div>
<div class="demo multi-col">
OCULUS - GLAM CITY
<div class="demoImg">
<a href="./examples/vr/glamcityvr.html" >
<img width="160" height="160" src="./img/demo/glamcityvr.jpg"></a>
</div>
</div>
<div class="demo multi-col">
OCULUS - SKYSPHERE
<div class="demoImg">
<a href="./examples/vr/glamskyspherevr.html" >
<img src="./img/demo/glamskyspherevr.jpg">
</a>
</div>
</div>
</div>
</div>
<hr>
<h1 id="contribute">Contribute</h1>
GLAM is young and we're just getting started. We could use your help!<p>
Take a look at the code in the <a href="https://github.com/tparisi/glam" >Github repo</a>, and if you'd like to help out, check out <a href="https://github.com/tparisi/glam/issues" >issues page</a>, fork the repo and let's get to work!
</div>
<script type="text/javascript">
//menu
var expandBtn = document.getElementById('expandButton');
var expandMenu = document.getElementById('content');
var toggleMenu = function(e){
e.preventDefault();
var display = expandMenu.style.display || 'none';
expandMenu.style.display = (display=='none') ? 'block' : 'none';
}
expandBtn.addEventListener("click",toggleMenu);
expandBtn.addEventListener("touchstart",toggleMenu);
expandMenu.addEventListener("click",function(){
if(window.innerWidth <= 875){
expandMenu.style.display = 'none';
}
});
</script>
</body>
</html>