for (int i = 0; i < 100; i++) { Box b = new Box("box", new Vector3f(), 10, 100, 10); float x = (float) Math.random() * 2500 - 1250; float z = (float) Math.random() * 2500 - 1250; b.setLocalTranslation(new Vector3f(x, page.getHeight(x, z)+100, z));
for (int i = 0; i < 50; i++) { Box b = new Box("box", new Vector3f(), 8, 50, 8); float x = (float) Math.random() * 2000 - 1000; float z = (float) Math.random() * 2000 - 1000; b.setLocalTranslation(new Vector3f(x, page.getHeight(x, z)+50, z));
    private void setupOccluders() {        occluders = new Node("occs");        rootNode.attachChild(occluders);        for (int i = 0; i < 100; i++) {            Box b = new Box("box", new Vector3f(), 10, 100, 10);            float x = (float) Math.random() * 2500 - 1250;            float z = (float) Math.random() * 2500 - 1250;            b.setLocalTranslation(new Vector3f(x, page.getHeight(x, z)+100, z));            page.getSurfaceNormal(b.getLocalTranslation(), normal );            if (normal != null)                b.rotateUpTo(normal);            occluders.attachChild(b);        }    }