I was trying to make some surface with cubes intersect it, and thats what I am getting. I dont know if it should be like that on the current stage of Three,js development.

In the dragable cubes example everything is ok. I thought that maybe I am using wrong materials or renderer.
var renderer = new THREE.CanvasRenderer();
var material = new THREE.MeshBasicMaterial({ vertexColors: THREE.FaceColors });
Any suggestions? Thanks!
The
CanvasRendererdoes not use a z-buffer. You should switch to aWebGLRendererto fix the problem.