Hi, can you tell us your solution?
currently i try to add a cube and only one of the top triagles are beeing displayed.
How can I display the complete cube?
The following lines shows my current setup of the "renderFrameQCAR"-Method. I changed this
glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)obj3D.vertices);
glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)obj3D.normals);
glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)obj3D.texCoords);
glDrawElements(GL_TRIANGLES, obj3D.numIndices, GL_UNSIGNED_SHORT, (const GLvoid*)obj3D.indices);
to this:
glVertexPointer(3, GL_FLOAT, 0, cubeVerts);
glNormalPointer(GL_FLOAT, 0, cubeNormals);
glDrawArrays(GL_TRIANGLES, 0, cubeNumVerts);
It would be great if someone could help me :)
Thank u
Hello David,
shure I will post my Code. I uploaded a file for you into my dropbox.
You can access the file with this link: https://dl.dropbox.com/u/1503795/3D-Cube-Data.txt
I hope this is OK. As a note: I just used the "ImageTargets"-Sample.
Thank you for your help :)