By igaz
on Wed, 06/20/2012 - 17:12
I'm currently developing an AR application for my final work.
I'm using the obj2opengl script and the DrawArrays rendering method.
Here is the resulting image on the screen:
[IMG]http://i.imgur.com/UATe2.png[/IMG]
And when I'm trying to use my own models:
[IMG]http://i.imgur.com/vjZWg.png[/IMG]
See those missing faces there, and the squared empty holes in the banana model?
Any idea of what the the cause of this is?
Here is the rendering code for the banana, pretty standard:
[CODE]
glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0,
bananaVerts);
glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0,
bananaNormals);
glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0,
bananaTexCoords);
glEnableVertexAttribArray(vertexHandle);
glEnableVertexAttribArray(normalHandle);
glEnableVertexAttribArray(textureCoordHandle);
LOG("enabled arrays!");
glUniformMatrix4fv(mvpMatrixHandle, 1, GL_FALSE,
(GLfloat*)&modelViewProjection.data[0] );
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, thisTexture->mTextureID);
glDrawArrays(GL_TRIANGLES, 0, bananaNumVerts);
[/CODE]
Re: Rendered texture is incomplete (faces missing)
Re: Rendered texture is incomplete (faces missing)
Re: Rendered texture is incomplete (faces missing)
Hi,
Hi,
I have same issue. What can I do? P
Your help is a lot of help