如何将 Blender blend(或 obj)文件转换为 Qualcom Vuforia .h 文件 [英] How to convert Blender blend (or obj) file to Qualcom Vuforia .h file

查看:27
本文介绍了如何将 Blender blend(或 obj)文件转换为 Qualcom Vuforia .h 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Qualcomm Vuforia 开发具有增强现实功能的 iOS 应用,但我很难理解如何使用 Blender(或其他软件)创建 3D 模型.所有示例都使用带有顶点坐标的 .h 文件来生成一个茶壶.我找不到对我有用的文档.是否有将 .blend 或 .obj 文件转换为 .h (OpenGL ES) 的工具?

I'm developing an iOS app with augmented reality using Qualcomm Vuforia and I have difficulty in understanding how to create 3D models from Blender (or other softwares). All the examples use .h files with the coordinates of the vertices to generate i.e. a teapot. I can not find documentation useful for me. Is there a tool to convert .blend or .obj files to .h (OpenGL ES)?

谢谢

推荐答案

我开发了一个脚本叫mtl2opengl 这正是你所需要的,基于项目 obj2opengl.该脚本适用于 .obj 和 .mtl 文件,我认为这些文件可以直接从 Blender 导出,并生成带有顶点数据的 .h 文件.我在我的 iOS 增强现实应用程序中广泛使用它(虽然我还没有使用过 Vuforia SDK),并且随附的资源也包括一个示例 Xcode 项目.希望对您有所帮助!

I developed a script called mtl2opengl that does exactly what you need, based on the project obj2opengl. The script works with .obj and .mtl files, which I think can be exported straight from Blender, and produces .h files with vertex data. I use it extensively in my iOS augmented reality applications (though I haven't used the Vuforia SDK yet) and the accompanying resources include a sample Xcode project too. Hope it helps!

这篇关于如何将 Blender blend(或 obj)文件转换为 Qualcom Vuforia .h 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆