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.
pd-extended 41.4 release on osx 10.6.2 im on BTW
Thanks! m
--- On Sat, 11/21/09, Martin Schied crinimal@gmx.net wrote:
From: Martin Schied crinimal@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgrimm@syr.edu Cc: "pd_list Listserve" pd-list@iem.at Date: Saturday, November 21, 2009, 1:18 PM 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
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
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 crinimal@gmx.net wrote:
From: Martin Schied crinimal@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgrimm@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
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
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 mgrimm@syr.edu | 315.378.2136 ________________________________________
--- On Sun, 11/22/09, Martin Schied crinimal@gmx.net wrote:
From: Martin Schied crinimal@gmx.net Subject: Re: [PD] pix_artoolkit example To: mgrimm@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
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