/*A simple apartment style building. Requires an external texture in the scene file named brick.*/ HEIGHT = 5.0; FLOORS = 10; window = new UniformTexture(); window.diffuseColor.setRGB(0.7,0.7,0.7); window.specularity = 0.5f; //brick = new UniformTexture(); //brick.diffuseColor.setRGB(0.8, 0.3, 0.25); //alternative solid color brick texture brick = script.getScene().getTexture("brick"); dark = new UniformTexture(); dark.diffuseColor.setRGB(0.3, 0.3, 0.3); light = new UniformTexture(); light.diffuseColor.setRGB(0.95, 0.95, 0.9); //main windows box = new Cube(4.5, HEIGHT, 3.8); box.setTexture(window, window.getDefaultMapping(box)); pos = new Vec3(0.0, HEIGHT/2.0, 0.0); script.addObject(box, new CoordinateSystem(pos, 0,0,0)); //between floors box = new Cube(4.5, 0.05, 3.95); box.setTexture(brick, brick.getDefaultMapping(box)); edge = new Cube(4.5, 0.01, 3.95); edge.setTexture(light, light.getDefaultMapping(edge)); for (i=0;i