<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Carles Sora</b> &lt;<a href="mailto:carlesora@gmail.com">carlesora@gmail.com</a>&gt;<br>Date: Jun 26, 2006 2:52 PM
<br>Subject: Re: [PD] pix_snab<br>To: IOhannes m zmoelnig &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br><br></span><div>i have understood all your points, thanks iOhannes,<br>
<br>
now: if i put an image from a pix_film directly to the buffer_write then i can read fine from the buffer, <br>
<br>
but if i put the pix_film across a texture and then a snap, (see patch) the result of the buffer is black again,<br>
<br>
maybe because the snap it's not in the good place??? or because x,y of snap are bad??<br><br>
thanks,<br></div><div><span class="sg">
carles</span></div><div><span class="e" id="q_10c1065cd6dc8066_2"><br>
<br><div><span class="gmail_quote">On 6/26/06, <b class="gmail_sendername">IOhannes m zmoelnig</b> &lt;<a href="mailto:zmoelnig@iem.at" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zmoelnig@iem.at
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Carles Sora wrote:<br>&gt; hi list,<br>&gt; I'm new here,<br>&gt;<br>&gt; I'm trying to put into pix_buffer a screenshot with pix_snab but it<br>&gt; doesn't work well,<br>&gt; the pix_buffer_read draws a black image,<br>

&gt; i thing that could be by the order of render, but i'm not sure<br>&gt; in the attach file you will see what I say.<br><br><br>several things:<br>1) you need something rendered into the buffer before you can make a<br>

meaningful snapshot (if you make a snapshot of an empty gemwin, then the<br>image is likely to be black)<br>2) [pix_buffer_write] will only write the image into the buffer in the<br>render cycle immediately after the 2nd inlet gets set. (this is kind a
<br>means for saving CPU power.) so each time you want to write something<br>into the buffer, you will have to bang the index-number you want to<br>write too (connect the [snap( with a [bang( to the index)<br>3) [pix_buffer_read] will only update the image when it is told to do
<br>so: e.g by (re)setting the index; again, this caching is for performance<br>reasons (and probably sometimes annoying); if you want to force the<br>buffer to be read each cycle, just send bang the index each render cycle.
<br><br>hope this helps<br><br>,fg,asdr<br>IOhannes<br></blockquote></div><br><br clear="all"><br></span></div><div>-- <br>..............................................................................

</div><br clear="all"><br clear="all"><br>-- <br>..............................................................................