On Sam, 2017-04-08 at 08:29 +0200, Christof Ressi wrote:
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?
By Hand (maybe later by a formula). Is it possible?
The idea is to have two overlaying images. The visible one slowly decomposes over time so that the image behind appears. I thought about setting alpha to for more and more pixels as a way to decompose the front image. Maybe there is another/better way?
Roman
Gesendet: Freitag, 07. April 2017 um 23:39 Uhr Von: "Roman Haefeli" reduzent@gmail.com 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 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 using [pix_dump] -> [pix_set] and applying the manipulation to the largish list passed between them. Or by using [pix_pix2sig~] -> [pix_sig2pix~] which is basically the same, but would allow to do the manipulation on a table.
Roman _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/l istinfo/pd-list