<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Le 31/08/2013 14:22, Antoine Villeret a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite="mid:CAGn5wNf1kBowSep4k9+55HDwoEZgq-0odGt1yhf70rWaup4mbw@mail.gmail.com"
      type="cite">
      <p dir="ltr">2013/8/30 Jack &lt;<a moz-do-not-send="true"
          href="mailto:jack@rybn.org">jack@rybn.org</a>&gt;</p>
      <p dir="ltr">&gt; Hello Nicolas,<br>
        &gt;<br>
        &gt; Le 30/08/2013 10:48, Nicolas Montgermont a &eacute;crit :<br>
        &gt;<br>
        &gt; &gt; Hello jack,<br>
        &gt; &gt;<br>
        &gt; &gt; yes it can be very useful and powerful.<br>
        &gt; Yep.<br>
        &gt;<br>
        &gt; &gt; On the abstraction you send I have differents remarks:<br>
        &gt; &gt; - it is not compatible with [pix_chroma_key] and I
        think this is very important. The main usage of that kind of
        abstractions is to have an easy and faster replacement for
        existing objects.<br>
        &gt; Not totally compatible, yes. I think, it is more simpler to
        use a range value as float which determine the distance between
        the target color to remove (and other color in a circle of
        radius equal to that range). There is many way to make a
        chroma_key... But you are right, the aim of this abstractions is
        to be like pix_ object (when it is possible). What other people
        think about it ?<br>
      </p>
      <p dir="ltr">I think it's better to have drop-in replacement of
        pix_* object, but it could be difficult to manage<br>
        for example a strict equivalent to pix_chroma_key should handle
        a no argument initialisation, is this possible with
        glsl_chroma_key ?<br>
      </p>
    </blockquote>
    It should be possible to make a global counter to assign that value
    as texunit, But, if you have ever assigned it somewhere in your
    patch... disaster ! Idem if you have ever pass the value to a
    [glsl_program] localised somewhere else in your patch.<br>
    So, I think it is more simple to assign the texunit as argument in
    all glsl_ abstractions. Or I am wrong ?<br>
    <blockquote
cite="mid:CAGn5wNf1kBowSep4k9+55HDwoEZgq-0odGt1yhf70rWaup4mbw@mail.gmail.com"
      type="cite">
      <p dir="ltr"> &gt;<br>
        &gt;<br>
        &gt; &gt; - I see no reasons to have a default size to 256x256,
        or even to have a size as an argument, texture size of the first
        texture will be really easier as default, and dimen can be used
        to change that.<br>
        &gt; 256x256 is the default size of the texture generate by
        [gemframebuffer].<br>
        &gt; If you have a texture1 at 800x800 tx and a second at
        400x400 tx and need a texture at 200x200 tx as output, it is
        possible.<br>
        &gt; If you start to change the dimen of the texture1 with
        [pix_resize], it is too slow...<br>
        &gt; Of course, you can use the message [dimen( on the
        abstraction to change the size of the texture generate.<br>
      </p>
      <p dir="ltr">yes and pix_chroma_key doesn't handle non equal
        texture, so this is good but, I think we can make it more
        silently<br>
        By scaling texcoord according to texture size<br>
        But maybe i m wrong...<br>
      </p>
    </blockquote>
    Yes, it could be possible with something like [glsl_texcoordchange].<br>
    See attached for instance (at the bottom of the patch).<br>
    ++<br>
    <br>
    Jack<br>
    <br>
    <br>
    <blockquote
cite="mid:CAGn5wNf1kBowSep4k9+55HDwoEZgq-0odGt1yhf70rWaup4mbw@mail.gmail.com"
      type="cite">
      <p dir="ltr"> &gt;<br>
        &gt;<br>
        &gt; &gt; - I think it's good if the provided example of the
        usage is easily transposable, beginners tends to copy directly
        from the help patch. I think here for example the main gemhead
        could be to default and the gemhead before the gemframebuffer to
        49<br>
        &gt; I let the user (beginner) to manage it with the 'main'
        gemhead. It is why the gemhead is outside from the abstraction.
        With that, you can chain glsl_ abstractions and choose the
        render order.<br>
        &gt;<br>
        &gt; &gt; - for the help line : "inlet 1 all messages accepted
        by gemframebuffer", I think it's good to have a subpatch [pd
        framebuffer_messages] with a listing that can be tested. You may
        then copy it inside the other help patchs.<br>
        &gt; Yes, good idea.<br>
        &gt;<br>
        &gt; &gt; - maybe the object can print a specific error message
        when it doesn't know the input:<br>
        &gt; &gt; glsl_chroma_key : no method for 'toto'<br>
        &gt; &gt; instead of:<br>
        &gt; &gt; gemframebuffer: no method for 'toto'<br>
        &gt; Yes, good idea too. I will add a gem_state in [route].<br>
        &gt; ++<br>
        &gt;<br>
        &gt; Jack<br>
        &gt;<br>
        &gt;<br>
        &gt; &gt;<br>
        &gt; &gt; best,<br>
        &gt; &gt; n<br>
        &gt; &gt;<br>
        &gt; &gt;<br>
        &gt; &gt; Le 30/08/13 01:51, Antoine Villeret a &eacute;crit :<br>
        &gt; &gt;&gt; good job !<br>
        &gt; &gt;&gt; could be very useful !<br>
        &gt; &gt;&gt; I have some too (to replace pix_movement for
        example)<br>
        &gt; &gt;&gt; what is your working repo ?<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; +<br>
        &gt; &gt;&gt; a<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; --<br>
        &gt; &gt;&gt; do it yourself&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
        &gt; &gt;&gt; <a moz-do-not-send="true"
          href="http://antoine.villeret.free.fr">http://antoine.villeret.free.fr</a><br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; 2013/8/28 Jack &lt;<a moz-do-not-send="true"
          href="mailto:jack@rybn.org">jack@rybn.org</a> &lt;mailto:<a
          moz-do-not-send="true" href="mailto:jack@rybn.org">jack@rybn.org</a>&gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; Le 26/07/2013 14:03, IOhannes m zm&ouml;lnig a &eacute;crit :<br>
        &gt;&gt; &gt; On 07/26/13 11:44, Jack wrote:<br>
        &gt;&gt; &gt;&gt; Hello,<br>
        &gt;&gt;<br>
        &gt;&gt; &gt;&gt; I would like to create GLSL abstractions in
        the help directory, which<br>
        &gt;&gt; &gt;&gt; would replace pix_ objects when possible. The
        name would start with<br>
        &gt;&gt; &gt;&gt; glsl_ instead of pix_.<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; sound good.<br>
        &gt;&gt;<br>
        &gt;&gt; &gt;&gt; Is there any objection against this ?<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; no.<br>
        &gt;&gt;<br>
        &gt;&gt; &gt;&gt; If not, i would like to have acces to the git
        repository with write<br>
        &gt;&gt; &gt;&gt; access. Is that possible ?<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; wouldn't it be easier if you just forked the
        repository, and made a<br>
        &gt;&gt; &gt; pull-request via github?<br>
        &gt;&gt; &gt; i really love the decentralized aspect of git.<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; mgfd.gasda<br>
        &gt;&gt; &gt; IOhannes<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; _______________________________________________<br>
        &gt;&gt; &gt; GEM-dev mailing list<br>
        &gt;&gt; &gt; <a moz-do-not-send="true"
          href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a> &lt;mailto:<a
          moz-do-not-send="true" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &gt; <a moz-do-not-send="true"
          href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; I started to make seven abstractions glsl_*.<br>
        &gt;&gt; I would like to be sure, with the example attached, if
        i am on the right path.<br>
        &gt;&gt; Comments are welcome.<br>
        &gt;&gt; ++<br>
        &gt;&gt;<br>
        &gt;&gt; Jack<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
        _______________________________________________<br>
        &gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; GEM-dev mailing list<br>
        &gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
          href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a> &lt;mailto:<a
          moz-do-not-send="true" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a>&gt;<br>
        &gt;<br>
        &gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
          href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; _______________________________________________<br>
        &gt; &gt;&gt; GEM-dev mailing list<br>
        &gt; &gt;&gt; <a moz-do-not-send="true"
          href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
        &gt; &gt;&gt; <a moz-do-not-send="true"
          href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>
        &gt; &gt;<br>
        &gt; &gt; -- <br>
        &gt; &gt; <a moz-do-not-send="true" href="http://www.nimon.org">http://www.nimon.org</a><br>
        &gt; &gt;<br>
        &gt; &gt;<br>
        &gt; &gt; _______________________________________________<br>
        &gt; &gt; GEM-dev mailing list<br>
        &gt; &gt; <a moz-do-not-send="true"
          href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
        &gt; &gt; <a moz-do-not-send="true"
          href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>
        &gt;<br>
        &gt;<br>
        &gt;<br>
        &gt;<br>
        &gt; _______________________________________________<br>
        &gt; GEM-dev mailing list<br>
        &gt; <a moz-do-not-send="true" href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
        &gt; <a moz-do-not-send="true"
          href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>
        &gt;</p>
    </blockquote>
    <br>
  </body>
</html>