Need some help. I use patch based on example 01.VideoPaint from GEM library. My patch generates 2D pics and I need to read changing data from pixels on the fly, in process of generating at the same time for using it for further generating with another autonomous pointer.
[Pix_data] doesnt work, because it requires ready downloaded image. I tried to make snapshots, but cant understand how to use them for my aims. Any suggestions?
Read data from pixels on the fly
@navu Pix_data will output pix data every time it's left inlet is banged.
It works well for video, so it should work for any gem_state.
Note that the output of the generating object must be connected to the second inlet (unusual...!).
You can run it off to the side of the Gem_state chain using a trigger...... [t a a] as you are using it just to extract data for one defined pixel.
Don't forget to define the pixel on the 3rd and 4th inlets.
You can get every frame with a [t b a] like this.....
But [pix_data] only produces output when the Gem window has been created......
Thank you David!
But I have to notice something.
Step by step.
- I've got background ([square 4] object with certain color and [translateXYZ 0 0 0] object to be sure that I'm on a right layer).
- I've got slowly generated lines of colors painting by [circle] on the same layer.
- When generating in process I lounch independent pointer presented by the [circle] orienting by data from pixels of resulting pics of step 1 and 2.
I've got no problem if I have ready image or video but when I use [metro] prior [gemhead] in video painting I cant understand where I have to connect [pix_data] - it doesnt work.