<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->x_obj,
&this->x_obj->ob_pd, gensym("gem_state"),
gensym("depth_state"));<br>
m_depthoutlet = outlet_new(this->x_obj, 0);<br>
<br>
setupCallback:<br>
class_addmethod(classPtr,
(t_method)(&pix_freenect::renderDepthCallback),<br>
gensym("depth_state"), A_GIMME, A_NULL);<br>
<br>
-> renderDepthCallback() calls the rendering method for the
second output -> 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 <<a href="http://lists.puredata.info/listinfo/gem-dev">zmoelnig at iem.at</a>>
><i> -----BEGIN PGP SIGNED MESSAGE-----
</i>><i> Hash: SHA1
</i>><i>
</i>><i> On 09/28/2011 07:19 PM, Antoine Villeret wrote:
</i>><i> > hi,
</i>><i> >
</i>><i> > did you finally found a way to output more than one pix image from a pix
</i>><i> > object ?
</i>><i> > i'm interessed in it too and also on adding severals pix_image input
</i>><i> >
</i>><i>
</i>><i> there shouldn't be any problem outputting with outputting 2 separate
</i>><i> states (holding 2 separate images) onto 2 separate outlets.
</i>><i>
</i>><i> what are you struggling with?
</i>><i>
</i>><i> fgmadsr
</i>><i> IOhannes
</i>><i> -----BEGIN PGP SIGNATURE-----
</i>><i> Version: GnuPG v1.4.11 (GNU/Linux)
</i>><i> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a>
</i>><i>
</i>><i> iEYEARECAAYFAk6EGCAACgkQkX2Xpv6ydvQXoQCgvuo1IFIvUugSsWlGVLVMrLRV
</i>><i> j4UAn0BZOoAiGUldA6qn43H8lvKA/mE7
</i>><i> =p863
</i>><i> -----END PGP SIGNATURE-----
</i>><i>
</i>><i> _______________________________________________
</i>><i> GEM-dev mailing list
</i>><i> <a href="http://lists.puredata.info/listinfo/gem-dev">GEM-dev at iem.at</a>
</i>><i> <a href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a>
</i>><i>
</i>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<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>></pre>
</blockquote>
</body>
</html>