"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

2d touch detection

Hi , I have been able to augment button on a marker image . I want to perform some action on button click. I have implemented tap gesture on the camera screen. I am fetching the 2d touch coordinates from the screen and converting them to 3d coordinates with this vuforia Api.

void projectScreenPointToPlane(Vuforia::Vec2F point, Vuforia::Vec3F planeCenter, Vuforia::Vec3F planeNormal,                                Vuforia::Vec3F &intersection, Vuforia::Vec3F &lineStart, Vuforia::Vec3F &lineEnd);

 

But the  2d coordinates never matches with 3d coordinates of Augmented Buttons. I have attached the reference image on this link

https://developer.vuforia.com/sites/default/files/sample.png

Could someone help me on how to detect touch on the augmented button.

 

Thanks

 

 

Attachment