Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-09 Thread Claude Heiland-Allen
gt; pixel-sized white squares to the buffer, I can use this as my mask, no? >> >>>>>> Gesendet: Samstag, 08. April 2017 um 10:02 Uhr >>>>>> Von: "Roman Haefeli" >>>>>> An: pd-list >>>>>> Betreff:

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-09 Thread cyrille henry
meworks, but I have never done it in GEM (honestly I haven't used GEM for a long time now). I guess you can use two [gemframebuffer] objects and switch your connections every other frame... Gesendet: Samstag, 08. April 2017 um 10:32 Uhr Von: "Christof Ressi" An: "Roman Ha

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-09 Thread Christof Ressi
pd-list@lists.iem.at > Betreff: Re: [PD] [Gem] Modifying single pixel of pix image > > Thank you, Christof and Cyrille, for your insights. I think I > understood the concept. But do I need even framebuffer ping-ponging > when I only _add_ to the framebuffer? Let's say I add more an

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-09 Thread Roman Haefeli
de. > > > > Framebuffer ping ponging is easy in openFrameworks, but I have > > never done it in GEM (honestly I haven't used GEM for a long time > > now). I guess you can use two [gemframebuffer] objects and switch > > your connections every other frame... >

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-08 Thread cyrille henry
ections every other frame... Gesendet: Samstag, 08. April 2017 um 10:32 Uhr Von: "Christof Ressi" An: "Roman Haefeli" Cc: pd-list Betreff: Re: [PD] [Gem] Modifying single pixel of pix image That's funny, I just did exactly this recently, but in openFrameworks. If yo

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-08 Thread Christof Ressi
in GL. > > Hope that helps! > > > > Gesendet: Samstag, 08. April 2017 um 10:02 Uhr > > Von: "Roman Haefeli" > > An: pd-list > > Betreff: Re: [PD] [Gem] Modifying single pixel of pix image > > > > On Sam, 2017-04-08 at 08:29 +0200, Chris

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-08 Thread Christof Ressi
be much slower. You can also mix the two approaches: create the mask on the CPU and do actually masking in GL. Hope that helps! > Gesendet: Samstag, 08. April 2017 um 10:02 Uhr > Von: "Roman Haefeli" > An: pd-list > Betreff: Re: [PD] [Gem] Modifying single pixel of pix

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-08 Thread Roman Haefeli
> > An: pd-list@lists.iem.at > > Betreff: [PD] [Gem] Modifying single pixel of pix image > > > > Hi > > > > Is it possible to manipulate a single pixel of a an image loaded by > > [pix_image]? Specifically, I'd like to change the alpha value of >

Re: [PD] [Gem] Modifying single pixel of pix image

2017-04-07 Thread Christof Ressi
If it can be on the GPU, use a fragment shader! Do you work with a formula or do you set the alpha values by hand? > Gesendet: Freitag, 07. April 2017 um 23:39 Uhr > Von: "Roman Haefeli" > An: pd-list@lists.iem.at > Betreff: [PD] [Gem] Modifying single pixel of pix i

[PD] [Gem] Modifying single pixel of pix image

2017-04-07 Thread Roman Haefeli
Hi Is it possible to manipulate a single pixel of a an image loaded by [pix_image]? Specifically, I'd like to change the alpha value of certain pixels. It doesn't matter to me whether the manipulation happens in the pix realm or the GL realm. Currently I can think only of cumbersome ways like usin