"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Poses in ImageTargets example

Hi,

I am running the ImageTargets sample code and added a script in Unity to output what is the pose of the ARCamera and the Astronaut. What I get is that the marker pose is set as (0,0,0) at all times and that the camera pose is only defined once the marker is found and the camera pose is defined according to the marker, i.e. if the marker moves the camera pose moves accordingly. I would like that the first marker tracked in the scene would not define the world origin, but instead that the ARCamera pose is given according to the initial position that the device starts (as ARKit) or according to a specific marker, and in the same way, the detected marker pose is given according to the ARCamera. I think I have missed the documentation where this is explained. Can someone point me to it?

I believe that ARKit is also not being enabled in the ImageTargets sample code? How can I enable it?

My goal is to get information of the pose of the phone/camera and the pose of the tracked marker in the world coordinates.

Running Unity 2018.1.0f2 and building for iPhone 8

Hello araujokth,

The world center mode defaults to first target. What you're looking for is having the camera be the world center. This can be modified on the ARCamera or via the APIs.

araujokth

Fri, 05/18/2018 - 06:50

Thanks for the really quick reply and I got it to work by changing the settings in the ARCamera and the Vuforia Configuration!