Zbuffer problem

I have posted this in the General forum, but I think it might belong here. I have a few objects on a terrain and when I run the program and view the scene, all objects seem to be visible despite the fact that they should be hidden if they are behind other objects. (I have an image of this but dont know how to post it here)

It seems zbuffering or somthing like it is not working despite the fact that I have enabled zbuffer. Does anybody know what the problem is?

This is another refernce to the same problem:



where did you attach the zbuffer state? also, did you call updateRenderState on your scene when you set it up?

just read the other thread, glad you got it fixed.

Well, thx to DarkProphet who helped me a lot to fix the problem.