JM33 wrote:I am trying to import a .OBJ model from Blender into my android project. I was trying using the open source of earth live wallpaper for my OBJ reader. I am trying to import vectors, normals, textures, and faces. The OBJ imports, but it seems the faces are either incomplete or at least out of order. Even using a basic cube mesh, certain faces just don't display correctly. All of the vertices appear to be there, textures and normals show up, however with the faces being out of place I cannot see if they are correct. Using Blender 2.4.9b, I have tried making faces into triangles, and about every combination of button on the export options to get it right.
You can see the import code I am using here -
http://code.google.com/p/earth-live-wal ... phere.java
It is under the private void loadObj()
I am not sure if there is an issue with the code, or with my OBJ file. Perhaps if someone could help me make sure I am exporting it correctly I could determine if my problem lies in the export of the OBJ, or importing into OpenGL.
Any help would be greatly appreciated, and if you need any further information just let me know.
Thanks in advance!
behelit wrote:thanks DMac,
I'm having trouble with the normals, everything else works fine.
Did you have to do anything special with them? I've created a linear ordering for the normal buffer by obtaining the 3 normal values described in the face line but the model's lighting appears wrong.
Users browsing this forum: Yahoo [Bot] and 3 guests