Log in or register to post comments

Close and reOpen the AR View

September 6, 2011 - 3:43am #1

Hi all,

I'm currently trying to adapt my Android code to iOS. In my app, I launch the AR module from inside a standard iOS viewController (I mean that the camera view is not directly visible when you launch the app. AR is ony part of the app.)

There is no problem regarding the first launch, however, I cannot manage to close the AR part and re-open it.

With Android, I used to finish the ARActivity and then create a new one. However this solution is not suitable on iOS. I tried to call the "onPause" method while closing the AR module and call the "onResume" method while reopening it (means the viewController is not released), but then I've got a black screen where only the 3D is displayed (no camera feed).

Any idea to fix it? I think that a solution which allows to release the viewController and the openGL view should be far better.

Many thanks!

Hidden

Re: Close and reOpen the AR View

November 1, 2011 - 3:07am #4

Me too! After resuming, just my texture work well on black screen. Camera don't show on screen anymore

Re: Close and reOpen the AR View

September 8, 2011 - 1:44am #3

Hi xijunfei,

Thank you for your answer.

I don't think that it's a traker issue because I still able to track the markers and see the 3D moving as I move the phone. The problem is that I cannot see the video feed.

Don't know if I'm clear...

Hidden

Re: Close and reOpen the AR View

September 8, 2011 - 12:18am #2

The problem may caused by traker load
you can not running the view second time because of you had already load the traker and it can be load only once in one app lifecycle.
so check wether you have load the traker before you load it
the code may be like this
if(QCAR::Traker::getIncetence.getnumoftrakeable==0)
{
load traker;
}

Log in or register to post comments