private void setDepthMap(MImage image, uint width, uint height) { float [] buffer = new float[width * height]; uint c, j, i; for (c = i = 0; i < height; i++) { for (j = 0; j < width; j++, c++) { if (i > height / 2) { buffer[c] = -1.0f; } else { buffer[c] = 0.0f; } } } image.setDepthMap(buffer, width, height); }