"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
Find Trackable (x,y) Position on Screen ?
By ultrah
on Wed, 06/20/2012 - 17:07
Hi,
is there an way to get a Trackables position on the device screen as an (x,y)-touple ?
ok, maybe I should eloborate a bit...
when a frame is rendered and a trackable is detected I can its position using:
trackable->getPose());
which gets me an undocumented '3x4 QCAR pose matrix'.
and can transform it to an (also undocumented)' QCAR::Matrix44F':
QCAR::Matrix44F modelViewMatrix =
ok, so the position vector seems to be stored in [12] to [14], but x and y seem to be relative to z and z is not linear.
Is there a util to normalize x and y ?
Or, you can use our Tool:: projectPoint method to get the point into camera space, and then use the code snippets in this thread to take the camera space point to screen space:
http://ar.qualcomm.at/node/2000570
Note that from the pose's perspective (0, 0, 0) is th
thank you for your answer ksiva.
first, my knowledge in openGL is very limited, but I think the standart openGL transformations are not available in ES 2.0:
"OpenGL ES 2.0 does not support the fixed function transformation and fragment pipeline of Op
sure, the code I posted above works just fine.
xyPoint.data contains the coordinates. I think if you modify QCAR::Vec3F(0,0,0) you could somehow get the target's corners
I could post some more code that tranfers the data to java if you want.
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?
Re: Find Trackable (x,y) Position on Screen ?