Hi Ben<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Why not:<br>
<br>
a. texture a large plane with a circular alpha channel hole<br>
<br>
b. model a large plane with a circular hole.</blockquote><div>&nbsp;</div><div>I&#39;ll give that a try, I think i&#39;ll need some more flexibility since i need to have other polygons in the same patch... but maybe i can solve it in a different way...</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Both would be a mask that show through what is rendered behind them,<br>
should be very fast, but not as flexible, as your ideas.</blockquote><div><br class="webkit-block-placeholder"></div><div>Being fast is definitely going to be a requirement.</div><div>Now, in this context, is flexibility a synonym for madness? or more precisely, is this approach too slow?</div>
<div><br class="webkit-block-placeholder"></div><div>best,</div><div><br class="webkit-block-placeholder"></div><div>J</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
.b.<br>
<div><div></div><div class="Wj3C7c"><br>
Jaime Oliver wrote:<br>
&gt; Hello all, I am trying to do something which should be fairly easy: I am<br>
&gt; trying to see a circle that let&#39;s through an image that is behind it.<br>
&gt; (As if through a telescope...) So my attempt so far consists of<br>
&gt; texturing this image into a circle and compensate changes in translation<br>
&gt; and size of the circle with the pix_coordinate object. I have managed to<br>
&gt; do this with rectangles and triangles, but can&#39;t a find a way around<br>
&gt; circles. The main idea is the next:<br>
&gt;<br>
&gt; pix_image<br>
&gt; |<br>
&gt; pix_texture &nbsp; coordinate-mess<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /<br>
&gt; pix_coordinate<br>
&gt; |<br>
&gt; rotateXYZ<br>
&gt; |<br>
&gt; translateXYZ<br>
&gt; |<br>
&gt; circle<br>
&gt;<br>
&gt; The coordinate message has this behaviour:<br>
&gt; -the 1st two floats don&#39;t have any effect.<br>
&gt; -the 3rd one compresses/expands left-right,<br>
&gt; -the 4th one compresses/expands up-down,<br>
&gt; -the 5th doesn&#39;t do anything,<br>
&gt; -the 6th one seems to offest the vertical compression/expanssion<br>
&gt; -any succesive floats have no effect.<br>
&gt;<br>
&gt; So my problem is that without any horixontal offest i can&#39;t compensate<br>
&gt; for size/transaltion values. If i had that i think i could do some math<br>
&gt; to do this....<br>
&gt;<br>
&gt; Anyone has any suggestions? Is this the wrong approach??<br>
&gt;<br>
&gt; I am attaching the patch if anyone want&#39;s to test this and I am also<br>
&gt; attaching an example of how i am compensating this for a polygon 3<br>
&gt;<br>
&gt; best,<br>
&gt;<br>
&gt; J<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Jaime E Oliver LR<br>
&gt;<br>
</div></div>&gt; <a href="mailto:joliverl@ucsd.edu">joliverl@ucsd.edu</a> &lt;mailto:<a href="mailto:joliverl@ucsd.edu">joliverl@ucsd.edu</a>&gt;<br>
&gt; <a href="http://www.realidadvisual.org/jaimeoliver" target="_blank">www.realidadvisual.org/jaimeoliver</a><br>
&gt; &lt;<a href="http://www.realidadvisual.org/jaimeoliver" target="_blank">http://www.realidadvisual.org/jaimeoliver</a>&gt;<br>
&gt; <a href="http://www-crca.ucsd.edu/" target="_blank">www-crca.ucsd.edu/</a> &lt;<a href="http://www-crca.ucsd.edu/" target="_blank">http://www-crca.ucsd.edu/</a>&gt;<br>
&gt; <a href="http://www.realidadvisual.org" target="_blank">www.realidadvisual.org</a> &lt;<a href="http://www.realidadvisual.org" target="_blank">http://www.realidadvisual.org</a>&gt;<br>
<div class="Ih2E3d">&gt;<br>
&gt; 9168 Regents Rd. Apt. G<br>
&gt; La Jolla, CA 92037<br>
&gt; USA<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>
&gt; 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>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jaime E Oliver LR<br><br><a href="mailto:joliverl@ucsd.edu">joliverl@ucsd.edu</a><br><a href="http://www.realidadvisual.org/jaimeoliver">www.realidadvisual.org/jaimeoliver</a><br>
<a href="http://www-crca.ucsd.edu/">www-crca.ucsd.edu/</a><br><a href="http://www.realidadvisual.org">www.realidadvisual.org</a><br><br>9168 Regents Rd. Apt. G<br>La Jolla, CA 92037<br>USA