Hi list,
Does anybody know of a Gem objets that let you change the gray or color value of a certain pixel in the Gem window? I mean, something like change de pixel x=310, y =200 to gray=0.5
thanks,
Diego.
On 2010-09-01 03:33, Diego Azar wrote:
Hi list,
Does anybody know of a Gem objets that let you change the gray or color value of a certain pixel in the Gem window? I mean, something like change de pixel x=310, y =200 to gray=0.5
[pix_rectangle] could be used for that, if you are sure that you really want to modify the pixes (a faster way would be to place some properly sized geo on top of the texture, but of course this might not be exactly what you need)
fgmkasdr IOhannes
Hi IOhannes,
Thanks for the quick response, I need to change some pixels gray values after an pix_data analisis. I might try to use a rectangle with a translateXYZ, or something like that.
Diego.
--- On Wed, 9/1/10, IOhannes m zmoelnig zmoelnig@iem.at wrote: From: IOhannes m zmoelnig zmoelnig@iem.at Subject: Re: [PD] change pixel color value... To: "Diego Azar" dazar_uy@yahoo.com Cc: "PD List" pd-list@iem.at Date: Wednesday, September 1, 2010, 8:22 AM
On 2010-09-01 03:33, Diego Azar wrote:
Hi list,
Does anybody know of a Gem objets that let you change the gray or color value of a certain pixel in the Gem window? I mean, something like change de pixel x=310, y =200 to gray=0.5
[pix_rectangle] could be used for that, if you are sure that you really want to modify the pixes (a faster way would be to place some properly sized geo on top of the texture, but of course this might not be exactly what you need)
fgmkasdr IOhannes
Another faster way is to use shaders. Start with the first example in 10.GLSL. ++
Jack
Le mercredi 01 septembre 2010 à 03:23 -0700, Diego Azar a écrit :
Hi IOhannes,
Thanks for the quick response, I need to change some pixels gray values after an pix_data analisis. I might try to use a rectangle with a translateXYZ, or something like that.
Diego.
--- On Wed, 9/1/10, IOhannes m zmoelnig zmoelnig@iem.at wrote: From: IOhannes m zmoelnig zmoelnig@iem.at Subject: Re: [PD] change pixel color value... To: "Diego Azar" dazar_uy@yahoo.com Cc: "PD List" pd-list@iem.at Date: Wednesday, September 1, 2010, 8:22 AM
On 2010-09-01 03:33, Diego Azar wrote: > Hi list, > > Does anybody know of a Gem objets that let you change the gray or color value of a certain pixel in the Gem window? I mean, something like change de pixel x=310, y =200 to gray=0.5 > [pix_rectangle] could be used for that, if you are sure that you really want to modify the pixes (a faster way would be to place some properly sized geo on top of the texture, but of course this might not be exactly what you need) fgmkasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Wed, 1 Sep 2010, Jack wrote:
On 2010-09-01 03:33, Diego Azar wrote:
Does anybody know of a Gem objets that let you change the gray or color value of a certain pixel in the Gem window? I mean, something like change de pixel x=310, y =200 to gray=0.5
Another faster way is to use shaders. Start with the first example in 10.GLSL.
How can you suppose that it's faster at all ?
It's only one pixel, you see.
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC
On Wed, 1 Sep 2010, IOhannes m zmoelnig wrote:
[pix_rectangle] could be used for that, if you are sure that you really want to modify the pixes (a faster way would be to place some properly sized geo on top of the texture, but of course this might not be exactly what you need)
Sending a 1-pixel geo takes a lot more bandwidth for just one pixel. Are you sure that the task of sending four vertices to the video card (and all of the accompanying data: glBegin, glEnd, glColor) is going to be any quicker than modifying one pixel ?
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC