Hi all!..i’m have an problem with texturing my model…
So i’m make model in 3ds max and exporting her into obj format with normals and texture coordinates…
hmm…but when model is loaded i’m see the model and shadows…but model has wrong textured :’(…
see that :
for example i texturing the quad…
You see the quad is good textured but…the car is only red color…please help me!!!
of couse this is a fragment of some code for draw the car^
gl.glEnableClientState(GL.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
gl.glEnableClientState(GL.GL_NORMAL_ARRAY);
gl.glTexCoordPointer(2,GL.GL_FLOAT,0,t);
gl.glNormalPointer(GL.GL_FLOAT,0,n);
gl.glVertexPointer(3,GL.GL_FLOAT,0,v);
gl.glDrawElements(GL.GL_TRIANGLES, vIndex.length, GL.GL_UNSIGNED_INT, indexes);
gl.glDisableClientState(GL.GL_VERTEX_ARRAY);
gl.glDisableClientState(GL.GL_TEXTURE_COORD_ARRAY);
gl.glDisableClientState(GL.GL_NORMAL_ARRAY);
m.b. its all whrong textured because model has:
verts: 7332
normals: 7332
texture_verts: 6074 ???