View Full Version : Texture problem

01-08-2012, 03:44 AM
Good morning i have a problem with texture - when i rotate my point cloud and texture i realise that my image is redrawn so i see poligons behind. I think this is opengl inbuild function that i need to disable, but dont know its name. So polygons are textured from both sides and i see thrue polygons when i rotate it. Thanks a lot.

01-08-2012, 07:20 AM
It isn't very clear. You mean you have a z-order issue? Something should be behind but it is rendering in front of another object?
Enable depth testing with glEnable(GL_DEPTH_TEST)
and there is also glDepthFunc.