Skip to content
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

arkit in a navigation controller #4

Open
djgagnon opened this issue Dec 5, 2009 · 10 comments
Open

arkit in a navigation controller #4

djgagnon opened this issue Dec 5, 2009 · 10 comments

Comments

@djgagnon
Copy link

djgagnon commented Dec 5, 2009

I can add the ar kit to work if I add the ARGeoViewController to my app's window, but it only shows white if I add it to another view controller (to put it in a navigation controller).

Is this an artificat of the camera access I do I just need to learn more about UIViews and ViewControllers?

@zac
Copy link
Owner

zac commented Feb 1, 2010

I'll look into this and come up with some best practices for display.

@JaredCrawford
Copy link

There is a version of ARKit I wrote for iWVU that does this. Check out JaredCrawford/iWVU to see how I did it. I would commit it back, but I'm swamped right now.

@JaredCrawford
Copy link

The relevant commit is
http://github.com/JaredCrawford/iWVU/commit/c95e4c99151b84b6d670406aac72a98b3ff3895b

sorry about the other odd files in there. The main thing that was necessary was to remove the camera overlay.

@djgagnon
Copy link
Author

Fantastic, thanks. You are doing some great work!

@schneibe
Copy link

Hi, I'm running into the same problem and have some trouble to find the answer in your files... would that be possible to show me how to do it? thanks a lot!

@JaredCrawford
Copy link

ARKit is woefully out of date and probably not App Store compatible anymore. Starting with 4.0, Apple gives access to a camera overlay view controller in UIKit. I don't know what it's called off the top of my head, but I know that it's new in 4.0 so I would start there. Sorry if you've put a lot of work into ARKit, but I think it's been abandoned by all its previous users at this point.

@schneibe
Copy link

schneibe commented Dec 1, 2010

thanks for the answer! Actually I was just playing with it for a small project... I got it working on iOS 4 (if I add the ARGeoViewController to the app's window), but like djgagnon said it just shows a white screen if I use a navigation and view controller. So the problem probably doesn't have anything to do with iOS 4. Isn't there a quick fix for that? I just need it to work for a demo...

Alternatively, do you know other similar libraries for iOS 4?

Thanks!

@zac
Copy link
Owner

zac commented Dec 13, 2010

Actually JaredCrawford, the overlay view was available for AppStore sanctioned use in 3.1, which is what ARKit was designed for.

I haven't ever tried to make ARKit work in a navigation controller. I didn't realize others would try that! It probably stems from the face that under the hood it is using UIImagePickerController for the camera view. It's pretty picky about where it gets displayed.

Let us know if you figure anything out and I can update the code to work in all navigation situations.

@gerardp
Copy link

gerardp commented Jan 21, 2011

I have the same problem, i can´t integrate arkit in my app because i can´t make work in a navigation controller .

Zac can you make this change in the code?

There are others than cointinuos improving your code, but nobody is fixing the problem with the navigation controller :(
https://github.com/zac/iphonearkit/network

Thanks

@nielswh
Copy link

nielswh commented Nov 20, 2011

Check out the samples on this fork.

It's been added to a normal view now so it would not be a problem to adding it to a navigation controller.

https://github.com/nielswh/iPhone-AR-Toolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants