i made a brute force landscape but i got a simple problem
the first layer is without alpha… the other are with alpha,
that work absolut perfect…the only thing, i got around the
triangles of layer1 after activate blend a black border around
how can i remove this?
//Layer 0
texture[7].bind();
gl.glTexCoordPointer (2, GL.GL_FLOAT, 0, ot);
gl.glNormalPointer (GL.GL_FLOAT,0,ono);
gl.glVertexPointer (3, GL.GL_FLOAT, 0, ov);
gl.glColorPointer (4, GL.GL_FLOAT, 0, oc);
flachen_c=count*4; //dreiecke * 4
gl.glDrawElements(GL.GL_TRIANGLES, flachen_c, GL.GL_UNSIGNED_INT, indices);
gl.glEnable( GL.GL_BLEND );
gl.glBlendFunc( GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA );
//Layer 1 ((Alpha blended)
texture[7].bind();
gl.glTexCoordPointer (2, GL.GL_FLOAT, 0, ot);
gl.glNormalPointer (GL.GL_FLOAT,0,ono);
gl.glVertexPointer (3, GL.GL_FLOAT, 0, ov);
gl.glColorPointer (4, GL.GL_FLOAT, 0, oc1);
flachen_c=count*4; //dreiecke * 4
gl.glDrawElements(GL.GL_TRIANGLES, flachen_c, GL.GL_UNSIGNED_INT, indices);