Friday, July 27, 2012 5:50 AMHi all,
I am implementing augmented reality in windows phone.
I have extended GART (using motion APIs) for my project.
I have a radar on the top left corner of my page, showing the place locations in 2d space, as per their world location.
As user moves on his y axis, this radar circle rotates in circular motion as per the moved angle. This calculation is based on the yaw of the motion reading of attitude.
This works well in portrait. But when it comes to landscape, the yaw does not give the required value.
Even when the device is rotated on its z axis, yaw changes drastically and my calculations fail in landscape.
How can we get the user's viewing direction in landscape mode, no matter how the device is been held (slightly tilted with respect to x or z axis).
I just want to know the direction (in degrees - 0 to 360) where user is looking at.
Thanks in advance.
Friday, July 27, 2012 6:49 PMOwnerTry posting this in the Windows Phone forums here: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series