Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load 3d model with .obj and .mtl file in Vuforia Augmented Reality iOS sdk

I am developing ios app in which i have to show object scanned by Augmented Reality. For this i am using Vuforia ios Sdk for rendering my 3D object model.

But issue is i am not aware of how to load .obj and .mtl extension file in ios sdk for 3d model.

Thanks in advance and appreciate all answers.

like image 431
Viral Mithani Avatar asked Oct 18 '22 17:10

Viral Mithani


1 Answers

Rendering 3D model has nothing to do with Vuforia - you draw what you want, probably with OpenGL. In one of their sample they do demonstrate showing a 3D teapot model on the detected target. If you have your own obj model, convert it to a header file (there are tools for that) in order to have the model values in the proper arrays (vertices, texCoords and normals), like in the example (look at the 'Teapot.h" file). I was using this tool some time ago: obj2opengl

like image 154
yakobom Avatar answered Oct 21 '22 09:10

yakobom