how to make "jit.op &&" in jit.gen? (non logical &&)

michel8's icon

Hi

For adjust near and far limits with Kinect, I have a working solution with jit.op.
But now I try to make the same in jit.gen! (or jit.pix would also be nice).

How to make "jit.op &&" in GEN? It seems that the "jit.op &&" is also able to operate as non logical. Because && in jit.op work not same as in jit.gen.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks for help

michel8's icon

Strange, now it works with "&&", yesterday not. Murphy's law! Gen is 2.5 times faster :)

Max Patch
Copy patch and select New From Clipboard in Max.

But anyway, I didn't understand how can video data pass through an boolean && operation?

Wesley Smith's icon

Looks to be working to me. When you multiply the video by the output of the [and], you're using it to pass the video. Isn't this what you wanted?

michel8's icon

Hi Wesley
Right, every thing works fine, as I would like to.
But I didn't understand how can video data pass through an boolean && operation like it work fine in my patch? :)