如何将 Blender 混合(或 obj)文件转换为 Qualcom Vuforia .h 文件 [英] How to convert Blender blend (or obj) file to Qualcom Vuforia .h file
问题描述
我正在使用 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 混合(或 obj)文件转换为 Qualcom Vuforia .h 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!