composite shaders

Nov 25, 2006 at 12:11pm

composite shaders

Hello,

I’m a bit confused about how the composite shaders are supposed to
work. I assumed that I would be able to use them for various types of
cross fades, which works to some degree, but I noticed that source A
(i.e. left matrix) never disappears even with param amount larger
than 1. Any help is greatly appreciated.

Georg

#28881
Nov 25, 2006 at 2:06pm

Hello,

you can see how they work in photoshop here:

http://www.northlite.net/ps/blend.htm

or mathematically:

http://www.simpelfilter.de/en/grundlagen/mixmods.html

best,
nesa

#89070
Nov 25, 2006 at 2:59pm

Hi,

Thank you for the references.
My intention is to replace the PPC-Auvi objects in MaxMSP 4.6 on
Intel machines. Kurt Ralske has implemented 40 blend modes (most of
them photoshop blending modes). What was nice about them is that with
mix amount 0. you’d see source one, and mix amount 100. source two,
allowing for interesting cross fades. Jit.slab isn’t giving me this
option obviously.

Georg

On Nov 25, 2006, at 3:06 PM, nesa wrote:

> Hello,
>
> you can see how they work in photoshop here:
>
> http://www.northlite.net/ps/blend.htm
>
> or mathematically:
>
> http://www.simpelfilter.de/en/grundlagen/mixmods.html
>
> best,
> nesa
>

#89071
Nov 25, 2006 at 6:26pm

Ah, ok, he probably implemented his own blending modes resembling those in
photoshop. The basic ones in jitter are more like the ones in photoshop, but
you could use them to build your own complex blends(for. example, mix result
of ‘screen’ with results of ‘normal’), something like this:

#P window setfont Geneva 9.;
#P window linecount 1;
#N vpatcher 15 55 206 200;
#P window setfont Geneva 9.;
#P newex 50 50 48 9961481 t b erase;
#P newex 50 75 70 9961481 jit.gl.render sl;
#P inlet 50 30 15 0;
#P connect 0 0 2 0;
#P connect 2 0 1 0;
#P connect 2 1 1 0;
#P pop;
#P newobj 67 85 46 9961481 p render;
#N vpatcher 25 70 625 470;
#P window setfont Geneva 9.;
#P newex 225 126 28 9961481 t f 1;
#P newex 158 126 28 9961481 t f 0;
#P newex 225 166 27 9961481 – 1.;
#P newex 158 55 27 9961481 * 2.;
#P newex 158 84 77 9961481 split 0. 1.;
#P newex 135 211 101 9961481 pak param amount 0.;
#P newex 68 166 101 9961481 pak param amount 0.;
#P inlet 158 30 15 0;
#P outlet 135 233 15 0;
#P outlet 68 188 15 0;
#P connect 3 0 0 0;
#P connect 4 0 1 0;
#P connect 2 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 8 0;
#P connect 8 0 3 2;
#P connect 9 1 3 2;
#P connect 5 1 9 0;
#P connect 9 0 7 0;
#P connect 8 1 4 2;
#P connect 7 0 4 2;
#P pop;
#P newobj 351 148 46 9961481 p maping;
#P flonum 351 116 35 9 0. 1. 3 152 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 56 301 85 9961481 jit.gl.videoplane sl;
#P user jit.pwindow 57 324 322 242 0 1 0 0 1 0;
#X name sl;
#P message 263 150 28 9961481 read;
#P newex 238 181 100 9961481 jit.qt.movie 320 240;
#P message 195 150 28 9961481 read;
#P flonum 79 35 35 9 0 0 0 152 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 56 36 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 56 57 50 9109513 qmetro 5;
#P window setfont Geneva 9.;
#P newex 56 181 100 9961481 jit.qt.movie 320 240;
#P newex 56 279 230 9961481 jit.gl.slab sl @file co.normal.jxs @param amount
0.;
#P newex 56 233 230 9961481 jit.gl.slab sl @file co.screen.jxs @param amount
0.;
#P comment 387 117 100 9961481 mix amount;
#P connect 12 0 13 0;
#P connect 9 0 8 0;
#P connect 7 0 3 0;
#P connect 6 0 4 1;
#P connect 5 0 4 0;
#P connect 3 0 1 0;
#P fasten 13 0 1 0 356 227 61 227;
#P lcolor 1;
#P connect 1 0 2 0;
#P connect 2 0 11 0;
#P fasten 13 1 2 0 392 272 61 272;
#P lcolor 1;
#P connect 8 0 2 1;
#P connect 8 0 1 1;
#P fasten 4 0 8 0 61 107 243 107;
#P connect 4 0 14 0;
#P connect 4 0 3 0;
#P window clipboard copycount 15;

#89072
Nov 25, 2006 at 9:09pm

Hi,

Thanks for the example. I was very impressed to realize that adding
another slab doesn’t noticeably bog down my machine, even with large
matrices.

Georg

On Nov 25, 2006, at 7:26 PM, nesa wrote:

> #P window setfont Geneva 9.;
> #P window linecount 1;
> #N vpatcher 15 55 206 200;
> #P window setfont Geneva 9.;
> #P newex 50 50 48 9961481 t b erase;
> #P newex 50 75 70 9961481 jit.gl.render sl;
> #P inlet 50 30 15 0;
> #P connect 0 0 2 0;
> #P connect 2 0 1 0;
> #P connect 2 1 1 0;
> #P pop;
> #P newobj 67 85 46 9961481 p render;
> #N vpatcher 25 70 625 470;
> #P window setfont Geneva 9.;
> #P newex 225 126 28 9961481 t f 1;
> #P newex 158 126 28 9961481 t f 0;
> #P newex 225 166 27 9961481 – 1.;
> #P newex 158 55 27 9961481 * 2.;
> #P newex 158 84 77 9961481 split 0. 1.;
> #P newex 135 211 101 9961481 pak param amount 0.;
> #P newex 68 166 101 9961481 pak param amount 0.;
> #P inlet 158 30 15 0;
> #P outlet 135 233 15 0;
> #P outlet 68 188 15 0;
> #P connect 3 0 0 0;
> #P connect 4 0 1 0;
> #P connect 2 0 6 0;
> #P connect 6 0 5 0;
> #P connect 5 0 8 0;
> #P connect 8 0 3 2;
> #P connect 9 1 3 2;
> #P connect 5 1 9 0;
> #P connect 9 0 7 0;
> #P connect 8 1 4 2;
> #P connect 7 0 4 2;
> #P pop;
> #P newobj 351 148 46 9961481 p maping;
> #P flonum 351 116 35 9 0. 1. 3 152 0 0 0 221 221 221 222 222 222 0
> 0 0;
> #P newex 56 301 85 9961481 jit.gl.videoplane sl;
> #P user jit.pwindow 57 324 322 242 0 1 0 0 1 0;
> #X name sl;
> #P message 263 150 28 9961481 read;
> #P newex 238 181 100 9961481 jit.qt.movie 320 240;
> #P message 195 150 28 9961481 read;
> #P flonum 79 35 35 9 0 0 0 152 0 0 0 221 221 221 222 222 222 0 0 0;
> #P toggle 56 36 15 0;
> #P window setfont “Sans Serif” 9.;
> #P newex 56 57 50 9109513 qmetro 5;
> #P window setfont Geneva 9.;
> #P newex 56 181 100 9961481 jit.qt.movie 320 240;
> #P newex 56 279 230 9961481 jit.gl.slab sl @file co.normal.jxs
> @param amount 0.;
> #P newex 56 233 230 9961481 jit.gl.slab sl @file co.screen.jxs
> @param amount 0.;
> #P comment 387 117 100 9961481 mix amount;
> #P connect 12 0 13 0;
> #P connect 9 0 8 0;
> #P connect 7 0 3 0;
> #P connect 6 0 4 1;
> #P connect 5 0 4 0;
> #P connect 3 0 1 0;
> #P fasten 13 0 1 0 356 227 61 227;
> #P lcolor 1;
> #P connect 1 0 2 0;
> #P connect 2 0 11 0;
> #P fasten 13 1 2 0 392 272 61 272;
> #P lcolor 1;
> #P connect 8 0 2 1;
> #P connect 8 0 1 1;
> #P fasten 4 0 8 0 61 107 243 107;
> #P connect 4 0 14 0;
> #P connect 4 0 3 0;
> #P window clipboard copycount 15;

#89073

You must be logged in to reply to this topic.