Forums > Jitter

4 channel jit.gl.slab mixer/ multi-compositor

May 14, 2009 | 5:38 pm

I am trying to build a 4 channel jit.gl.slab mixer which will allow me to composite 4 blend modes across 4 channels of video. That is, composite from one blend mode to any other blend mode, or any combination thereof. And I need to fade each channel discretely (not x-fade) from an incoming float.

I have had some success daisy chaining slabs, and mixing 4 -> 2 -> 1 to combine clip to clip blend modes, but can not figure out how to get any-to-any blend mode compositing.

Is there a jitter shader that can do this?


May 14, 2009 | 5:47 pm

hi,

take a look to this topic.

http://www.cycling74.com/forums/index.php?t=msg&goto=141648&rid=0&srch=mixing+4+video#msg_141648

thanks

Luis Marques


May 14, 2009 | 6:29 pm

Luis,

That is close, and I have been working with jit.expr per below, but I need the video processing to happen in shaders on the GPU, not via the CPU in jit.qt.movie

I need a shader to do this efficiently.

Best,

Craig


May 14, 2009 | 6:34 pm

you will just have to come up with some kind of logical mixing scheme to handle multiple inputs, multiple intermediary stages and multiple outputs (with scaling at the output of each stage if desired). there’s no magic way to doing something like that. you could possibly write one shader to handle several possibilities, but doesn’t seem like it would be worth the effort.

here’s a basic prototype. make sure you check out andrew b’s excellent video synth tutorials:
http://www.cycling74.com/story/2009/4/6/172453/3446

– Pasted Max Patch, click to expand. –

May 14, 2009 | 7:07 pm

robtherich,

excellent suggestions, and yes I have worked extensively with mr. benson’s tutorials.

i would like to see your patch, but unfortunately, it is crashing Max 5. can you send as an attachment, repost the file, or suggest how to instantiate it?

craig


May 15, 2009 | 6:53 pm

opens fine over here.
here’s the attachment…


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