Le 19/06/2012 14:28, Oussama Mubarak a écrit :
Thank you Cyrille.
I will take a close look at the advanced examples.
As for the blur example, I can't find it in my installation. I have the latest PD-Extended (0.42.5) and the latest Gem (0.93.3) installed. I found a commit on github (https://raw.github.com/ch-nry/Gem/master/examples/10.glsl/14.blur.pd) that goes back to December 2011. Does that mean that the http://gem.iem.at/ installers are out of date ?
Gem last release (0.93.3) was made the 11.11.11 all work made since 11.11.11 will be available on next Gem release. No release date is planed yet.
you can grab this example (pd patch, abstraction and shader) on github, it will certainly work on you Gem version.
cheers c
Best,
Oussama Mubarak +33.(0)6.83.65.76.90 http://semiaddict.com
Le 19/06/2012 13:30, Cyrille Henry a écrit :
hello Oussama,
until and gemlist is what you need to create a Gem loop. You can learn more in Gem example folder/02.advanced/19 to 22
for more efficient blur, see example/10.glsl/14.blur
cheers Cyrille
Le 19/06/2012 13:05, Oussama Mubarak a écrit :
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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list