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

May 21, 2012 at 6:23pm

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

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?

#63533
May 22, 2012 at 6:06pm

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?

#229027
May 22, 2012 at 7:33pm

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 ?

#229028
May 22, 2012 at 9:37pm

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.

#229029
May 23, 2012 at 10:27am

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 ?

#229030
May 23, 2012 at 5:20pm

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

#229031
May 25, 2012 at 8:18am

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.
?

#229032
May 25, 2012 at 6:16pm

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

#229033

You must be logged in to reply to this topic.