"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

Locking in a trackable's position?

I'm looking for the best way to go about using QCAR to initially detect the frame marker, render the object, but not update the position after the intial rendering. I've tried a few methods, such as only pulling the matrix44F from the trackable once,

if(!set){

  modelViewMatrix = QCAR::Tool::convertPose2GLMatrix(trackable->getPose());  

  set=true;

}

but that works for perhaps a fraction of a second before the model (I'm using just a simple plane with an image drawn to it) increases in size and is no longer visible. I'm guessing this is due to some modifications made to the model before it is rendered, such that it relies upon fresh values each call to the renderQCAR method, but I'm still stuck. I'm not too keen on just blindly commenting out OpenGL snippets, so I haven't much experimented there, but any help would be much appreciated.

Sorry for the lack of clarity in my first post, but thank you for the prompt response. Essentially, I'd like to have QCAR scanning until it first finds the frame marker. At the point of finding the marker, render accordingly, but from there leave the model as is on screen.

In a nutshell, I'm trying to pause the AR but leave the camera feed running. the pauseAR method within the Qutils locks up everything, I'm just wondering how to best achieve that.

Hi cshell

On the assumption that you are using the EAGLView.mm from say ImageTargets as a starting point..

The code in renderFrameQCAR() is where you need to look.

If you want the camera feed on you need the following: