Mixing jit.gl.texture (in a bpatcher) with slab ?
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
----------begin_max5_patcher---------- 863.3ocyX1sbhCBEG+Z8ofIydoqSf78dUuauYeC1oiClfQ5j.YIXqsc569xG It1tZMwFidgLlSN.+4GGfC40oSbVx2Rpc.+.7avjIuNcxDiIsgIMOOwoDuMs .WabygQdhu7AmY1WIIakFyOPkyehxx3OA1tBmQZcfuQVPjxmqH1NwYIlk6LC 33.tuwkUbljgKMN37qMozLL3mBL6eMBaSIkoZFiBfMFoYlJnDy2gw64osGMt hZrVgkoqor7EBRpzpCXbzb2Y.eWcYBTWBim69NQUSewHJnxIs02lNUWL6qSp 7h44BZV8ZbEAjWf.2Y+ac0ZhfndJEWP.tyC186tBZ9ZodLPX3kpWBUdUx4x0 KTUMS8B.7nLW0kKJwRAc6fS9ndS9fDWKsSLS.gIWW1CaYe5lkGl7BtDqZgme A34CBC.HW2CLcbMfeX+C6ciu7veUAWIHmcpPnFkRhnAUZWbOFrTUEK0bxrMw NQo3.sT0j5pNusxp9r0HbmwAfpAsdtjKxHhTdAWzPOMsTBHHNNBY92Lsscxr ySCnf8lEBbuDSBkj5ZbN4+VBX1cF7siGud1QnnCvRuCGgBOEZPHCTB7MnIbT 1bPBVBHBb8oO6x50.tRNo2Kj87LGbYoj2HtE5eTqkEbPnKX8KeNnFv3n3dGF Y4ikLQQWB9H444EjyZWNJS5r+lFeZrQzYN1QHSoaaI39A+bzGoYDdUAlQrI8 AtSplVqWwEkJ4TSj.zU3Xwfy8TQOWy9wHXz3mRREcaKCyIrSjCslc4EKzswF A4KwuCrXy+b4GJxtcs+UHcZFOaWPnd3aypNEWoIzIxN6CnbfCGOxQfdmLCYj Gzt1M3l.mvaCbh5MNaiNuh3TPTiPw03lwmYhEPjgYIwWBVgkRwFZGR.U6noF 6tBlyfQlvderZ6cmBrmR3mbavlJdMUR4rgCMP2dyl1K02vFudE2X7wofx93W hxzQZ6uGX07MhzVhzJXv+5pLRs5p4XCT1yon24zZZVFgseZZYzZclaFNb3ot tpmvtHmvQSNnNHG+QSMdcTMvQQM9cPMAiFah5fZhGM0D2A0jLZpIoKKpFU0. uYTCLnKvwa7zi2EbKG6wE3ppGIh5llznD0IoOX+TcgylZ+pg1GMsnif7Hs0e uo5V6so+EDwU0+F -----------end_max5_patcher-----------
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?
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 ?
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.
"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 ?
yes, for shaders that reference two textures, such as the co.normal shader.
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.
can you post a simplified version of the patch that shows your problem?