Forums > Jitter

Mixing jit.gl.texture (in a bpatcher) with slab ?

May 21, 2012 | 6:23 pm

Hi

I’ve some trouble about a little thing :

I’ve a bpatcher "source" with cam, qt.movie to jit.gl.texture

In another part of my patch, i’ve a umenu with select and prepend texture name to a jit.gl.slab

I want to mix another texture with the first one.

But i’ve problem to tell jit.gl.slab uses both texture

– Pasted Max Patch, click to expand. –

Any help?


May 22, 2012 | 6:06 pm

the patch you posted does not really reflect what you are describing in your patch, so it’s difficult to offer much advice. can you post a simplified version of the patch that shows your problem?


May 22, 2012 | 7:33 pm

Hi,
the patch i post is near what i expect to perform.

I just want to mix to texture together with a slab.

My problem is that the slab seem to accept only one texture at time.
I expect to adress one texture to input 1 and another one to input 2.

Is it more clear ?


May 22, 2012 | 9:37 pm

not really.

yes, jit.gl.slab can only accept one texture of a time. the second input is used if the internal shader performs an operation on two textures.

if you want to select different texture inputs for jit.gl.slab, something like the jit.gl.pix in the patch that you posted will do the trick nicely.


May 23, 2012 | 10:27 am

OK.
"the second input is used if the internal shader performs an operation on two textures."
I’am actually used the co.normal.jxs shader inside my slab.
So there is to input.
So is it possible to have to texture, one in each input ?


May 23, 2012 | 5:20 pm

yes, for shaders that reference two textures, such as the co.normal shader.


May 25, 2012 | 8:18 am

Ok,
i cant find a way to this working.

It is not possible to process like that :

Umenu (with texture name) > Prepend texture > Slab input 1
Umenu (with texture name) > Prepend texture > Slab input 2

In this case, only one texture is applied at time.
?


May 25, 2012 | 6:16 pm

can you post a simplified version of the patch that shows your problem?


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