Thank you Chris.
I got a blur working with pix_convolve. Now I need to be able to pass the image/texture into that process multiple times.
I come from a Java and web world where we have /for/ and /while /loops, but I can't seem to find an equivalent in pd other than until, which doesn't seem to fit my needs. I would love to be able to pass a parameter that would tell the patch how many times it should process the texture with pix_convolve.
Like always, any help is very much appreciated.
Best,
Oussama Mubarak +33.(0)6.83.65.76.90 http://semiaddict.com
Le 18/06/2012 19:11, chris clepper a écrit :
pix_motionblur requires a source with multiple frames - a movie file - to create a blur. To blur a still image try pix_convolve. The example file should have a blur kernel.
On Mon, Jun 18, 2012 at 12:04 PM, Oussama Mubarak <news@semiaddict.com mailto:news@semiaddict.com> wrote:
Hi, I'm trying to create a blur effect on an image (or texture). I'm aware of the object [pix_motionblur], but can't get it to work. Here is my test patch: --------------------------------------------- max v2; #N vpatcher 645 83 1567 737; #P newex 21 -85 50 12 gemhead; #P button 83 -87 25 0; #N vpatcher 0 0 450 300; #P inlet 85 49 22; #P outlet 85 237 22; #P newex 85 145 50 12 openpanel; #P message 85 179 100 12 open \$1; #P message 259 213 100 12 auto 1; #P newex 268 179 50 12 loadbang; #P connect 5 0 3 0; #P connect 3 0 2 0; #P connect 2 0 4 0; #P connect 1 0 4 0; #P connect 0 0 1 0; #P pop; #P newobj 83 -58 50 12 p open; #P newex 21 -15 50 12 pix_image; #P newex 21 172 50 12 pix_texture; #P newex 21 254 100 12 <tel:21%20254%20100%2012> square 4; #P newex 129 125 100 12 rectangle 0; #N vpatcher 0 22 450 322; #P newex 132 158 50 12 gemwin; #P outlet 67 89 22; #P inlet 67 10 22; #P newex 67 41 100 12 route create; #P message 67 70 100 12 set destroy; #P message 142 68 100 12 set create; #P message 132 112 150 12 create \, 1; #P message 198 112 50 12 destroy; #P newex 282 112 100 12 r gemwin_msg; #P connect 6 0 5 0; #P connect 5 0 4 0; #P connect 5 0 2 0; #P connect 5 1 3 0; #P connect 5 1 1 0; #P connect 4 0 7 0; #P connect 3 0 7 0; #P connect 2 0 8 0; #P connect 1 0 8 0; #P connect 0 0 8 0; #P pop; #P newobj 262 -51 50 12 p gemwin; #P message 262 -70 50 12 destroy; #P flonum 114 48 60; #P newex 21 84 50 12 pix_motionblur; #P newex 114 65 100 12 / 100; #P connect 11 0 8 0; #P connect 10 0 9 0; #P connect 9 0 8 0; #P connect 8 0 1 0; #P connect 7 0 6 0; #P connect 5 0 7 0; #P connect 4 0 3 0; #P connect 3 0 4 0; #P connect 2 0 0 0; #P connect 1 0 7 0; #P connect 0 0 1 1; #P pop; --------------------------------------------- Any help is highly appreciated. Best, Oussama Mubarak +33.(0)6.83.65.76.90 <tel:%2B33.%280%296.83.65.76.90> http://semiaddict.com _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list