iphonearkit icon indicating copy to clipboard operation
iphonearkit copied to clipboard

Use arkit in landscape mode

Open Ezor opened this issue 16 years ago • 3 comments

Hello

I have tried to modify the code to use arkit in landscape mode but it didn't work. Can you provide some code (maybe by adding some comments in the source code ?) to explain how to use arkit in landscape mode.

Anyway thanks for this usefull project.

Julien "Ezor"

Ezor avatar Sep 25 '09 11:09 Ezor

  • (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight); }

delagroove avatar Nov 30 '09 18:11 delagroove

I don't think this alone will work... a lot more needs to be done to support horizontal orientation. Try using this fork instead: http://github.com/nielswh/iPhone-AR-Toolkit/commit/54dd015bd6a5a34e2e5152667e855ed01a133047 I haven't tried it, but it should work.

JustinKent avatar Jan 04 '10 17:01 JustinKent

I've added this feature to my fork. It was a bit more work that just setting the orientation. I had to also adjust the compass setting and other methods to make it work. Check out https://github.com/nielswh/iPhone-AR-Toolkit for more information.

nielswh avatar Nov 20 '11 03:11 nielswh