使用增强现实映射 GPS 点
我正在尝试制作一个 Windows Phone 应用程序,使用增强现实在相机上显示 GPS 点。我一直在网上寻找教程,但找不到任何解释如何操作的地方。我想知道是否有人知道任何好的教程来解释 AR 与 GPS 的结合,或者是否有人可以给我任何关于从哪里开始的提示(我不希望有详细的解释或任何东西)。即使是关于如何使用 Android 进行操作的教程也可以作为一个开始。
I'm trying to make a Windows Phone app that shows GPS points on the camera using Augmented Reality. I've been looking for tutorials online but I can't find any anywhere that explain how to do it. I was wondering if anybody knew of any good tutorials that explain combining AR with GPS, or if anybody could give me any tips on where to begin (I don't expect a detailed explanation or anything). Even a tutorial on how to do it with Android would be a start.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 Codeplex 上的“地理增强现实工具包”。它为您抽象了几乎所有复杂的任务,您只需添加一些点及其坐标以及要显示的内容,其他所有内容都只需几行代码即可完成。
http://gart.codeplex.com/
Take a look at the "Geo Augmented Reality Toolkit" on Codeplex. It abstracts nearly all complex tasks for you, you just have to add some points with their coordinates and what to display and everything else works with a couple lines of code.
http://gart.codeplex.com/
使用(这很容易,至少在 Android 上)和最近的(这取决于实现)GPS 标记的相对定位(显然应该从某个地方加载这些标记)了解设备当前所在的位置。
磁力计应该告诉您您面对设备的位置,从而为您提供方位(例如 180° = 方位向南)。通过这种方式,您可以计算要显示哪些标记的视锥。
你只需要在相机图像上画一些东西;)
Knowing where the device is currently located using (which is quite easy, at least on Android) and the relative positioning of closest (this is up to implementation) GPS marks (these should be loaded from somewhere obviously).
Magnetometer should give you where you're facing the device, which gives you the bearing (e.g. 180º = bearing south). This way you can calculate a vision cone of which markers you want to show.
You only need to draw stuff over the camera image ;)
我描述了一种从了解 GPS 和方向以及某些兴趣点的 GPS 到了解这些点在屏幕上的位置的方法:https://stackoverflow.com/a/8898301/312007
I've described one approach to go from knowing your GPS and orientation, and the GPS of some points of interest to knowing where on screen those points should be here: https://stackoverflow.com/a/8898301/312007