iPhone 中的增强现实可以显示 3D 模型

发布于 2024-11-03 13:28:26 字数 961 浏览 4 评论 0原文

我正在开发一个应用程序,用户可以使用 iPhone 相机和以下 AR 工具包库根据坐标“收集”宝藏:

https://github.com/nielswh/iPhone-AR-Toolkit

在演示项目中,您可以看到连接到坐标的城市,例如伦敦、巴黎等。

我想添加几个连接到坐标的宝藏,当你靠近宝藏时,假设 20 米,用户应该看到 3D 格式的宝藏。

因此,如果用户要收集微波并靠近 20 米,则微波应作为叠加层显示在相机上。然后相机上会出现一个名为“收集宝藏”的叠加按钮,然后宝藏就会被收集。

它不一定是 3D 对象,只是图像。

我想知道,这可能吗?


编辑 #1

我尝试过 Wikitude(不支持 iPhone 的 3d 模型)、Junaio(支持 3d 模型,但无法创建独立的应用程序)和 Layar(与 Junaio 相同)。

有谁知道其他一些 AR 工具包,它支持将 3D 模型添加到屏幕上,并且可以成为应用程序商店中的独立应用程序?


编辑 #2

我刚刚注意到 Layar 确实通过其 Layar Player SDK 支持独立应用程序。他们还支持 3d 模型,我会尝试一下是否很快就能实现。


编辑 #3

添加 3D 模型真是太神奇了!但是Layar Player SDK不允许我们自定义界面,这对我们来说是一个很大的问题...我现在正在这个线程中寻找另一个AR浏览器/工具包/api:

增强现实中的寻宝

I am developing an application in which the user can "collect" treasures based on coordinates using the iPhone camera and the following AR toolkit library:

https://github.com/nielswh/iPhone-AR-Toolkit

In the demo project you can see cities connected to coordinates like London, Paris and so on.

I want to add a couple of treasures connected to coordinates, when you come close to the treasure, let's say 20 meters the user should see the treasure in 3d format.

So if the user are going to collect micro waves and come closer than 20 meters, the micro wave should appear on the camera as an overlay. Then a button should appear as an overlay on the camera named "collect treasure" and then the treasure is collected.

It doesn't necessarily have to be 3d objects, just images.

I wonder, is this possible?


Edit #1

I have played around with Wikitude (which don't support 3d models for iPhone), Junaio (which supports 3d models but you can't create a stand-a-lone app) and Layar (the same as Junaio).

Does anybody know some other AR Toolkits whichs supports adding 3d models to the screen and that can be a stand-a-lone app on the app store?


Edit #2

I just noticed that Layar accually has support for a standalone app with their Layar Player SDK. They also has support for 3d models, I will try if this works very soon.


Edit #3

Adding 3d models worked like a charm! But Layar Player SDK doesn't allow us to customize the interface, which is a huge problem for us... I'm now looking for another AR browser/toolkit/api in this thread:

Treasure hunt in Augmented Reality

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

权谋诡计 2024-11-10 13:28:26

是的,这是可能的。创建 AR 应用程序本身需要一些高中数学 (atan)、一些使用 Quartz 的 2D 旋转以及一些技巧,例如执行 低通滤波器来自加速度计的信号以避免颤抖。使用纬度/经度作为笛卡尔坐标而不是球面三角坐标,额外的精度不值得。您可以接收覆盖层上的触摸、带有 2D 旋转的假 3D,或呈现 opengl 覆盖。

Yes it's possible. Creating the AR application itself requires a bit of high school math (atan), some 2D rotations with Quartz, and some trickery, like doing a low-pass filter to the signal from accelerometers to avoid trembling. Work with lat/long as cartesian coordinates instead spherical trigonometry, the extra precission is not worth it. You can receive touches on your overlay, fake 3D with 2D rotations, or present a opengl overlay.

没有心的人 2024-11-10 13:28:26

是的,这是可能的。尽管如果您使用该框架,您将有很多事情要做。您可以尝试 Layar,它已经具有 Layar 播放器,可以像在应用程序中包含 YouTube 视频一样使用它,但是是在 AR 范例中。 Layar 本身提供接近触发器和 3D 对象,无需您进行任何开发工作!我会尝试一下。

Yes, it's possible. Although you'll have lots of stuff to do if you use that framework. You can try Layar, that already has the Layar player to use it as if you included a youtube video inside your app, but in the AR paradigm. Layar natively offers proximity triggers and 3D objects without any development effort from your side! I would give it a try.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文