Attached is patch that uses the stencil buffer posted by Cyrille Henry to the gem-dev list.&nbsp; You will need to have some knowledge of OpenGL to get the most out of it.<br><br><div><span class="gmail_quote">On 3/31/07, <b class="gmail_sendername">
Nose Hair</b> &lt;<a href="mailto:nosehair911@bellsouth.net">nosehair911@bellsouth.net</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;">
<div style=""><div style="margin: 0px; background-color: rgb(243, 243, 243);"><span style="line-height: 15px;"><font color="#242424" size="3"><span style="font-size: 11px; line-height: normal;">Hello everyone,</span></font>
</span></div><div style="margin: 0px; background-color: rgb(243, 243, 243);"><span style="line-height: 15px;"><font color="#242424" size="3"><span style="font-size: 11px; line-height: normal;">Is there a way to use a gem object as a mask for another gem object?&nbsp; Like masking a circle with a triangle. Or cutting out a square inside a circle.
</span></font><font color="#242424" size="3"><span style="font-size: 11px; line-height: normal;"><br></span></font><font color="#242424" size="3"><span style="font-size: 11px; line-height: normal;"> Thanks,</span></font><font color="#242424" size="3">
<span style="font-size: 11px; line-height: normal;"><br></span></font><font color="#242424" size="3"><span style="font-size: 11px; line-height: normal;"> Alain</span></font></span></div></div><br>_______________________________________________
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a><br><br></blockquote></div><br>