You say your objects are texture mapped cubes?
What I see is that your cubes are overlapping each other and for that reason hiding objects drawn after them.
I don't exactly understand the shape of your objects and what kind of texture each object has.
For me it seems that your z-buffer is working correctly.
Seems that you could solve the problem by drawing your objects back to front order.
However, that is probably you want to avoid since you are using z-buffer.
Can you elaborate a bit your objects (like show them closer or from different angles and show the real geometry in wireframe) ?
Cheers!
My objects are cubes but with textures drawn in isometric view and then mapped to it like a paper over the cube in 2d space.
So is the drawing order important ... I thought the z buffer should take care of the drawing order
When I turn my view the image is distorted ... I can fix that by drawing textures for each quadrant ... and applying the texture to respective vertices..