如何在 Qualcomm 的 Vuforia 示例应用程序中进行更改
我一直在浏览高通论坛上的帖子,但没有运气,因为我不知道到底如何寻找我想要的东西。
我正在使用 iOS 版 ImageTargets 示例,并且我想将茶壶更改为另一个我有图像(而是文本)。
我已经有了渲染,并且使用 opengl 库获得了 .h,但我不知道需要更改什么才能使这项工作正常工作,因为这是非常基本的,我无法使其工作真的没有冒险去尝试其他的东西。
有人可以帮我吗?
我会在这里粘贴代码,但这是一个完整的项目,所以我不知道如果需要的话到底要放什么,请告诉我。
I have been looking through the threads at the Qualcomm Forums but no luck since I don't know exactly how to look for what I want.
I'm working with the ImageTargets Sample for iOS and I want to change the teapot to another image (a text rather) I had.
I already have the render and I got the .h using opengl library but I can't figure out what do I need to change to make this work and since this is the very basic and I haven't been able to make it work I really haven't ventured to try anything else.
Could anyone please help me out?
I would paste code here but it's a whole project so I don't know exactly what to put if needed please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
事实上,茶壶并不是一个形象。它是以 .h 格式存储的 3D 模型,其中包括顶点、法线和纹理坐标。您应该对 OpenGL ES 有很好的了解,才能理解示例应用程序中的这些代码。
将 3D 模型更改为您想要的任何内容的一种更简单的方法是使用渲染引擎,该引擎可以促进绘图和渲染内容,并且您无需打扰 OpenGL API。我已经在 Android 平台上使用 jPCT-AE
完成了此操作,但对于 iOS,有一个名为 OpenFrameworks
引擎的对应引擎。它有一些插件可以加载 3D 或 MD2 文件,并且由于它是用 C++ 编写的,因此您可以轻松地将其与 QCAR 集成。
这是我使用 jPCT 和 QCAR 结果的简短视频:
Qualcomm Vuforia + jPCT-AE 测试视频
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如果这种情况仍然有效,则您需要执行以下操作:
在 EAGLView.mm 中进行以下更改:
在 renderFrameQCAR 中进行此更改
我相信这就是全部...如果有什么内容请查看 Vuforia 的论坛,即这里: https://developer.vuforia.com/node/2047669
注意:默认的 teapot.h 确实(!)有索引,这些索引不存在于banana.h(来自下面的评论)所以也要注意这一点
If the case is still valid, here's what you have to do:
in EAGLView.mm make this changes:
make this change in renderFrameQCAR
I believe that is all... if something take a look at Vuforia's forum, i.e. here: https://developer.vuforia.com/node/2047669
NOTE: default teapot.h does (!) have indices, which are not present in banana.h (from comment below) so take care about that too