hi!
is it possible to output 2 images (gem_states) from one pix_ object? is there any example for something like this around?
i'm working on an openni external in the moment that can output skeleton data and kinect video streams at the same time. it's working fine but i don't know how to output the depth and the rgb videostream at the same time.
matthias
Hello,
I am not sure if I got your question completely right, but you can put the pix_ output in a buffer: http://wiki.puredata.info/en/pix_buffer And read is as many times as you like. You can use an "t a b" to go though the buffer or fill it based on the frame rate, I found an example in the patch on this url: http://www.dazegraffiti.com/2010/08/pixfreeframe-1.html
Regards, Harrie
On Wed, Sep 14, 2011 at 1:28 PM, Matthias Kronlachner < m.kronlachner@student.tugraz.at> wrote:
hi!
is it possible to output 2 images (gem_states) from one pix_ object? is there any example for something like this around?
i'm working on an openni external in the moment that can output skeleton data and kinect video streams at the same time. it's working fine but i don't know how to output the depth and the rgb videostream at the same time.
matthias
______________________________**_________________ GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/**listinfo/gem-devhttp://lists.puredata.info/listinfo/gem-dev
hi!
thanks for the answer, but that's not the thing i need. i need to output 2 different videostreams from one external i'm just programming (the kinect outputs one rgb and one depth video stream). but i'm not sure if the gem framework allows two gemstate outputs from one object.
greets matthias
Am Mittwoch, den 14.09.2011, 14:18 +0200 schrieb Harrie Hoogeveen:
Hello,
I am not sure if I got your question completely right, but you can put the pix_ output in a buffer: http://wiki.puredata.info/en/pix_buffer And read is as many times as you like. You can use an "t a b" to go though the buffer or fill it based on the frame rate, I found an example in the patch on this url: http://www.dazegraffiti.com/2010/08/pixfreeframe-1.html
Regards, Harrie
On Wed, Sep 14, 2011 at 1:28 PM, Matthias Kronlachner m.kronlachner@student.tugraz.at wrote: hi!
is it possible to output 2 images (gem_states) from one pix_ object? is there any example for something like this around? i'm working on an openni external in the moment that can output skeleton data and kinect video streams at the same time. it's working fine but i don't know how to output the depth and the rgb videostream at the same time. matthias _______________________________________________ GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
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
cheers
a. -- 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/14 Matthias Kronlachner m.kronlachner@student.tugraz.at
hi!
thanks for the answer, but that's not the thing i need. i need to output 2 different videostreams from one external i'm just programming (the kinect outputs one rgb and one depth video stream). but i'm not sure if the gem framework allows two gemstate outputs from one object.
greets matthias
Am Mittwoch, den 14.09.2011, 14:18 +0200 schrieb Harrie Hoogeveen:
Hello,
I am not sure if I got your question completely right, but you can put the pix_ output in a buffer: http://wiki.puredata.info/en/pix_buffer And read is as many times as you like. You can use an "t a b" to go though the buffer or fill it based on the frame rate, I found an example in the patch on this url: http://www.dazegraffiti.com/2010/08/pixfreeframe-1.html
Regards, Harrie
On Wed, Sep 14, 2011 at 1:28 PM, Matthias Kronlachner m.kronlachner@student.tugraz.at wrote: hi!
is it possible to output 2 images (gem_states) from one pix_ object? is there any example for something like this around? i'm working on an openni external in the moment that can output skeleton data and kinect video streams at the same time. it's working fine but i don't know how to output the depth and the rgb videostream at the same time. matthias _______________________________________________ GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
-----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
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
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...
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 http://lists.puredata.info/listinfo/gem-dev>
/ -----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 />/ http://lists.puredata.info/listinfo/gem-dev />/ /
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-11-15 23:51, Matthias Kronlachner wrote:
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...
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);
most of the code you show deals with how to make a 2nd *inlet* for gemstates, which is exemplified in the GemPixDualObject base clasee.
the complicated thing about having a 2nd *outlet* is of course to generate a valid GemCache (afair just creating a new one should be sufficient for most cases; you might want to copy things like the "dirty" flags over to the "main" m_cache after processing of the 2nd chain is done) and a valid GemState. and then generate a Pd-message containing those two.
there should be a GemOutlet class derived from RTE::Outlet, that handles most of those things for you. (at least the part with generating a valid Pd message from a given GemCache&GemState)
fgamsdr IOhannes