polygon jaggies


I have draw a box with 4 sides as 4 polygons and coloured all the four polygons with different colours. The box looks bit fair when iam close to it , and if iam zooming out of the box the colours of the adjaent polygons gets overlapped at the edges and these jaggies keeps on growing while zooming far away fromm the box. I dont knw the antialiasing concepts used to slove this problem. Can any one help me to set the rendering correct.

doesn’t sound like an antialiasing problem, its probably your depth buffer. Remember that depth buffer precision goes down as you go further from the origen so as the box goes away you begin to see z-fighting. The simplest way to fix this problem is to move your zNear plane in the gluPerspective call away from the origin