如何处理 iPhone 相机数据并在其上叠加 3D 对象?
我正在尝试开发一个增强现实 iPhone 应用程序,在其中我将在实时摄像头前放置一个 3D 对象。
我需要在用户向后/向前移动时放大和缩小对象,并在用户走动时旋转 3D 模型。
有没有办法在 iPhone 上做到这一点?
I am trying to develop an Augmented Reality iPhone application in which I will place a 3D object in front of a live camera feed.
I need to zoom in and zoom out the object as the user moves backward/forward, and rotate the 3D model as the user walks around.
Is there a way to do this on the iPhone ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Benjamin Loulier 的开源 VRToolkit 应用程序只是这个。它会根据编码标签在屏幕上覆盖 3D 模型,并根据该标签在 iPhone 摄像头查看的区域中的移动来旋转和缩放模型。
它利用 ARToolkitPlus 库 进行标记识别和处理。
但是,请注意,该库是 GPL 许可的,因此您需要在 GPL 下发布在此基础上构建的任何应用程序的源代码。
The open source VRToolkit application by Benjamin Loulier does just this. It overlays a 3-D model onscreen in response to coded tags, rotating and scaling them in response to movement of this tag in the area viewed by the iPhone camera.
It leverages the ARToolkitPlus library to do the marker identification and processing.
However, be aware that this library is GPL-licensed, so you will need to release the source code of any application you build on this under the GPL.