p.s. I could gladly contribute to the extension of the glsl help files.<br><br>M<br><br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 2:44 PM, Marco Donnarumma <span dir="ltr">&lt;<a href="mailto:devel@thesaddj.com">devel@thesaddj.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guido, Cyrille,<div><br></div><div>thanks for bringing the discussion further.</div><div>Actually Guido, I think I read you on the Pd forum few days ago and checked your patches too, nice work.</div>
<div><br></div><div>
As for the documentation. </div><div>Personally, a great part of my first attempts at working with glsl in Pd were completely mined by the absence of a wrapper object for the glsl compilation; the lack of a [pix_shader] or [a_shad] for instance. It would be useful to have [pix_shader] included in GEM.</div>

<div>It might sound silly, but as Guido mentioned, getting a shader to work it&#39;s a much of a trial-and-error exercise.</div><div>Thus, in my experience, it took a lot of time to figure out where to look for bugs or problems.</div>

<div><br></div><div>I needed to study glsl (obviously) to start understanding; but I believe that users would benefit from the inclusion of some initial, basic information within the glsl help patches. For example, shader with rectangular textures won&#39;t work if you don&#39;t switch the [pix_texture] mode adequately.</div>

<div>This is not explained anywhere in Pd, and, yes, of course you can getting to it by learning with on-line resources, but it would be far easier to place a [comment] somewhere in the Pd patch. (I don&#39;t think it&#39;s there already, but please tell me if so.).</div>

<div><br></div><div>Shortly, imho the present glsl help are very complex for a noob because: </div><div>_there isn&#39;t an &quot;official&quot; wrapper, so the loading/compilation process is visible and appears quite confusing.  </div>

<div>_uniforms and how to control them from a Pd patch are not explained anywhere (within Pd)</div><div>_basic and clear info about getting a new shader to work in Pd are missing</div><div><br></div><div>of course, the whole glsl thing is complex and need further study anyway, but it would be awesome to inform the glsl in GEM with the stuff above.</div>

<div><br></div><font color="#888888"><div>M</div><div><br></div><div><br></div></font><div><div><div></div><div class="h5"><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 2:10 PM, cyrille henry <span dir="ltr">&lt;<a href="mailto:ch@chnry.net" target="_blank">ch@chnry.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 27/12/2011 13:02, Guido Tamino a écrit :<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
actually the [pix_shader] abstraction comes from a depth of field simulation I made with glsl/gem a while ago. Download link, documentation and demo video are available at the link below. If anyone wants to try it out, the depth of field patch is pretty self-explainatory and should work just out of the box.<br>


<a href="http://vimeo.com/30188933" target="_blank">http://vimeo.com/30188933</a><br>
<br>
Before being swamped with work I was interested in porting Vade shaders and other glsl stuff to PD. I implemented his blur shaders (motion blur, zoom blur and fast blur) and they all seems to work fine but a lot of work has to be done before using them as solid generic effects.<br>


<a href="http://guidotamino.it/download/glslBlur.zip" target="_blank">http://guidotamino.it/<u></u>download/glslBlur.zip</a><br>
<br>
A couple months ago I opened a discussion with Cyrille on the theme but we were both too busy with work to fully dive into the subject.<br>
</blockquote></div>
since then, i made a &quot;good&quot; triangle blur shader to work with a modified version of guildo patch.<br>
i commit everything as a gem example yesterday.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the meanwhile I played around with the optical flow experiments by the jitter community with nice results, a demo could be seen here:<br>
<a href="http://vimeo.com/30517302" target="_blank">http://vimeo.com/30517302</a><br>
</blockquote></div>
nice.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I&#39;m definetely interested in developing a set of glsl wrappers to make the whole thing easier for a beginner. I am a beginner myself and I had some tough times trying to figure out things like how to multipass glsl effects or how to feed multiple textures to a shader. This kind of stuff is almost undocumented and needs a lot of trial and error in order to be understood.<br>


<br>
</blockquote></div>
there are few multipass example in gem.<br>
I try to make 1 example for each technical possibility.<br>
nothing is fully documented, but i think everything is documented.<br>
at least, everything that i&#39;m aware of. (i was also a glsl noob before making gem examples...)<br>
<br>
do you think that more multipass example are needed?<br>
or is it just that since it&#39;s complex, it need time to be fully understood?<br>
<br>
cheer<br>
Cyrille<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Best,<br>
Guido<br>
<br>
Il giorno 27/dic/2011, alle ore 11.22, philippe boisnard ha scritto:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hello<br>
<br>
We have worked in codelab french forum about that since one month :<br>
I give you the first test-lib that I have created :<br>
&lt;a_shader-tr.zip&gt;<br>
[a_cons] is a usefull abstract to create box of variables.<br>
<br>
2 exemples with multipass of texture<br>
<a href="http://t-pas-net.com/videos/test_multi_shad.mov" target="_blank">http://t-pas-net.com/videos/<u></u>test_multi_shad.mov</a><br>
<a href="http://vimeo.com/33974266" target="_blank">http://vimeo.com/33974266</a><br>
<br>
Yet, I adapt GLSL. system of particules with pmpd.<br>
<a href="http://t-pas-net.com/videos/fragGLSLtest5.mov" target="_blank">http://t-pas-net.com/videos/<u></u>fragGLSLtest5.mov</a><br>
<a href="http://t-pas-net.com/videos/testGLSL_pmpd.flv" target="_blank">http://t-pas-net.com/videos/<u></u>testGLSL_pmpd.flv</a><br>
<br>
:-)<br>
<br>
p<br>
<br>
Le 27 déc. 2011 à 10:36, Marco Donnarumma a écrit :<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi all,<br>
<br>
while studying glsl (after attending Cyrille&#39;s workshop at the PdCon), I&#39;m porting Vade&#39;s collection of shaders [1] to Pd,<br>
and I only need to know I&#39;m not reinventing the wheel.<br>
<br>
I&#39;m creating a glsl-help-files lib, based on the [pix_shader] wrap by Cyrille; adding ready made patches for diverse shaders and briefly explaining while some work out of the box and some others not.<br>
It could be useful to have such documentation in Pd, as the glsl topic is not covered in depth, or at least not enough for a noob in this field as myself.<br>
<br>
I recall Marius was doing something similar, but I&#39;m not sure how the project ended up.<br>
<br>
[1] <a href="http://001.vade.info/?page_id=20" target="_blank">http://001.vade.info/?page_id=<u></u>20</a><br>
<br>
<br>
--<br>
Marco Donnarumma<br>
Independent New Media and Sonic Arts Practitioner, Performer, Teacher<br>
ACE, Sound Design MSc by Research (ongoing)<br>
The University of Edinburgh, UK<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div>
Portfolio: <a href="http://marcodonnarumma.com" target="_blank">http://marcodonnarumma.com</a> &lt;<a href="http://marcodonnarumma.com/" target="_blank">http://marcodonnarumma.com/</a>&gt;<br>
Research: <a href="http://res.marcodonnarumma.com" target="_blank">http://res.marcodonnarumma.com</a> &lt;<a href="http://res.marcodonnarumma.com/" target="_blank">http://res.marcodonnarumma.<u></u>com/</a>&gt; | <a href="http://www.thesaddj.com" target="_blank">http://www.thesaddj.com</a> &lt;<a href="http://www.thesaddj.com/" target="_blank">http://www.thesaddj.com/</a>&gt; | <a href="http://www.flxer.net" target="_blank">http://www.flxer.net</a> &lt;<a href="http://www.flxer.net/" target="_blank">http://www.flxer.net/</a>&gt;<br>


Director: <a href="http://www.liveperformersmeeting.net" target="_blank">http://www.<u></u>liveperformersmeeting.net</a> &lt;<a href="http://www.liveperformersmeeting.net/" target="_blank">http://www.<u></u>liveperformersmeeting.net/</a>&gt;<br>


______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> &lt;mailto:<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a>&gt; mailing list<div><br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></blockquote>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> &lt;mailto:<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a>&gt; mailing list<div><br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></blockquote><div>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<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/<u></u>listinfo/pd-list</a><br>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Marco Donnarumma<br>Independent New Media and Sonic Arts Practitioner, Performer, Teacher<br>ACE, Sound Design MSc by Research (ongoing)<br>The University of Edinburgh, UK<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Portfolio: <a href="http://marcodonnarumma.com/" target="_blank">http://marcodonnarumma.com</a><br></div></div><div class="im">Research: <a href="http://res.marcodonnarumma.com/" target="_blank">http://res.marcodonnarumma.com</a> | <a href="http://www.thesaddj.com/" target="_blank">http://www.thesaddj.com</a> | <a href="http://www.flxer.net/" target="_blank">http://www.flxer.net</a><br>

Director: <a href="http://www.liveperformersmeeting.net/" target="_blank">http://www.liveperformersmeeting.net</a><br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Marco Donnarumma<br>Independent New Media and Sonic Arts Practitioner, Performer, Teacher<br>ACE, Sound Design MSc by Research (ongoing)<br>The University of Edinburgh, UK<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Portfolio: <a href="http://marcodonnarumma.com/" target="_blank">http://marcodonnarumma.com</a><br>Research: <a href="http://res.marcodonnarumma.com/" target="_blank">http://res.marcodonnarumma.com</a> | <a href="http://www.thesaddj.com/" target="_blank">http://www.thesaddj.com</a> | <a href="http://www.flxer.net/" target="_blank">http://www.flxer.net</a><br>
Director: <a href="http://www.liveperformersmeeting.net/" target="_blank">http://www.liveperformersmeeting.net</a><br>