Re: [PD] pix_artoolkit example
mark edward grimm wrote: Hello, Been a while since I messed around with pix_artoolkit. A student of mine is really interested and I wanted to give her an example but I don't have time to write a patch Does anyone have an example that replaces the marker with a 3d model and tracking it across the gem win? Wow, that's good news - i never figured out how to get it recognize a marker. What camera did you use and on which OS? Would you mind posting your working patch to the list? I made a patch for a presentation of a wiimote tracking system for my master thesis. It shows a model wich reacts to movements of a 4-LED marker, pretty much what you were asking for and could be adapted easily. cheers Martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
hey this is awesome thanks i will try this out when I get the chance to do so ... probably tomorrow morn.. Cheers! mark --- On Sat, 11/21/09, Martin Schied crini...@gmx.net wrote: From: Martin Schied crini...@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgr...@syr.edu Cc: pd_list Listserve pd-list@iem.at Date: Saturday, November 21, 2009, 8:39 PM mark edward grimm wrote: attached is what i found in my archive from last year. sorry there is some pdmtl code in there it looks like. otherwise the camera_para.dat and patt.hiro have to sit at / looks like there was some cube code in there too... i never got a chance to get it going though. hmm. no luck today. tried an eyetoy camera @ 640x480 using your patch, the freshly compiled pix_artoolkit external and a hiro pattern. unfortunately i didn't use the most recent Gem from svn (I'll do so when I'm awake again). I attached a patch showing the use of a transformation matrix which you'll get from most tracking systems. I'm not quite sure which format it'll be from artoolkit, but I'm sure its not compatible with mine out of the box. also units migt be some factors too big (marker size is given in millimeters, so i assume the translation will also be set in mm. I saw there's an option to use quaternion output for rotations (I'm not very familiar with that) or normal output which is is probably a 3d vector for translation and a rotation matrix. cheers martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
you can try pd_opencv also : http://www.hangar.org/wikis/lab/lib ah yes. might this be in pd-extended' soon? or is it already maybe? intended? freshmen art students would need this for a quick out-of-the-box solution... at least in my class... :) mark --- On Tue, 11/24/09, ydego...@gmail.com ydego...@gmail.com wrote: From: ydego...@gmail.com ydego...@gmail.com Subject: Re: [PD] pix_artoolkit example To: Martin Schied crini...@gmx.net Cc: mgr...@syr.edu, pd_list Listserve pd-list@iem.at Date: Tuesday, November 24, 2009, 5:45 AM Martin Schied wrote: mark edward grimm wrote: Hello, Been a while since I messed around with pix_artoolkit. A student of mine is really interested and I wanted to give her an example but I don't have time to write a patch Does anyone have an example that replaces the marker with a 3d model and tracking it across the gem win? Wow, that's good news - i never figured out how to get it recognize a marker. What camera did you use and on which OS? Would you mind posting your working patch to the list? I made a patch for a presentation of a wiimote tracking system for my master thesis. It shows a model wich reacts to movements of a 4-LED marker, pretty much what you were asking for and could be adapted easily. cheers Martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list you can try pd_opencv also : http://www.hangar.org/wikis/lab/lib/exe/detail.php?id=start%3Apuredata_opencvcache=cachemedia=start:pdp_opencv_pgh_compare.png sevy ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
got it thanks! I will take a look this afternoon and get back to you... Cheers mark --- On Mon, 11/23/09, Martin Schied crini...@gmx.net wrote: From: Martin Schied crini...@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgr...@syr.edu Date: Monday, November 23, 2009, 2:52 PM hi, mark I did some quick changes which should let you display something. the gemwin is now 10 times bigger than usual, and the far clipping plane beyond which everything disappears is set to 3000, you might want to adjust that. to me it seems like it outputs millimeters as unit - but maybe it's no sensible unit at all. the size of the cube 40 is actually a 80x 80x80 cube which matches the default marker size. if you plan to use artoolkit as an augmented reality device you'll have to measure your isight camera somehow and adjust your virtual camera in the gemwin to match your real camera's parameters. it's also possible to do it without measurements, but it can be an endless gefrickel (I realized that at a point and then did the measurements which made everything more comfortable for my tracking system). it's not that difficult, but my experience was that I had to carefully note everything and make some drawings, showing the relations between the real camera's angles and and the virtual camera. maybe check some computer graphics books for details on that. if they are to mathematical - throw it away and get another one, this stuff can also be explained in an easy to understand manner... cheers martin hey martin... off list heres some of the data im getting when the marker gets recognized... thanks! mark ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
Martin Schied wrote: mark edward grimm wrote: Hello, Been a while since I messed around with pix_artoolkit. A student of mine is really interested and I wanted to give her an example but I don't have time to write a patch Does anyone have an example that replaces the marker with a 3d model and tracking it across the gem win? Wow, that's good news - i never figured out how to get it recognize a marker. What camera did you use and on which OS? Would you mind posting your working patch to the list? I made a patch for a presentation of a wiimote tracking system for my master thesis. It shows a model wich reacts to movements of a 4-LED marker, pretty much what you were asking for and could be adapted easily. cheers Martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list you can try pd_opencv also : http://www.hangar.org/wikis/lab/lib/exe/detail.php?id=start%3Apuredata_opencvcache=cachemedia=start:pdp_opencv_pgh_compare.png sevy ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
mark edward grimm wrote: on extended 0.41.4 so im assuming something was fixed (obviously :) maybe from out of the last discussion from last year? i cant find thread because it seems like the list is down again... your on linux no? hi, yes, I'm on linux (ubuntu intrepid). I just downloaded the 0.42.5 intrepid autobuild but artoolkit-support isn't compiled in there. Seems like only mac (and windows?) versions have artoolkit support compiled in. I was using pd-extended 0.41.1 and the 0.92.1 gem release from sourceforge yesterday. later today I noticed that I was in error again when writing that pix_artoolkit isn't contained in gem-svn, it's there, but in an extra folder and I didn't manage to compile it... hoping the list comes back soon to give some more answers... cheers Martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_artoolkit example
hi martin, sorry i was wrong in stating that i was using: pd-extended 41.4 release on osx 10.6.2 I am actually using the latest autobuild off hans site so: Pd version 0.42.5-extended GEM: ver: 0.92.1 with this version of extended i get: [pix_artoolkit]: ARToolKit support by Shigeyuki Hirai when loading pix_artoolkit rather than: error: [pix_artoolkit]: compiled without ARToolKit support! on extended 0.41.4 so im assuming something was fixed (obviously :) maybe from out of the last discussion from last year? i cant find thread because it seems like the list is down again... your on linux no? its right outlet), I'd be interested in what camera, ah... built in isight.. i left the printed hiro test pattern at the uni so ill give you some data printouts tomorrow morn when i get in... I will take a look at your new patch you sent too! Thanks! mark mark edward grimm | m.f.a | ed.m syracuse u. | vpa foundations | timearts adjunct | new media consultant megrimm.net | socialmediagroup.org mgr...@syr.edu | 315.378.2136 --- On Sun, 11/22/09, Martin Schied crini...@gmx.net wrote: From: Martin Schied crini...@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgr...@syr.edu Cc: pd_list Listserve pd-list@iem.at Date: Sunday, November 22, 2009, 4:42 PM hi again. now I compiled the current gem release 0.92.1 from sourceforge (I could not find pix_artoolkit in svn) it contains some changes compared to my older version of pix_artoolkit source code, but unfortunately again no markers are recognized with my setup (pix_artoolkit does't output anything on its right outlet.) I also had a look at the cube part of the help patch you sent me and also the sources of pix_artoolkit. It seems it outputs 7 values which are: the translation (position) as a vector x y z, an other vector 'x y z' which is the direction of the detected rotation axis (the rotation normal) and a rotation angle around this axis. so the draw cube part of your help patch should work just fine if everything else (marker detection, marker recognition) works. maybe the size of the cube (40) is too big to see anything or the cube is only drawn behind the video. i changed that, see attachment. when i was working with tracking data in general I scaled everything to usual gem units, so that for example a desired range of 0 to 40 cm went from 0 to 4. so it fits in the usual gemwin for quick tests. I have no idea which units the external will output - choose a smaller size for the marker than 80, until you can see something useful. my assumptions about the output of pix_artoolkit from yesterday are completely wrong (there's no matrix output) - so the patch I sent you before is pretty useless - sorry for that. if pix_artoolkit is working for you (outputting anything on its right outlet), I'd be interested in what camera, resolution, version of Gem you are using. Some output of the external would also help me improving the help patch - if necessary. cheers martin ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list