PDA

View Full Version : Multi .dat file with only one marker


jazztpt
September 16th, 2005, 07:20 PM
I've been using the multiple marker system for a while, and it works fine. However, I now need it to be able to recognize either a single marker or multiple markers. I have two .dat files, one with info for multiple markers and one with info for just one marker. It loads both files fine, and recognizes the multiple marker configuration fine, but won't recognize the single marker. It will work with two multiple marker config files, so it's not a problem with having two different configs (also, if I use only one config file that contains only one marker, it won't work).

In arMultiGetTransMat it detects the marker, matches it with the pattern id, has a high confidence factor (cf = .94), but then returns an error that is too large (err > THRESH_1), thus returning -1 and swapping buffers without drawing. I've walked through arGetTransMat, which calls arGetTransMat3, which calls arGetTransMatSub, which calls arModifyMatrix, and each one returns an error that is too large to the previous one.

Is there a way to do this? I'd really like to use the multiple marker config object with n=1 if it's possible.

Thanks!