-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with camera #3
Comments
Hi Maxime, I have a couple of followup question for you: What version of the code are you running? What branch are you using? What version of the iOS are you building? It looks like you are trying to build against a 3.X iOS environment. The SGAREnvironment is slowly lacking support in the 3.X iOS world. I would try to build your application with 4.X iOS. Derek |
Hi Derek. Thank's to reply. I'm using master branch, with SGAREnvironment v0.3.8. My Base SDK an iPhone OS deployment target are for iOS 4.0, and I use an iPhone with iOS 4.0. Maxime |
Since you are building for 4.0, you should have to use the SGARViewController as a UINavigationController. The C preprocessor should be setting SGARViewController as a subclass of UIViewController. The SGARViewController is just a container for the SGARView. If you want to work with just the AR view, I would suggest alloc/init a SGARView object and work with it from there. I also noticed that the SGARView isn't releasing its capture session when the view is deallocated. I've committed a patch that fixes the issue. |
I downloaded the last version commited, re-built it and I tried to use SGARViewController as a navigationController, It doesn't work better. When I release an instance of a ARViewController and alloc/init a new one, the second init lasts long, and the background of camera shows blank screen rather than reality. I would like to know if you tried to use your framework after a clic on a button for exemple, rather than alloc/init juste once and see it on UIWindow, to check the behavior of the app (open and close augmented reality) ? Thanks for your help. Maxime |
Hello, (sorry for my english, i'm french)
I'm using the framework to integrate Augmented Reality in one of my projects, but i've got several problems, especially with camera overlay (or is it a memory management problem ?). I explain quickly :
First, i can't add the view of a SGARViewController object on another view than a UIWindow object (However, I can add the view with presentModalViewController: or pushViewController: methods)
Then, the real problem is :
I alloc-init a SGARViewController object, and display it with presentModalViewController (I don't need navigation bar, so I don't use initWithRootViewController: method). It's ok. But after I dismiss it, and when I release the SGARViewController object (back to a previous view in my app), and I alloc-init a new SGARViewController object then display it with presentModalViewController, I see the "augmented", but I can't see the "reality" : the SGARViewController view shows radar and annotations, but camera show a blank screen. With Instruments, I can see (after I release SGARViewController object) there is a SGARView object still living. I don't know if it's linked to my problem, or if i just missed doing anything.
What about this ?
Best regards,
Maxime
The text was updated successfully, but these errors were encountered: