Archive for February, 2011

23
Feb
11

Beautiful Mechanical Waveforms

Video quality isn’t great, but fascinating, nonetheless.

Nothing to do with me, I might add. Just spotted it on YouTube.

11
Feb
11

Flash, But Nice

This Perlin Noise Vector Flow-Field visualisation is nice.

05
Feb
11

RGB Feedback

Feedback with slightly different values for RGB channels.

05
Feb
11

Interference Patterns

2D 2 and 3-point light-interference patterns, converted from WebGL code at:

http://www.ibiblio.org/e-notes/webgl/webgl.htm

02
Feb
11

GLSL Crosshatch

Straight port of

http://learningwebgl.com/blog/?p=2858

Fragment Shader:

/*
	Straight port of code from

http://learningwebgl.com/blog/?p=2858

*/

uniform sampler2D Texture;

void main()
{
	float lum = length(texture2D(Texture, gl_TexCoord[0].xy).rgb);
	
	gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
	
	if (lum < 1.00) {
		if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0) {
			gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
		}
	}
	
	if (lum < 0.75) {
		if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0) {
			gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
		}
	}
	
	if (lum < 0.50) {
		if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0) {
			gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
		}
	}
	
	if (lum < 0.3) {
		if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0) {
			gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
		}
	}
}




Twitter

February 2011
M T W T F S S
« Jan   Mar »
 123456
78910111213
14151617181920
21222324252627
28  

Links

Blog Stats

  • 406,567 hits

Follow

Get every new post delivered to your Inbox.

Join 37 other followers