<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    hi!<br>
    <br>
    you can find an example how to do two outputs from pix_ object in my
    pix_freenect external.<br>
<a class="moz-txt-link-freetext" href="http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip">http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip</a><br>
    <br>
    i made an additional inlet and outlet for gemstate plus the methods
    that get called, 2 pixBlock and an additional GemState.<br>
    <br>
    so the pieces of code that are interesting:<br>
    constructor:<br>
      m_depthinlet  = inlet_new(this-&gt;x_obj,
    &amp;this-&gt;x_obj-&gt;ob_pd, gensym("gem_state"),
    gensym("depth_state"));<br>
      m_depthoutlet = outlet_new(this-&gt;x_obj, 0);<br>
    <br>
    setupCallback:<br>
      class_addmethod(classPtr,
    (t_method)(&amp;pix_freenect::renderDepthCallback),<br>
                      gensym("depth_state"), A_GIMME, A_NULL);<br>
    <br>
    -&gt; renderDepthCallback() calls the rendering method for the
    second output -&gt; renderDepth(int argc, t_atom*argv);<br>
    <br>
    the tricky thing is how to deal with the pointers from GemState and
    how to get them out of argc arguments (at least for me it was...)<br>
    <br>
    <br>
    so if you are still interested have a look at the code and ask if
    questions rise.<br>
    <br>
    <br>
    matthias<br>
    <br>
    <blockquote type="cite">
      <pre>hi,
i've found some examples on how to input two separate states (pix_add,
pix_diff, pix_multiply...)
but none with 2 outlets for 2 different states,
so where can I find an example with 2 state outlets ?

and what about more than 2 inlets or outlets for holding more than 2 images
?

sorry for these silly questions but i'm not a programmer in fact :-)

thanks

antoine
-- 
do it yourself
<a href="http://antoine.villeret.free.fr">http://antoine.villeret.free.fr</a>
<a href="http://drii.ensad.fr">http://drii.ensad.fr</a>
--
Google lit ce mail...
si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour
me contacter



2011/9/29 IOhannes m zmölnig &lt;<a href="http://lists.puredata.info/listinfo/gem-dev">zmoelnig at iem.at</a>&gt;

&gt;<i> -----BEGIN PGP SIGNED MESSAGE-----
</i>&gt;<i> Hash: SHA1
</i>&gt;<i>
</i>&gt;<i> On 09/28/2011 07:19 PM, Antoine Villeret wrote:
</i>&gt;<i> &gt; hi,
</i>&gt;<i> &gt;
</i>&gt;<i> &gt; did you finally found a way to output more than one pix image from a pix
</i>&gt;<i> &gt; object ?
</i>&gt;<i> &gt; i'm interessed in it too and also on adding severals pix_image input
</i>&gt;<i> &gt;
</i>&gt;<i>
</i>&gt;<i> there shouldn't be any problem outputting with outputting 2 separate
</i>&gt;<i> states (holding 2 separate images) onto 2 separate outlets.
</i>&gt;<i>
</i>&gt;<i> what are you struggling with?
</i>&gt;<i>
</i>&gt;<i> fgmadsr
</i>&gt;<i> IOhannes
</i>&gt;<i> -----BEGIN PGP SIGNATURE-----
</i>&gt;<i> Version: GnuPG v1.4.11 (GNU/Linux)
</i>&gt;<i> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a>
</i>&gt;<i>
</i>&gt;<i> iEYEARECAAYFAk6EGCAACgkQkX2Xpv6ydvQXoQCgvuo1IFIvUugSsWlGVLVMrLRV
</i>&gt;<i> j4UAn0BZOoAiGUldA6qn43H8lvKA/mE7
</i>&gt;<i> =p863
</i>&gt;<i> -----END PGP SIGNATURE-----
</i>&gt;<i>
</i>&gt;<i> _______________________________________________
</i>&gt;<i> GEM-dev mailing list
</i>&gt;<i> <a href="http://lists.puredata.info/listinfo/gem-dev">GEM-dev at iem.at</a>
</i>&gt;<i> <a href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
</i>&gt;<i>
</i>-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;<a href="http://lists.puredata.info/pipermail/gem-dev/attachments/20110929/37bcee39/attachment.htm">http://lists.puredata.info/pipermail/gem-dev/attachments/20110929/37bcee39/attachment.htm</a>&gt;</pre>
    </blockquote>
  </body>
</html>