By Khaled1989
on Tue, 12/23/2014 - 12:36
Hi,
I use Vuforia ImageTarget Sample 3.0.9 on iOS, We replaced OpenGL 3d object, by displaying image 2d related to terget's content. But image doesn't make tracking with target like opengl 3d object.
I need to make this tracking with image too, I read this articles:
https://developer.vuforia.com/resources/dev-guide/positioning-3d-content
https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained
https://developer.vuforia.com/resources/dev-guide/distance-target
But still couldn't make image track the target. That for Position/Scale/Distance ... etc.
How can we do that ? Is there any way to do that ?
Than you,
Khaled
Track Target position and distance in ImageTarget
Thank you for reply, this guide is interested, but I have an error in:
QCAR::Vec2F targetSize = ((QCAR::ImageTarget *) trackable)->getSize();
it's:
Track Target position and distance in ImageTarget
Thank you, it works,
I see Black rectangle with size = target size in true position and distance from target.
But, my image (not openGL draw, normal image added to screen when ddetect this target) has no changes.
Track Target position and distance in ImageTarget
But, my image (not openGL draw, normal image added to screen when ddetect this target
Track Target position and distance in ImageTarget
Thank you for reply.
I actually searched in Vuforia code about get image texture, I found something like that but in Cloud of Vuforia 2.9.
But I work now on Vuforia 3.0.9, and ImageTarget sample works on drawing 3d object by openGL,
Track Target position and distance in ImageTarget
Sure, you can start by looking at the loadTextures() method in ImageTargets.java in the VuforiaSamples sample project; you then need to look at the code i ImageTargetsRenderer.java, where you can find the code snippets that map the texture images to a set of Open
Track Target position and distance in ImageTarget
I'm working on iOS Vuforia 3.0.9 version, also I searched in whole project and I didn't find loadTextures() in original sampl
Track Target position and distance in ImageTarget
On iOS you can look at the ImageTargetsEAGLView.mm file (see the initWithFrame method in particular).
Track Target position and distance in ImageTarget
Thank you for reply,
Actually i found the code but it works Great on Only "Vuforia images" which are:
Track Target position and distance in ImageTarget
Than you very much it's working now :)
Track Target position and distance in ImageTarget
Glad to hear this ;-)