How to convert Blender blend (or obj) file to Qual

2019-01-22 10:28发布

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

3条回答
姐就是有狂的资本
2楼-- · 2019-01-22 10:47

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

查看更多
forever°为你锁心
3楼-- · 2019-01-22 10:53

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!

查看更多
甜甜的少女心
4楼-- · 2019-01-22 10:55

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.

查看更多
登录 后发表回答