List
Convert Pose of ImageTracker Object to InstantTracker
Posted Date: 2018-09-26 9:51     Edited Date: 2018-09-27 7:18     Writer: inactive

Development Details:

1. SDK Version: 4.0
2. Development Environment: Native Android
3. Tracker/Scanner: Combination ImageTracker and InstantTracker
4. License Type: Free
 

Hi, i am currently trying to make the ImageTracker more stable, because it disappears after not seeing it and also sometimes shakes around. For this i want to use the ImageTracker at the start of the application and then after detection switch to the Instant Tracker, which works so far. 

The Problem is, that i need to put the AR-Object (renderedCube) at the Instant Tracker at the same spot where the cube was with the ImageTracker, but the PoseMatrix from the Instant Tracker doesn't look like a proper Transformation Matrix.

poseMatrix_ImageTracker:
    | +0,077955 ; -0,775417 ; +0,626619 ; +0,029723 |
    | +0,988462 ; +0,141991 ; +0,052737 ; +0,011560 |
    | -0,129867 ; +0,615278 ; +0,777539 ; +0,279821 |
    | +0,000000 ; +0,000000 ; +0,000000 ; +1,000000 |
poseMatrix_InstantTracker:
    | +0,014648 ; +0,797230 ; +0,603498 ; +0,000000 |
    | -0,999893 ; +0,011679 ; +0,008841 ; +0,000000 |
    | +0,000000 ; -0,603563 ; +0,797316 ; +1,254167 |
    | +0,000000 ; +0,000000 ; +0,000000 ; +0,000000 |    (<= This line makes no sense to me)

How can i convert the position of the image to the Instant Tracker?

Posted Date: 2018-09-27 3:41     Edited Date: 2018-09-27 3:42     Writer: kscho

Hello.

Thanks for your interest in MAXST AR SDK.

It is difficult to convert a pose of image tracker into a pose of instant tracker.

I'd like to recommend to use the extended tracking mode of image tracker.

The extended tracking works like image tracker at first and works like instant tracker when the target distance is far.

The references are like below.

1) unity : https://developer.maxst.com/MD/doc/4_0_x/unity/ex/image#change-tracking-mode

2) android : https://developer.maxst.com/MD/doc/4_0_x/andr/ex/image#change-tracking-mode

3) ios : https://developer.maxst.com/MD/doc/4_0_x/ios/swift/metal/image#change-tracking-mode

Thanks.

 

John,

MAXST Support Team

Posted Date: 2018-09-27 6:10     Edited Date: 2018-09-27 6:10     Writer: inactive

Thank you for the quick answer, but i want to be able to see the AR Object even though i may dont see the tracked image, which is (at least with the samples) working good with the instant tracker.

Also with extended tracking the perspective gets messed up once i dont see the tracked image properly (using the lego image) and doesnt reset after the image is back in view again.

Posted Date: 2018-09-27 6:50     Edited Date: 2018-09-27 6:50     Writer: kscho

You mean that 0, the last value of a pose matrix, is something wrong, am I right?

If I am right, I also think something's wrong, but in my test, I always catch 1.

Could you check whether you print out the last value of instant tracker correctly?

Thanks.

 

John,

MAXST Support Team

Posted Date: 2018-09-27 7:02     Edited Date: 2018-09-27 7:02     Writer: inactive

The weird thing is, that if i manually change the last value to an 1, it shows up correctly in the log but on screen i cant see the cube / i only see a plane diagonal to my camera that looks like its wrong.

Posted Date: 2018-09-27 7:18     Edited Date: 2018-09-27 7:18     Writer: kscho

Yes, weird.

I'd like to reproduce your problem in my desk.

So, if you don't mind, could you send us your codes via kscho@maxst.com ?

 

John,

MAXST Support Team