On 9/6/06, Thoralf Schulze <thoralf_schulze@yahoo.de> wrote:
no, my intention is still to create some
organic-looking video stuff by doing feedback: draw
something, take a snapshot of the render buffer and
use this as texture for a rectangle in the background
of the picture in the next render cycle. the pix_image
in the attached patch was only there to simplify
things ...
since both pix_buffer_read and pix_buffer_write are
tremendous resource hogs,
i came up with the idea of
resizing the texture and/or updating it only every nth
frame (is this possible at all?). pix_buffering a
texture larger than 400x300 pixels every render cycle
causes serious midi delays on my machine, which has
only 4xagp (which is probably the bottleneck here).
yeah, that would be really cool. maybe we could borrow
something form the avisynth people ( www.avisynth.org ).
there are quite a few resizing algorithms available in
that package, ranging from dumb linear resizing to
spline-based algorithms:
http://www.avisynth.org/Resize