Forums > Jitter

gl.slab shader that is simlar to jit.glue

March 8, 2006 | 6:09 pm

does anyone know of a gl shader that can act like jit.glue in 2d with 4 char jit matricies as inputs?

thanks


March 8, 2006 | 6:20 pm

Hi Andy,
This might be a little tricky to implement, but it’s definitely
possible. The GLSL is actually pretty simple to learn once you look
into it. I recommend picking up a copy of the orange book. You will
basically need to be scaling and offsetting texcoord values, as well as
providing some sort of logic that defines which texture input is drawn
at each pixel. The tricky part will be explicitly setting the size of
each input texture and then the size of the output texture.

Good luck!

Andrew B.


March 8, 2006 | 8:15 pm

Hello!

I have done that with several textures to several jit.gl.videoplane,
all resized to a portion of the gl world. It works perfectly fine!

The fun thing is that you can move them around after that!

Good luck!

pa


March 14, 2006 | 9:16 pm

Using textures works a treat.
Many thanks

Andy


Viewing 4 posts - 1 through 4 (of 4 total)