This can be done with a shader and a framebuffer.  The gemwin is not the way to do it because it knows nothing of the geometry being rendered elsewhere in a patch.<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 6:43 AM, Pierre <span dir="ltr">&lt;<a href="mailto:pierre@314r.net">pierre@314r.net</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;">Hi,<br>
Something I would add to G.E.M. is the &quot;Depth Of Field&quot; effect.<br>
Someone asked this last year on pd-list without succes/response :<br>
<a href="http://lists.puredata.info/pipermail/pd-list/2008-10/065649.html" target="_blank">http://lists.puredata.info/pipermail/pd-list/2008-10/065649.html</a><br>
<br>
Adding something like a &#39;focus&#39; parameter to [gemwin] would be very nice.<br>
Maybe it could be done using GLSL or [GEMglAccum] (*) but, until now, all my searches and tests have failed...<br>
<br>
Any ideas on how to do that ?<br>
I can code a bit a opengl/c, but I have poor skills...<br>
So any help, link or idea is welcome !<br>
<br>
Best regards,<br>
Pierre<br>
<br>
(*) <a href="http://www.opengl.org/sdk/docs/man/xhtml/glAccum.xml" target="_blank">http://www.opengl.org/sdk/docs/man/xhtml/glAccum.xml</a><br>
(*) <a href="http://www.opengl.org/resources/code/samples/redbook/dof.c" target="_blank">http://www.opengl.org/resources/code/samples/redbook/dof.c</a><br>
<br>
<br>
<br>
_______________________________________________<br>
GEM-dev mailing list<br>
<a href="mailto:GEM-dev@iem.at" target="_blank">GEM-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/gem-dev" target="_blank">http://lists.puredata.info/listinfo/gem-dev</a><br>
</blockquote></div><br>