I am getting a seizure from that patch.  You want to resize images
load them into pix_buffer and then only update the texture every few
frames?&nbsp; <br>
<br>
Since the image is already a file in the filesystem can you run a
script for something like imagemagick to resize them?&nbsp; Maybe we
can find some decent resizing code in a GPL app and use that in place
of pix_resize...<br>
<br>
cgc<br>
<br>
On 9/6/06, <b class="gmail_sendername">Thoralf Schulze</b> &lt;<a href="mailto:thoralf_schulze@yahoo.de">thoralf_schulze@yahoo.de</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi there,<br><br>with regard to this thread:<br><a href="http://lists.puredata.info/pipermail/pd-list/2006-09/041759.html">http://lists.puredata.info/pipermail/pd-list/2006-09/041759.html</a><br>- is there a way to resize a texture in gem?
<br>i'm aware of pix_resize, but this object is slow as<br>hell and only resizes to the next power of two. i'm<br>looking for something that does a fast resize to an<br>arbitrary size - my plan is to cut the time it takes
<br>the pix_buffer-objects to store and recall textures.<br><br>on a related note: is it possible to buffer textures<br>created by pix_buffer_read so that the texture will<br>only be updated if the content of the buffer has
<br>actually changed? i figured that it might be enough to<br>only snap every 4th frame and use a buffered version<br>of the textures for the other render cycles ...<br>but pix_buffer_read does the texture upload every<br>
render cycle, and i couldn't get pix_buf to actually<br>buffer a texture ...<br>i'm probably making not much sense here, please have a<br>look at the attached patch to see what i'm up to.<br><br>thank you very much for your input,
<br>thoralf.<br><br>
</blockquote></div><br>