jit.gl.slab routing to jit.gl.videoplane problem

Feb 16, 2011 at 7:00pm

jit.gl.slab routing to jit.gl.videoplane problem

I am trying to use router to traffic gl data around but the gl objects seem to pass updates even when not receiving bangs… I think the below patch explains better.

Any ideas on what I am doing wrong? Why is the jit.gl.slab still sending to the jit.gl.videoplane when they arent connected? How is the videoplane binded to the slab when itself isnt being updated?

confused, r

– Pasted Max Patch, click to expand. –
#55002
Feb 16, 2011 at 7:04pm

this kinda works but the shader gets screwed.

so confused….

– Pasted Max Patch, click to expand. –
#198065
Feb 16, 2011 at 8:26pm

don’t ask me why, but it seems to work if you add @colormode uyvy to your videoplane…

#198066
Feb 16, 2011 at 9:06pm

gl objects will remember the last texture applied, until you tell them otherwise. so generally, you only need to bang a slab object once to make it send its texture to a gl object.
if you want to disconnect the gl object from the last texture you sent, you can set the @texture attribute to nothing, by sending the message texture with no arguments.
depending on the circumstances, you may have to set the color attribute to 0 0 0 0, if you want it to go black, and then back to 1 1 1 1 when a new texture gets sent.
in this case, might be easiest to just send an all black matrix as the new texture.

this patch should explain better:

– Pasted Max Patch, click to expand. –
#198067

You must be logged in to reply to this topic.