如何在 iOS(增强现实应用程序)中的实时预览相机上制作 OpenGL ES 的屏幕截图?

发布于 2024-11-27 04:42:24 字数 600 浏览 2 评论 0原文

我是 Objective-C 和 iOS 编程的初学者。我花了一个月的时间来了解如何使用 AvFoundation 在实时相机预览之上使用 OpenGL ES(版本 1.1)显示 3D 模型。我正在 iPad 上做一种增强现实应用程序。我处理输入帧并通过相机预览实时显示 3D 对象叠加。这些都很好,因为有很多关于这些事情的网站和教程(也感谢这个网站)。

现在,我想截取整个屏幕(以相机预览为背景的模型)作为图像并显示在下一个屏幕中。我在这里找到了一个非常好的演示,http: //cocoacoderblog.com/2011/03/30/screenshots-a-legal-way-to-get-screenshots/。他做了我想做的一切。但是,正如我之前所说,我很初学者,如果没有详细解释,就无法理解整个项目。所以,我被困了一段时间,因为我不知道如何实现这一点。

有谁知道这个主题中的任何好的教程或任何类型的来源,或者有任何建议我应该了解更多信息才能进行此屏幕捕获?这将对我继续前进有很大帮助。

先感谢您。

I am a very beginner in Objective-C and iOS programming. I spent a month to find out how to show a 3D model using OpenGL ES (version 1.1) on top of the live camera preview by using AvFoundation. I am doing a kind of augmented reality application on iPad. I process the input frames and show 3D object overlay with the camera preview in realtime. These was fine because there are so many site and tutorial about these things (Thanks to this website as well).

Now, I want to make a screen capture of the whole screen (the model with camera preview as the background) as the image and show in the next screen. I found a really good demonstration here, http://cocoacoderblog.com/2011/03/30/screenshots-a-legal-way-to-get-screenshots/. He did everything I want to do. But, as I said before, I am so beginner and don't understand the whole project without explanation in details. So, I'm stuck for a while because I don't know how to implement this.

Does anybody know any of good tutorial or any kind of source in this topic or any suggestion that I should learn more in order to do this screen capture? This will help me a lot to moving on.

Thank you in advance.

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

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

发布评论

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

评论(2

戴着白色围巾的女孩 2024-12-04 04:42:24

我目前正在尝试解决同样的问题,以允许用户拍摄增强现实应用程序的屏幕截图。 (我们使用插入 Unity 3D 的高通 AR SDK 来制作我们的 AR 应用程序,这使我不必学习如何以编程方式渲染 OpenGL 模型)

对于我的解决方案,我首先考虑实现此处找到的第二个答案:如何以编程方式截取屏幕截图

除非我必须重新设计CocoaCoder 的屏幕截图应用程序中找到的“组合屏幕截图”方法。

当我弄清楚哪个效果更好时,我会回来查看。

I'm currently attempting to solve this same problem to allow a user to take a screenshot of an Augmented Reality app. (We use Qualcomm's AR SDK plugged into Unity 3D to make our AR apps, which saved me from ever having to learn how to programmatically render OpenGL models)

For my solution I am first looking at implementing the second answer found here: How to take a screenshot programmatically

Barring that I will have to re-engineer the "Combined Screenshots" method found in CocoaCoder's Screenshots app.

I'll check back in when I figure out which one works better.

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