Yaw, Pitch, Roll in landscape
-
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.
Amoli.
All Replies
-
Friday, July 27, 2012 6:49 PMOwner
Try posting this in the Windows Phone forums here: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7serieshttp://rbrundritt.wordpress.com
- Proposed As Answer by Richard_BrundrittMicrosoft Employee, Owner Friday, July 27, 2012 6:49 PM
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Monday, July 30, 2012 5:27 PM

