pix_snap is probably using texunit 0 which is the default for any texturing call.  pix_snap actually uses a function called glReadPixels(), and that might use texture units internally to grab the frame and store it before read back to main memory.  <br>
<br>Also, you cannot use any value for the texunit pix_texture uses most GPUs have at least 8 so texunits 0 to 7 are valid.  Lots of GPUs have much more than 8 so you have to figure out where they end.<br><br><div class="gmail_quote">
On Fri, Jan 1, 2010 at 1:38 PM, Matteo Sisti Sette <span dir="ltr">&lt;<a href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for pointing me to the examples, but it definitely seems there is some kind of interaction with [pix_snap]: even if I force [gemframebuffer] to use texunit 0 and my textures to use texunits 1,2,3 and 4, I still get under/overflows as soon as pix_snap takes a snap, and my shader is using a snapped picture (which does not correspond to any other texture) instead of the texture I expect it to use.......<br>

<br>
Well I will try to post a simplified patch because this explanation of mine is a mess, but it seems I have to figure out how to avoid pixsnap to mess with textures. It does not accept a texunit message (dunnow if it would make any sense)......<br>

<br>
cyrille henry escribió:<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Matteo Sisti Sette a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
cyrille henry escribió:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
there is an exemple of how to use multiple texture / textunit in the gem exemple folder, in directory 10.GLSL<br>
<br>
<br>
</blockquote>
<br>
You mean 05.multitexture.pd?<br>
<br>
Yes I&#39;ve seen it (it is thanks to that example that I have been able to do something - btw iirc it is yours, so thank you).<br>
<br>
But that doesn&#39;t show any interaction with [gemframebuffer] nor [pix_snap]. That&#39;s where my troubles begin (apparently)<br>
</blockquote>
the exemple 06 show how to use gemframebuffer and multiple texture.<br>
<br>
exemple 07 is also usefull for you.<br>
<br>
c<br>
<br>
<br>
</blockquote>
<br>
<br></div><div class="im">
-- <br>
Matteo Sisti Sette<br>
<a href="mailto:matteosistisette@gmail.com" target="_blank">matteosistisette@gmail.com</a><br>
<a href="http://www.matteosistisette.com" target="_blank">http://www.matteosistisette.com</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5"><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br>