How to convert Blender blend (or obj) file to Qualcom Vuforia .h file

末鹿安然 提交于 2019-11-30 06:32:48

问题


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)?

thanks


回答1:


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!




回答2:


You should check out BlenderVuforiaExport (developed by a coworker of mine) here:

https://github.com/StickyBeat/BlenderVuforiaExport

It exports objects from Blender to the same .h-format used in the Vuforia example project.




回答3:


I don't know much about vufoia, but here are two answers about using blender to get 3d models and displaying them on iPhone. These may help you.

How to get proper number of vertices in OBJ file from DCC tools such as Blender for use in OpenGL ES?

Put a Cinema 4D model and Texture into an iPhone App



来源:https://stackoverflow.com/questions/14508930/how-to-convert-blender-blend-or-obj-file-to-qualcom-vuforia-h-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!