When I draw my scene in immediate mode, things look fine. If I use VBOs, it renders the scene, but certain objects will blink black randomly around 1/4 to 1 second and maybe affects 20% of the screen, ie: if I stare @ a wall, the window will blink on/off. What typically would cause this kind of problem?
My VBO is strided:
coord|texturecoord2d|texturecoord2d|normal|color4rgb
The second texture coord isn’t used - but is loaded into the VBO
for (Geometry g : geoms) {
gl.glBindTexture(GL.GL_TEXTURE_2D, g.texture.glReference.id[0]);
glBindBuffer(GL_ARRAY_BUFFER, vertexStoreID);
glVertexPointer(3, GL_FLOAT, 44, 0);
glTexCoordPointer(2, GL_FLOAT, 44, 12);
glNormalPointer(GL_FLOAT, 44, 28);
glColorPointer(4, GL_UNSIGNED_BYTE, 44, 40);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, g.indices.glReference.id[0]);
glDrawElements(GL_TRIANGLES, g.getNumIndices(), GL_UNSIGNED_INT, 0);
}
Any Advice Appreciated,
Monty Hall