hi!

you can find an example how to do two outputs from pix_ object in my pix_freenect external.
http://www.matthiaskronlachner.com/wp-content/uploads/2011/11/pix_freenect_0.03.zip

i made an additional inlet and outlet for gemstate plus the methods that get called, 2 pixBlock and an additional GemState.

so the pieces of code that are interesting:
constructor:
  m_depthinlet  = inlet_new(this->x_obj, &this->x_obj->ob_pd, gensym("gem_state"), gensym("depth_state"));
  m_depthoutlet = outlet_new(this->x_obj, 0);

setupCallback:
  class_addmethod(classPtr, (t_method)(&pix_freenect::renderDepthCallback),
                  gensym("depth_state"), A_GIMME, A_NULL);

-> renderDepthCallback() calls the rendering method for the second output -> renderDepth(int argc, t_atom*argv);

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...)


so if you are still interested have a look at the code and ask if questions rise.


matthias

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
http://antoine.villeret.free.fr
http://drii.ensad.fr
--
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 <zmoelnig at iem.at>

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