gl.slab shader that is simlar to jit.glue

Mar 8, 2006 at 6:09pm

gl.slab shader that is simlar to jit.glue

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

thanks

#24780
Mar 8, 2006 at 6:20pm

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.

#72211
Mar 8, 2006 at 8:15pm

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

#72212
Mar 14, 2006 at 9:16pm

Using textures works a treat.
Many thanks

Andy

#72213

You must be logged in to reply to this topic.