ARToolKit | Mailing List Archive |
![]() |
From: | davide <info@d ...............> | Received: | Mar 1, 2006 |
To | artoolkit@h .................. | ||
Subject: | ARToolKitPlus images format | ||
Hi, I am a puredata user (www.puredata.info), I am trying to embed ARToolKitPlus into Gem (a pd graphical plugin). Here is what I've done so far: http://www.davidemorelli.it/dokuwiki/doku.php?id=ar:artoolkitplus I am having problems recognizing markers. I am sure Gem gives images to atkp in RGBA format but atkp won't find any marker. It is in the form of an array of unsigned chars (RGBARGBA....), is it ok? Is there any example code of using RGBA images? ...maybe I'm doing something really stupid... Thanks, Davide. |
From: | Chris McCormick <chris@m ...........> | Received: | Mar 1, 2006 |
To | davide <info@d ...............> | ||
Subject: | Re: ARToolKitPlus images format | ||
Hi Davide, Something else you could consider is using ARToolKit to get the image as well as doing the detection, and sending UDP packets with detected marker information to localhost to be received by Pd's [netreceive]. If you're interested in doing it that way check out the code here: http://mccormick.cx/dev/argraf/ The files in the root directory build a little program called 'arudp'. You could just add a semicolon to the packets sent in order to read them with [netreceive]. Good luck! Best, Chris. On Wed, Mar 01, 2006 at 12:41:53AM +0100, davide wrote: > Hi, > I am a puredata user (www.puredata.info), I am trying to embed > ARToolKitPlus into Gem (a pd graphical plugin). > > Here is what I've done so far: > http://www.davidemorelli.it/dokuwiki/doku.php?id=ar:artoolkitplus > > I am having problems recognizing markers. > > I am sure Gem gives images to atkp in RGBA format but atkp won't find > any marker. > It is in the form of an array of unsigned chars (RGBARGBA....), is it > ok? > > Is there any example code of using RGBA images? ...maybe I'm doing > something really stupid... > > Thanks, > Davide. > > ------------------- chris@m ........... http://mccormick.cx |
From: | "rodney" <rodney@a .....> | Received: | Mar 1, 2006 |
To | |||
Subject: | RE: ARToolKitPlus images format | ||
HI Davide, If you have an analog video mixer as a separate box. A really quick & dirty approach would be to use Chris's thing to send the transformation data via a socket to PD, then make your GEM scene with a blue or green background. By using an analog video mixer, you can take some of the processing load off your computer. The downside is that you need to use an analog camera and split the video with a distribution amp. Also, because there is zero latency in the compositing, you really notice the latency in the tracking :) Rod. Rodney Berry ATR Media Information Science Laboratories Kyoto Japan Mail: http://xinbox.com/rodberry?subject=response%20from%20signature%20address Homepage: http://www.mis.atr.jp/~rodney Ph: +81-774-95-1449 Fax: +81-774-95-1408 --------------------------------- -----Original Message----- From: owner-artoolkit@h .................. [mailto:owner-artoolkit@h ..................] On Behalf Of Chris McCormick Sent: Wednesday, March 01, 2006 11:23 AM To: davide Cc: artoolkit@h .................. Subject: Re: ARToolKitPlus images format Hi Davide, Something else you could consider is using ARToolKit to get the image as well as doing the detection, and sending UDP packets with detected marker information to localhost to be received by Pd's [netreceive]. If you're interested in doing it that way check out the code here: http://mccormick.cx/dev/argraf/ The files in the root directory build a little program called 'arudp'. You could just add a semicolon to the packets sent in order to read them with [netreceive]. Good luck! Best, Chris. On Wed, Mar 01, 2006 at 12:41:53AM +0100, davide wrote: > Hi, > I am a puredata user (www.puredata.info), I am trying to embed > ARToolKitPlus into Gem (a pd graphical plugin). > > Here is what I've done so far: > http://www.davidemorelli.it/dokuwiki/doku.php?id=ar:artoolkitplus > > I am having problems recognizing markers. > > I am sure Gem gives images to atkp in RGBA format but atkp won't find > any marker. > It is in the form of an array of unsigned chars (RGBARGBA....), is it > ok? > > Is there any example code of using RGBA images? ...maybe I'm doing > something really stupid... > > Thanks, > Davide. > > ------------------- chris@m ........... http://mccormick.cx |
From: | Daniel Wagner <daniel@i ...............> | Received: | Mar 1, 2006 |
To | artoolkit@h .................. | ||
Subject: | Re: ARToolKitPlus images format | ||
davide wrote: >Is there any example code of using RGBA images? ...maybe I'm doing >something really stupid... > > hi Davide, the RGBA support in ARToolKitPlus is basically the same as in ARToolKit. i just confirmed that it works fine doing this with the simple example that come with ARToolKitPlus 2.0.1: - open image_320_240_8_marker_id_simple_nr321.png in Photoshop - add another channel - save as RAW named image_320_240_32_marker_id_simple_nr031.raw - make sure that all 4 channels were saved, filesize should 307.200 bytes - im main.cpp: - change bpp from 1 to 4 - change image_320_240_8_marker_id_simple_nr031.raw to image_320_240_32_marker_id_simple_nr031.raw - change PIXEL_FORMAT_LUM to PIXEL_FORMAT_RGBA that's it... Daniel |