I am trying to generate a mesh. I have the vertices generating properly but after I add all the indices it only shows one triangle from the quad instead of filling it with two triangles. IE:
0 1 2 3 4 5
6 7 8 9 ..... these are the vertex numbers
Then I have these indices (just a couple of examples):
0, 6, 1
1, 7, 6
1, 7, 2
2, 8, 7
It shows the rectangle of faces properly, but only half of each face is filled and the other half is an empty triangle. Am I doing the indices wrong? Can a vertex only be in one set of indices?
Generating a mesh
Some of your tris might be "backwards" and therefore not being drawn due to backface culling. If your indices for that triangle are not in a certain order (I believe it's clockwise), the renderer assumes that it's looking at the back of the surface, and doesn't draw it to save rendering time. Try disabling backface culling in the mesh's material. If the triangles show up all of a sudden, just flip the order of the indices for that triangle.
Awesome! When working properly, it's actually an optimization, since you usually don't see the back side of a mesh, and therefore it doesn't draw things you don't see. The only reason I thought that might be the problem is because it gave me loads of trouble when I started with Irrlicht. Best of luck!