-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-03-20 12:21, Antonio Roberts wrote:
I've been attempting to build on the stop-motion animation patch that guido built some time ago (attached). I want to output each new frame to an image but there's one problem: [pix_write] reads what is currently in the frame buffer, which could be one of the old pictures. Is there any way to make it read from a specific point in the frame buffer?
a "framebuffer" in openGL- and Gem-land usually means a "canvas" where you draw to. [gemwindow] is a typical framebuffer, [gemframebuffer] (what's that name..?) as well.
[pix_write] will indeed read from this framebuffer. you can specify where in the framebuffer it reads via the "offset" & "dimension" parameters.
[pix_buffer], while being a "buffer" that holds "frames", is NOT a framebuffer in this parlance.
you can use the [save foo.jpg 42( message to save a pix from the [pix_buffer] to the disk. the last argument ("42" in this case) denotes the slot to read the image from.
fgasdr IOhannes