Log in or register to post comments

Object touch when marker not available

November 17, 2011 - 6:47am #1

Hi,
we are implementing AR, when marker get detected we are displaying the object, but when we remove the marker from the camera video feed, we want the object should remain on the screen, and user will be able to intract with the object. like rotating zooming etc..

how can we do this...???
any hints???

Thanks
Atik

Re: Object touch when marker not available

November 19, 2011 - 9:47am #2

In the renderFrame method you can write some logic for dealing with the case when no trackables are visible:

state.getNumActiveTrackables() == 0

Currently the model is only rendered if there is a trackable visible. You'll want to store the trackable pose each frame so that you can continue using it when tracking is lost.

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

- Kim

Log in or register to post comments