Hey!

I have a big problem that I can't solve right now... I have searched all over the internet for hours... :-/

Look at this picture:

http://oi50.tinypic.com/v67rl4.jpg

If I draw the terrain with Immediate mode:

Code :
for (int z = 0; z < DEPTH; z++)
{
    glBegin(GL_TRIANGLE_STRIP);
    for (int x = 0; x < WIDTH; x++)
    {
        //Draw everything here...
    }
    glEnd();
}

Everything works just fine, no lines.

But if i use just one interleaved VBO for colors, vertices and textures. Everything fail and end up with lines.

I draw the terrain with glDrawArrays(GL_TRIANGLE_STRIP, 0, numberVertices).

I know that glDrawArrays just draw all data.
glDrawArrays + GL_TRIANGLE_STRIP = lines.
glDrawArrays + GL_TRIANGLES = no lines. Terrain looks bad.

I have the exact same problem as this guy: http://stackoverflow.com/questions/9...-drawing-error