Saturday, April 2, 2011

WebGL fun!!!

Quick note regarding WebGL stuff:

In converting a fragment shader included inline with the HTML source of a page I kept hitting obscure compiler errors. Turns out that it was a missing semi-colon issue... FFFFFFFUUUUUUUUUUUU

Original source:
<script id="fragment" type="x-shader/x-fragment">
#ifdef GL_ES
precision highp float;
#endif
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
void main(void) {
gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));
}
</script>

first attempt:
#ifdef GL_ES\nprecision highp float\n#endif\n varying (... fails)

works!!!
#ifdef GL_ES\nprecision highp float\n#endif\n; varying (SUCCESS!)

Tuesday, March 29, 2011

Blender, JSON, and WebGL

I'm finally ready to accept it. I've had a love affair with Blender. It's not the most popular 3D tool and it certainly isn't the most widely used, but it's always held a special place in my heart. Oh, and I'm not an artist by any means, so I'm sure that has a bit to do with it.

Anyway, got into some JSON today in the pursuit of web related technologies compatible with WebGL. There are a whole lot of excellent utilities out there but I'm evaluating this one at the moment:


The fact that it plugs in to Blender sold me as I'm some what familiar with how Blender works. Nothing to report yet, but if there are better tools, utilities, or even model formats, I'm always willing to hear it :)

Tuesday, February 22, 2011

javascript... help?

object=(function(){})() <-self-calling/singleton
object=(function(){}) <-must be instantiated

Why?
What is this?
How did I accidentally stumble upon this and why is it so useful?

I know that there's something better, but for the time being I'm just hacking away at javascript with my ax o plenty to get a feel for debugging, or at least that's what I tell myself.

Insight welcome.

Wednesday, February 9, 2011

1st Amendment


erk: C0 CE FE 84 C2 27 F7 5B D0 7A 7E B8 46 50 9F 93 B2 38 E7 70 DA CB 9F F4 A3 88 F8 12 48 2B E2 1B
riv: 47 EE 74 54 E4 77 4C C9 B8 96 0C 7B 59 F4 C1 4D
pub: C2 D4 AA F3 19 35 50 19 AF 99 D4 4E 2B 58 CA 29 25 2C 89 12 3D 11 D6 21 8F 40 B1 38 CA B2 9B 71 01 F3 AE B7 2A 97 50 19
R: 80 6E 07 8F A1 52 97 90 CE 1A AE 02 BA DD 6F AA A6 AF 74 17
n: E1 3A 7E BC 3A CC EB 1C B5 6C C8 60 FC AB DB 6A 04 8C 55 E1
K: BA 90 55 91 68 61 B9 77 ED CB ED 92 00 50 92 F6 6C 7A 3D 8D
Da: C5 B2 BF A1 A4 13 DD 16 F2 6D 31 C0 F2 ED 47 20 DC FB 06 70

~geohot

props to fail0verflow for the asymmetric half
no donate link, just use this info wisely
i do not condone piracy

if you want your next console to be secure, get in touch with me. any of you 3.
it'd be fun to be on the other side.

Wednesday, January 19, 2011

Long time no see...

WebGL is amazing. End of story.
I read on this guy's blog that you can place canvas elements inside of Blogger posts.
Unfortunately my current projects are too big for that T_T