-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
202 lines (176 loc) · 6.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html, body{
width: 100%;
height: 100%;
overflow-x: hidden;
padding: 2em;
background-color: #303030;
color: white;
text-align: center;
}
h3{
color: orange;
font-variant: small-caps;
}
.container{
display: block;
width:1200px;
text-align: left;
}
.container ul {
font-variant: small-caps;
list-style-type: none;
}
.container pre {
background-color: white;
color: #202020;
}
.container li{
padding-top: 2em;
padding-bottom: 2em;
}
a{
color: grey;
}
a:visited, a:hover{
color: orange;
}
</style>
</head>
<body>
<div class="container">
<h3>BUMP visuals</h3>
<div>a series of visual that will potentially be displayed on a big screen during the <a href="http://bump-festival.be/">Bump festival in Kortrijk on the 24th of june 2016</a></div>
<div>the following is my contribution to a gig performed by <a href="http://nocomputer.be/">No computer</a>. <br>
it's a series of 2D shaders that will potentially be displayed on a big screen during the <a href="http://bump-festival.be/">Bump festival in Kortrijk on the 24th of june 2016</a>.
<p>it is mostly hacked from the following shaders:<a href="https://www.shadertoy.com/view/MlXGDf">https://www.shadertoy.com/view/MlXGDf</a>, <a href="https://www.shadertoy.com/view/Xds3zN">https://www.shadertoy.com/view/Xds3zN</a> & <a href="http://thebookofshaders.com/">http://thebookofshaders.com/</a></p>
<div>the basic setup is a <a href="https://processing.org/download/?processing">Processing 3</a> sketch with the following code:</div>
<pre>
PShader shader;
String name = "shader_name";
void setup() {
size( 1200, 500, P3D );
noStroke();
shader = loadShader( name + ".glsl");
}
void draw() {
shader.set("u_resolution", float(width), float(height));
shader.set("u_time", millis() / 1000.0);
shader(shader);
rect(0,0,width,height);
}
void keyPressed(){
shader = loadShader( name + ".glsl");
saveFrame( name + ".png" );
}
</pre>
<p>pressing any key will reload the shader an take a snapshot.</p>
<p>click on the image link to watch a live version.</p>
<p>you can copy paste any of the following snippets (click editor to open the code) in the above Processing template</p>
<ul>
<li>
color blocks bright<br>
<a href="http://player.thebookofshaders.com/?log=160620065714">
<img src="blocks_color_bright/blocks_bright.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620065457">editor</a>
<br>
</li>
<li>
color blocks dark<br>
<a href="http://player.thebookofshaders.com/?log=160620070406">
<img src="blocks_color_dark/blocks_dark.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620070339">editor</a>
<br>
</li>
<li>
cone<br>
<a href="http://player.thebookofshaders.com/?log=160620090418">
<img src="noisy_cone/noisy_cone.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620090347">editor</a>
<br>
</li>
<li>
black box<br>
<a href="http://player.thebookofshaders.com/?log=160620080832">
<img src="blackbox/black_box.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620080758">editor</a>
<br>
</li>
<li>
animated Chladni pattern<br>
<a href="http://player.thebookofshaders.com/?log=160620071347">
<img src="chladni/chladni.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620071328">editor</a>
<br>
</li>
<li>
gooey<br>
<a href="http://player.thebookofshaders.com/?log=160620074649">
<img src="gooey/gooey.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620074633">editor</a>
<br>
</li>
<li>
Klimt<br>
<a href="http://player.thebookofshaders.com/?log=160620082246">
<img src="klimt/klimt.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620082232">editor</a>
<br>
</li>
<li>
monolith<br>
<a href="http://player.thebookofshaders.com/?log=160620092119">
<img src="monolith/monolith.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620092104">editor</a>
<br>
</li>
<li>
panopticon<br>
<a href="http://player.thebookofshaders.com/?log=160620072548">
<img src="panopitcon/panopitcon.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620072511">editor</a>
<br>
</li>
<li>
polygons<br>
<a href="http://player.thebookofshaders.com/?log=160620095646">
<img src="polygons/polygons.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620095628">editor</a>
<br>
</li>
<li>
vorogrid<br>
<a href="http://player.thebookofshaders.com/?log=160620100408">
<img src="vorogrid/vorogrid.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620100323">editor</a>
<br>
</li>
<li>
waves<br>
<a href="http://player.thebookofshaders.com/?log=160620093524">
<img src="waves/waves.png"><br>
</a>
<a href="http://thebookofshaders.com/edit.php?log=160620093508">editor</a>
<br>
</li>
</ul>
</div>
</div>
</body>
</html>