/*A building similar to the Chase tower in Chicago.*/ //number of floors in the top and bottom sections, total height is BFLOORS+TFLOORS+1 BFLOORS = 60; TFLOORS = 75; LENGTH = 123; //how long the building is on the face //set up usefull constants, etc SIZE = 1.0; SEED = 0; r = new Random(SEED); //set up textures stone = new UniformTexture(); stone.diffuseColor.setRGB(0.48, 0.6, 0.54); concrete = new UniformTexture(); concrete.diffuseColor.setRGB(0.8, 0.7, 0.6); window = new Texture[9]; for (i=0; i<9; i++) { k = Math.log(2 + (i+1)/9.0); window[i] = new UniformTexture(); window[i].diffuseColor.setRGB(0.6*k, 0.6*k, 0.6*k); window[i].shininess = (float) 1.0; window[i].specularity = (float) 0.25; } //the main loop //bottom floors x = SIZE*12; y = SIZE; xbase = x; //compute some lengths for (i=0; i