By Natzely
on Wed, 06/20/2012 - 17:08
Hello, I'm using Blender to make my 3D models and exporting them as .obj files. Then, I'm using the .pl code given [URL=http://heikobehrens.net/2009/08/27/obj2opengl/]here[/URL] to convert the .obj to a .h, but when I do, all I get is the objectVerts array. I'm missing all the other ones. I tried commenting out the lines for the normal array and texture array in the ImageTargets.cpp but the cube would come out missing bits and pieces. I tried using the cube that is given to us in the zip file that only has the verts and normal and this one comes out fine, albeit in pure black.
So, question is, why am I missing the normal and texture arrays on my .h file when I convert it through the .pl code. Am I forgetting to do something in Blender to get the normals or is there anything else? I've read this [URL=https://ar.qualcomm.at/arforums/showthread.php?t=302&highlight=normal]thread[/URL] but there doesn't seem to be anything on how to obtain the missing arrays.
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index
Re: Normal, Texture, and Index