DanijelHuis / HDAugmentedReality

Augmented Reality component for iOS, written in Swift.
MIT License
480 stars 97 forks source link

All Annotations are on the ground #43

Closed imclean closed 7 years ago

imclean commented 7 years ago

Hi,

Does this still work? When I load the ARViewController, all the AR Annotations are only seen when I face the camera at the floor. Running Xcode 8, iOS10

jacogasp commented 7 years ago

Yes the library works perfectly and it's well updated. Did you try the example project?

Tested on Xcode 9 iOS 11

DanijelHuis commented 7 years ago

Did you set initial coordinate in ViewController.swift (marked as FIXME)? What are pitch values when you hold your phone normally? Pitch is shown on bottom white toolbar.

imclean commented 7 years ago

No, I don't have any FIXME's in the code, I tried the example and it works ok, but I am using my own locations. There is no Pitch shown on the toolbar, only Heading which looks normal.

imclean commented 7 years ago

Pitch Angle is 1.6 when holding Vertical

imclean commented 7 years ago

Whereas in the example, its 0.04

DanijelHuis commented 7 years ago

I have no idea, example code simply generates locations around you, so it should work with your own locations too. If you have some example project you can send it to me and I'll have a look at it when I get back from work.

imclean commented 7 years ago

It's ok, it was a conversion issue for Swift, M_PI_2 is deprecated and when it converted it, was changed to Double.pi instead of Double.pi/2