/*The Sears Tower in Chicago (aka Willis Tower).*/ SIZE = 1.0; //adjust variables SIZE = SIZE/13.0; //textures black = new UniformTexture(); black.diffuseColor.setRGB(0.1, 0.1, 0.1); glass = new UniformTexture(); sc = 0.8; glass.diffuseColor.setRGB(1.0*sc, 0.84*sc, 0.6*sc); glass.specularColor.setRGB(1.0*sc, 0.84*sc, 0.6*sc); glass.specularity = 0.5f; glass.shininess = 1.0f; grey = new UniformTexture(); grey.diffuseColor.setRGB(0.7*sc, 0.7*sc, 0.7*sc); void tower(double x, double y, double z, int h, int top) { //create a tower of given height //fix y y = y*13; //black box = new Cube(75*SIZE, h*13*SIZE+3*SIZE, 75*SIZE); p = new Vec3(x, y+h*SIZE*6.5+SIZE*1.5, z); box.setTexture(black, black.getDefaultMapping(box)); script.addObject(box, new CoordinateSystem(p, 0, 0, 0)); //windows win = new Cube(SIZE*13, SIZE*12, SIZE); win.setTexture(glass, glass.getDefaultMapping(win)); for (j=0; j